Issue #22869: Split pythonrun into two modules

- interpreter startup and shutdown code moved to a new
  pylifecycle.c module
- Py_OptimizeFlag moved into the new module with the other
  global flags
This commit is contained in:
Nick Coghlan 2014-11-20 21:39:37 +10:00
parent 66fb349d6c
commit d600951748
16 changed files with 1701 additions and 1587 deletions

View file

@ -30,8 +30,6 @@
#include "symtable.h"
#include "opcode.h"
int Py_OptimizeFlag = 0;
#define DEFAULT_BLOCK_SIZE 16
#define DEFAULT_BLOCKS 8
#define DEFAULT_CODE_SIZE 128

1540
Python/pylifecycle.c Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1681,7 +1681,7 @@ _PySys_Init(void)
}
#endif
/* stdin/stdout/stderr are now set by pythonrun.c */
/* stdin/stdout/stderr are set in pylifecycle.c */
SET_SYS_FROM_STRING_BORROW("__displayhook__",
PyDict_GetItemString(sysdict, "displayhook"));