|
|
bb84fe |
#ifndef PY_LINKAGE_INITTAB_H
|
|
|
bb84fe |
#define PY_LINKAGE_INITTAB_H
|
|
|
bb84fe |
|
|
|
bb84fe |
#define PY_INIT_FUNC(x) extern void x(void)
|
|
|
bb84fe |
#define PY_INIT_PTR(x) void (*x)(void)
|
|
|
bb84fe |
|
|
|
bb84fe |
#ifdef PY_ALL_STATIC
|
|
|
bb84fe |
#include "static.h"
|
|
|
bb84fe |
#endif
|
|
|
bb84fe |
|
|
|
ec618c |
#ifdef PY_FOR_PYCOMPILE
|
|
|
ec618c |
#include "pycompile.h"
|
|
|
ec618c |
#endif
|
|
|
ec618c |
|
|
|
bb84fe |
struct _inittab {
|
|
|
bb84fe |
char * name;
|
|
|
bb84fe |
PY_INIT_PTR(initfunc);
|
|
|
bb84fe |
};
|
|
|
bb84fe |
|
|
|
bb84fe |
PY_INIT_FUNC(initthread);
|
|
|
bb84fe |
PY_INIT_FUNC(initsignal);
|
|
|
bb84fe |
PY_INIT_FUNC(initposix);
|
|
|
bb84fe |
PY_INIT_FUNC(initerrno);
|
|
|
bb84fe |
PY_INIT_FUNC(initpwd);
|
|
|
bb84fe |
PY_INIT_FUNC(init_sre);
|
|
|
bb84fe |
PY_INIT_FUNC(init_codecs);
|
|
|
bb84fe |
PY_INIT_FUNC(init_weakref);
|
|
|
bb84fe |
PY_INIT_FUNC(initzipimport);
|
|
|
bb84fe |
PY_INIT_FUNC(init_symtable);
|
|
|
bb84fe |
PY_INIT_FUNC(initxxsubtype);
|
|
|
bb84fe |
|
|
|
bb84fe |
PY_INIT_FUNC(PyMarshal_Init);
|
|
|
bb84fe |
PY_INIT_FUNC(initimp);
|
|
|
bb84fe |
PY_INIT_FUNC(initgc);
|
|
|
bb84fe |
PY_INIT_FUNC(init_ast);
|
|
|
bb84fe |
PY_INIT_FUNC(_PyWarnings_Init);
|
|
|
bb84fe |
|
|
|
bb84fe |
#define PY_IMPORT_INITTAB_BASE \
|
|
|
bb84fe |
{"__main__", 0}, \
|
|
|
bb84fe |
{"__builtin__", 0}, \
|
|
|
bb84fe |
{"sys", 0}, \
|
|
|
bb84fe |
{"exceptions", 0}, \
|
|
|
bb84fe |
{"_ast", init_ast}, \
|
|
|
bb84fe |
{"gc", initgc}, \
|
|
|
bb84fe |
{"imp", initimp}, \
|
|
|
bb84fe |
{"marshal", PyMarshal_Init}, \
|
|
|
bb84fe |
{"_warnings", _PyWarnings_Init}
|
|
|
bb84fe |
|
|
|
bb84fe |
|
|
|
bb84fe |
#define PY_IMPORT_INITTAB_COMMON \
|
|
|
bb84fe |
{"thread", initthread}, \
|
|
|
bb84fe |
{"signal", initsignal}, \
|
|
|
bb84fe |
{"posix", initposix}, \
|
|
|
bb84fe |
{"errno", initerrno}, \
|
|
|
bb84fe |
{"pwd", initpwd}, \
|
|
|
bb84fe |
{"_sre", init_sre}, \
|
|
|
bb84fe |
{"_codecs", init_codecs}, \
|
|
|
bb84fe |
{"_weakref", init_weakref}, \
|
|
|
bb84fe |
{"zipimport", initzipimport}, \
|
|
|
bb84fe |
{"_symtable", init_symtable}, \
|
|
|
bb84fe |
{"xxsubtype", initxxsubtype}
|
|
|
bb84fe |
|
|
|
bb84fe |
|
|
|
bb84fe |
#define PY_IMPORT_INITTAB_ANYOS_CORE \
|
|
|
bb84fe |
{"_bisect", init_bisect}, \
|
|
|
bb84fe |
{"_codecs_cn", init_codecs_cn}, \
|
|
|
bb84fe |
{"_codecs_hk", init_codecs_hk}, \
|
|
|
bb84fe |
{"_codecs_iso2022", init_codecs_iso2022}, \
|
|
|
bb84fe |
{"_codecs_jp", init_codecs_jp}, \
|
|
|
bb84fe |
{"_codecs_kr", init_codecs_kr}, \
|
|
|
bb84fe |
{"_codecs_tw", init_codecs_tw}, \
|
|
|
bb84fe |
{"_collections", init_collections}, \
|
|
|
bb84fe |
{"_csv", init_csv}, \
|
|
|
bb84fe |
{"_ctypes", init_ctypes}, \
|
|
|
bb84fe |
{"_ctypes_test", init_ctypes_test}, \
|
|
|
bb84fe |
{"_curses", init_curses}, \
|
|
|
bb84fe |
{"_curses_panel", init_curses_panel}, \
|
|
|
bb84fe |
{"_elementtree", init_elementtree}, \
|
|
|
bb84fe |
{"_functools", init_functools}, \
|
|
|
bb84fe |
{"_hashlib", init_hashlib}, \
|
|
|
bb84fe |
{"_heapq", init_heapq}, \
|
|
|
bb84fe |
{"_hotshot", init_hotshot}, \
|
|
|
bb84fe |
{"_io", init_io}, \
|
|
|
bb84fe |
{"_json", init_json}, \
|
|
|
bb84fe |
{"_locale", init_locale}, \
|
|
|
bb84fe |
{"_lsprof", init_lsprof}, \
|
|
|
bb84fe |
{"_multibytecodec", init_multibytecodec}, \
|
|
|
bb84fe |
{"_multiprocessing", init_multiprocessing}, \
|
|
|
bb84fe |
{"_random", init_random}, \
|
|
|
bb84fe |
{"_socket", init_socket}, \
|
|
|
bb84fe |
{"_sqlite3", init_sqlite3}, \
|
|
|
bb84fe |
{"_ssl", init_ssl}, \
|
|
|
bb84fe |
{"_struct", init_struct}, \
|
|
|
bb84fe |
{"_testcapi", init_testcapi}, \
|
|
|
bb84fe |
{"array", initarray}, \
|
|
|
bb84fe |
{"binascii", initbinascii}, \
|
|
|
bb84fe |
{"bz2", initbz2}, \
|
|
|
bb84fe |
{"cPickle", initcPickle}, \
|
|
|
bb84fe |
{"cStringIO", initcStringIO}, \
|
|
|
bb84fe |
{"cmath", initcmath}, \
|
|
|
bb84fe |
{"crypt", initcrypt}, \
|
|
|
bb84fe |
{"datetime", initdatetime}, \
|
|
|
bb84fe |
{"dbm", initdbm}, \
|
|
|
bb84fe |
{"fcntl", initfcntl}, \
|
|
|
bb84fe |
{"future_builtins", initfuture_builtins}, \
|
|
|
bb84fe |
{"gdbm", initgdbm}, \
|
|
|
bb84fe |
{"grp", initgrp}, \
|
|
|
bb84fe |
{"itertools", inititertools}, \
|
|
|
bb84fe |
{"math", initmath}, \
|
|
|
bb84fe |
{"mmap", initmmap}, \
|
|
|
bb84fe |
{"operator", initoperator}, \
|
|
|
bb84fe |
{"parser", initparser}, \
|
|
|
bb84fe |
{"pyexpat", initpyexpat}, \
|
|
|
bb84fe |
{"readline", initreadline}, \
|
|
|
bb84fe |
{"resource", initresource}, \
|
|
|
bb84fe |
{"select", initselect}, \
|
|
|
bb84fe |
{"spwd", initspwd}, \
|
|
|
bb84fe |
{"strop", initstrop}, \
|
|
|
bb84fe |
{"syslog", initsyslog}, \
|
|
|
bb84fe |
{"termios", inittermios}, \
|
|
|
bb84fe |
{"time", inittime}, \
|
|
|
bb84fe |
{"unicodedata", initunicodedata}, \
|
|
|
bb84fe |
{"zlib", initzlib}
|
|
|
bb84fe |
|
|
|
bb84fe |
|
|
|
bb84fe |
#define PY_IMPORT_INITTAB_ANYOS_AUDIO \
|
|
|
bb84fe |
{"audioop", initaudioop}, \
|
|
|
bb84fe |
{"ossaudiodev", initossaudiodev}
|
|
|
bb84fe |
|
|
|
bb84fe |
|
|
|
bb84fe |
#define PY_IMPORT_INITTAB_LINUX_AUDIO \
|
|
|
bb84fe |
{"linuxaudiodev", initlinuxaudiodev}
|
|
|
bb84fe |
|
|
|
bb84fe |
#endif
|