version 1.6, 2022/01/02 00:23:25 |
version 1.8, 2022/01/04 01:34:23 |
|
|
/* $OpenXM: OpenXM/src/ox_python/ox_python.c,v 1.5 2021/12/31 07:43:48 takayama Exp $ |
/* $OpenXM: OpenXM/src/ox_python/ox_python.c,v 1.7 2022/01/02 02:54:00 takayama Exp $ |
*/ |
*/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
Line 394 int sm_executeStringByLocalParser() |
|
Line 394 int sm_executeStringByLocalParser() |
|
push(make_error2("sm_executeStringByLocalParser, not CMO_STRING",NULL,0,-1)); |
push(make_error2("sm_executeStringByLocalParser, not CMO_STRING",NULL,0,-1)); |
return -1; |
return -1; |
} |
} |
|
/*** {FILE *fp; fp=fopen("tmp-debug.txt","a"); fprintf(fp,"strlen=%d\n%s\n",strlen(cmd->s),cmd->s);fclose(fp); } ***/ |
status=PyRun_SimpleString(cmd->s); |
status=PyRun_SimpleString(cmd->s); |
// push(make_error2("sm_executeStringByLocalParser",NULL,0,-1)); |
// push(make_error2("sm_executeStringByLocalParser",NULL,0,-1)); |
push((cmo *)new_cmo_int32(status)); |
push((cmo *)new_cmo_int32(status)); |
Line 528 int main(int argc,char *argv[]) |
|
Line 529 int main(int argc,char *argv[]) |
|
#else |
#else |
signal(SIGUSR1,usr1_handler); |
signal(SIGUSR1,usr1_handler); |
#endif |
#endif |
|
|
/* Initialize python */ |
/* Initialize python */ |
Py_SetProgramName((wchar_t *) argv[0]); /* optional but recommended */ |
Py_SetProgramName((wchar_t *) argv[0]); /* optional but recommended */ |
Py_Initialize(); |
Py_Initialize(); |