Staging
v0.5.1
https://github.com/python/cpython
Revision 6d43f6f081023b680d9db4542d19b9e382149f0a authored by Victor Stinner on 22 January 2019, 20:18:05 UTC, committed by GitHub on 22 January 2019, 20:18:05 UTC
* Split _Py_InitializeCore_impl() into subfunctions: add multiple pycore_init_xxx() functions
* Preliminary sys.stderr is now set earlier to get an usable
  sys.stderr ealier.
* Move code into _Py_Initialize_ReconfigureCore() to be able to call
  it from _Py_InitializeCore().
* Split _PyExc_Init(): create a new _PyBuiltins_AddExceptions()
  function.
* Call _PyExc_Init() earlier in _Py_InitializeCore_impl()
  and new_interpreter() to get working exceptions earlier.
* _Py_ReadyTypes() now returns _PyInitError rather than calling
  Py_FatalError().
* Misc code cleanup
1 parent 28f6cb3
Raw File
Tip revision: 6d43f6f081023b680d9db4542d19b9e382149f0a authored by Victor Stinner on 22 January 2019, 20:18:05 UTC
bpo-35713: Split _Py_InitializeCore into subfunctions (GH-11650)
Tip revision: 6d43f6f
importdl.h
#ifndef Py_IMPORTDL_H
#define Py_IMPORTDL_H

#ifdef __cplusplus
extern "C" {
#endif


extern const char *_PyImport_DynLoadFiletab[];

extern PyObject *_PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *);

/* Max length of module suffix searched for -- accommodates "module.slb" */
#define MAXSUFFIXSIZE 12

#ifdef MS_WINDOWS
#include <windows.h>
typedef FARPROC dl_funcptr;
#else
typedef void (*dl_funcptr)(void);
#endif


#ifdef __cplusplus
}
#endif
#endif /* !Py_IMPORTDL_H */
back to top