REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 740 B
Close
//lib64/python2.7/Demo/embed/loop.c
Text
Base64
/* Simple program that repeatedly calls Py_Initialize(), does something, and then calls Py_Finalize(). This should help finding leaks related to initialization. */ #include "Python.h" main(int argc, char **argv) { 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 == 3) { count = atoi(argv[2]); } Py_SetProgramName(argv[0]); /* 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; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
demo.c
2.13 KB
lrw-r--r--
2020-04-19 21:13:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
importexc.c
255 B
lrw-r--r--
2020-04-19 21:13:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
loop.c
740 B
lrw-r--r--
2020-04-19 21:13:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Makefile
1.13 KB
lrw-r--r--
2020-04-19 21:13:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README
822 B
lrw-r--r--
2020-04-19 21:13:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).