fix a bug with event_rpcgen for integers

svn:r588
This commit is contained in:
Niels Provos 2007-12-13 06:36:54 +00:00
parent ffd606cd6d
commit 850534734b
3 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Changes in current version:
o support for 32-bit tag numbers in rpc structures; this is wire compatible, but changes the API slightly.
o pull setters/getters out of RPC structures into a base class to which we just need to store a pointer; this reduces the memory footprint of these structures.
o prefix {encode,decode}_tag functions with evtag to avoid collisions
o fix a bug with event_rpcgen for integers
Changes in 1.4.0:

View File

@ -555,6 +555,10 @@ class EntryInt(Entry):
return dcl
def CodeNew(self, name):
code = ['%s->%s_data = 0;' % (name, self._name)]
return code
class EntryString(Entry):
def __init__(self, type, name, tag):
# Init base class

View File

@ -10,6 +10,7 @@ struct msg {
struct kill {
string weapon = 0x10121;
string action = 2;
int how_often = 3;
}
struct run {