Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(206665)

Side by Side Diff: Python/pythonrun.c

Issue 22043: Use a monotonic clock to compute timeouts
Patch Set: Created 5 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 /* Python interpreter top-level routines, including init/exit */ 2 /* Python interpreter top-level routines, including init/exit */
3 3
4 #include "Python.h" 4 #include "Python.h"
5 5
6 #include "Python-ast.h" 6 #include "Python-ast.h"
7 #undef Yield /* undefine macro conflicting with winbase.h */ 7 #undef Yield /* undefine macro conflicting with winbase.h */
8 #include "grammar.h" 8 #include "grammar.h"
9 #include "node.h" 9 #include "node.h"
10 #include "token.h" 10 #include "token.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 if (!install_importlib) 446 if (!install_importlib)
447 return; 447 return;
448 448
449 import_init(interp, sysmod); 449 import_init(interp, sysmod);
450 450
451 /* initialize the faulthandler module */ 451 /* initialize the faulthandler module */
452 if (_PyFaulthandler_Init()) 452 if (_PyFaulthandler_Init())
453 Py_FatalError("Py_Initialize: can't initialize faulthandler"); 453 Py_FatalError("Py_Initialize: can't initialize faulthandler");
454 454
455 _PyTime_Init(); 455 if (_PyTimeSpec_Init() < 0)
456 Py_FatalError("Py_Initialize: can't initialize time");
456 457
457 if (initfsencoding(interp) < 0) 458 if (initfsencoding(interp) < 0)
458 Py_FatalError("Py_Initialize: unable to load the file system codec"); 459 Py_FatalError("Py_Initialize: unable to load the file system codec");
459 460
460 if (install_sigs) 461 if (install_sigs)
461 initsigs(); /* Signal handling stuff, including initintr() */ 462 initsigs(); /* Signal handling stuff, including initintr() */
462 463
463 if (_PyTraceMalloc_Init() < 0) 464 if (_PyTraceMalloc_Init() < 0)
464 Py_FatalError("Py_Initialize: can't initialize tracemalloc"); 465 Py_FatalError("Py_Initialize: can't initialize tracemalloc");
465 466
(...skipping 2534 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 #undef PyRun_InteractiveLoop 3001 #undef PyRun_InteractiveLoop
3001 PyAPI_FUNC(int) 3002 PyAPI_FUNC(int)
3002 PyRun_InteractiveLoop(FILE *f, const char *p) 3003 PyRun_InteractiveLoop(FILE *f, const char *p)
3003 { 3004 {
3004 return PyRun_InteractiveLoopFlags(f, p, NULL); 3005 return PyRun_InteractiveLoopFlags(f, p, NULL);
3005 } 3006 }
3006 3007
3007 #ifdef __cplusplus 3008 #ifdef __cplusplus
3008 } 3009 }
3009 #endif 3010 #endif
OLDNEW

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+