mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-13 14:26:30 -04:00
fix a bug with event_rpcgen for integers
svn:r588
This commit is contained in:
parent
ffd606cd6d
commit
850534734b
@ -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:
|
||||
|
@ -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
|
||||
|
@ -10,6 +10,7 @@ struct msg {
|
||||
struct kill {
|
||||
string weapon = 0x10121;
|
||||
string action = 2;
|
||||
int how_often = 3;
|
||||
}
|
||||
|
||||
struct run {
|
||||
|
Loading…
x
Reference in New Issue
Block a user