mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 09:46:23 -04:00
Make event_rpcgen.py output conform to indentifier conventions
This commit is contained in:
parent
3f8c7cd035
commit
372bff1c07
@ -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'
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user