]> granicus.if.org Git - libevent/commitdiff
fix a bug with event_rpcgen for integers
authorNiels Provos <provos@gmail.com>
Thu, 13 Dec 2007 06:36:54 +0000 (06:36 +0000)
committerNiels Provos <provos@gmail.com>
Thu, 13 Dec 2007 06:36:54 +0000 (06:36 +0000)
svn:r588

ChangeLog
event_rpcgen.py
test/regress.rpc

index 934fafec40f2d6dc2b04f6bc5cfbd8612fc0d8b8..60278eceabbbf38dfafa3bcdb3cdc18fc1706f30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 1ff55e73c3f31e2eb0a71c25e1084fd5b75799ec..00dc755a597ae354bd301eec85d2491ad02d7f8f 100755 (executable)
@@ -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
index 52a2104b1a903a686dc4d178120a48ae9cefa94b..0400d52841c891ec3f3c5cfd331cafd4efc18f88 100644 (file)
@@ -10,6 +10,7 @@ struct msg {
 struct kill {
        string weapon = 0x10121;
        string action = 2;
+       int how_often = 3;
 }
 
 struct run {