summaryrefslogtreecommitdiff
path: root/event_rpcgen.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-02-29 15:07:31 -0500
committerNick Mathewson <nickm@torproject.org>2012-02-29 15:07:31 -0500
commit372bff1c07dba7afba815a8b47ce47682b9413f8 (patch)
treef123dd1f6749b6ec8d14fcf16ea1f56df156cecb /event_rpcgen.py
parent3f8c7cd0353f4b2adcf19a90ffd3b8ba42b68209 (diff)
downloadlibevent-372bff1c07dba7afba815a8b47ce47682b9413f8.tar.gz
Make event_rpcgen.py output conform to indentifier conventions
Diffstat (limited to 'event_rpcgen.py')
-rwxr-xr-xevent_rpcgen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/event_rpcgen.py b/event_rpcgen.py
index e051aa9d..42eded31 100755
--- a/event_rpcgen.py
+++ b/event_rpcgen.py
@@ -1532,7 +1532,7 @@ class CCodeGenerator:
# Use the complete provided path to the input file, with all
# non-identifier characters replaced with underscores, to
# reduce the chance of a collision between guard macros.
- return '_' + nonident.sub('_', name).upper() + '_'
+ return 'EVENT_RPCOUT_' + nonident.sub('_', name).upper() + '_'
def HeaderPreamble(self, name):
guard = self.GuardName(name)
@@ -1579,8 +1579,8 @@ class CCodeGenerator:
'#include <event2/event.h>\n'
'#include <event2/buffer.h>\n'
'#include <event2/tag.h>\n\n'
- '#ifdef _EVENT___func__\n'
- '#define __func__ _EVENT___func__\n'
+ '#ifdef EVENT____func__\n'
+ '#define __func__ EVENT____func__\n'
'#endif\n\n'
)