diff options
Diffstat (limited to 'Demo/embed/loop.c')
-rw-r--r-- | Demo/embed/loop.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Demo/embed/loop.c b/Demo/embed/loop.c index d5af829..2f7fe62 100644 --- a/Demo/embed/loop.c +++ b/Demo/embed/loop.c @@ -6,28 +6,28 @@ main(int argc, char **argv) { - int count = -1; - char *command; + int count = -1; + char *command; - if (argc < 2 || argc > 3) { - fprintf(stderr, "usage: loop <python-command> [count]\n"); - exit(2); - } - command = argv[1]; + if (argc < 2 || argc > 3) { + fprintf(stderr, "usage: loop <python-command> [count]\n"); + exit(2); + } + command = argv[1]; - if (argc == 3) { - count = atoi(argv[2]); - } + if (argc == 3) { + count = atoi(argv[2]); + } - Py_SetProgramName(argv[0]); + Py_SetProgramName(argv[0]); - /* uncomment this if you don't want to load site.py */ - /* Py_NoSiteFlag = 1; */ + /* uncomment this if you don't want to load site.py */ + /* Py_NoSiteFlag = 1; */ - while (count == -1 || --count >= 0 ) { - Py_Initialize(); - PyRun_SimpleString(command); - Py_Finalize(); - } - return 0; + while (count == -1 || --count >= 0 ) { + Py_Initialize(); + PyRun_SimpleString(command); + Py_Finalize(); + } + return 0; } |