version 1.6 | | version 1.7 |
---|
| | |
{"RegisterCommand", registerCommand, METH_VARARGS}, | | {"RegisterCommand", registerCommand, METH_VARARGS}, |
{"RegisterGlobalEvent", registerGEvent, METH_VARARGS}, | | {"RegisterGlobalEvent", registerGEvent, METH_VARARGS}, |
{"UnregisterGlobalEvent",unregisterGEvent, METH_VARARGS}, | | {"UnregisterGlobalEvent",unregisterGEvent, METH_VARARGS}, |
{NULL, NULL} | | {NULL, NULL, 0} |
}; | | }; |
| | |
CFPContext* context_stack; | | CFPContext* context_stack; |
| | |
| | |
void pushContext(CFPContext* context) | | void pushContext(CFPContext* context) |
{ | | { |
CFPContext* stack_context; | | |
if (current_context == NULL) | | if (current_context == NULL) |
{ | | { |
context_stack = context; | | context_stack = context; |
| | |
char buf[1024]; | | char buf[1024]; |
CFPContext* context; | | CFPContext* context; |
static int rv = 0; | | static int rv = 0; |
int i; | | |
| | |
if (current_command < -999) | | if (current_command < -999) |
{ | | { |