/PC/os2vacpp/config.c

http://unladen-swallow.googlecode.com/ · C · 106 lines · 73 code · 13 blank · 20 comment · 2 complexity · 85001131bb0de57f5549e2805670a964 MD5 · raw file

  1. /* -*- C -*- ***********************************************
  2. Copyright (c) 2000, BeOpen.com.
  3. Copyright (c) 1995-2000, Corporation for National Research Initiatives.
  4. Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
  5. All rights reserved.
  6. See the file "Misc/COPYRIGHT" for information on usage and
  7. redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  8. ******************************************************************/
  9. /* Module configuration */
  10. /* This file contains the table of built-in modules.
  11. See init_builtin() in import.c. */
  12. #include "Python.h"
  13. extern void initarray(void);
  14. extern void initaudioop(void);
  15. extern void initbinascii(void);
  16. extern void initcmath(void);
  17. extern void initerrno(void);
  18. extern void initimageop(void);
  19. extern void initmath(void);
  20. extern void initmd5(void);
  21. extern void initnt(void);
  22. extern void initos2(void);
  23. extern void initoperator(void);
  24. extern void initposix(void);
  25. extern void initrgbimg(void);
  26. extern void initsignal(void);
  27. extern void initselect(void);
  28. extern void init_socket(void);
  29. extern void initstrop(void);
  30. extern void initstruct(void);
  31. extern void inittime(void);
  32. extern void initthread(void);
  33. extern void initcStringIO(void);
  34. extern void initcPickle(void);
  35. extern void initpcre(void);
  36. #ifdef WIN32
  37. extern void initmsvcrt(void);
  38. #endif
  39. /* -- ADDMODULE MARKER 1 -- */
  40. extern void PyMarshal_Init(void);
  41. extern void initimp(void);
  42. struct _inittab _PyImport_Inittab[] = {
  43. {"array", initarray},
  44. #ifdef M_I386
  45. {"audioop", initaudioop},
  46. #endif
  47. {"binascii", initbinascii},
  48. {"cmath", initcmath},
  49. {"errno", initerrno},
  50. // {"imageop", initimageop},
  51. {"math", initmath},
  52. {"md5", initmd5},
  53. #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__)
  54. {"nt", initnt}, /* Use the NT os functions, not posix */
  55. #else
  56. #if defined(PYOS_OS2)
  57. {"os2", initos2},
  58. #else
  59. {"posix", initposix},
  60. #endif
  61. #endif
  62. {"operator", initoperator},
  63. // {"rgbimg", initrgbimg},
  64. {"signal", initsignal},
  65. #ifdef USE_SOCKET
  66. {"_socket", init_socket},
  67. {"select", initselect},
  68. #endif
  69. {"strop", initstrop},
  70. {"struct", initstruct},
  71. {"time", inittime},
  72. #ifdef WITH_THREAD
  73. {"thread", initthread},
  74. #endif
  75. {"cStringIO", initcStringIO},
  76. {"cPickle", initcPickle},
  77. {"pcre", initpcre},
  78. #ifdef WIN32
  79. {"msvcrt", initmsvcrt},
  80. #endif
  81. /* -- ADDMODULE MARKER 2 -- */
  82. /* This module "lives in" with marshal.c */
  83. {"marshal", PyMarshal_Init},
  84. /* This lives it with import.c */
  85. {"imp", initimp},
  86. /* These entries are here for sys.builtin_module_names */
  87. {"__main__", NULL},
  88. {"__builtin__", NULL},
  89. {"sys", NULL},
  90. /* Sentinel */
  91. {0, 0}
  92. };