home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Include / other / import_c.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  4KB  |  78 lines

  1. #ifndef IMPORT_C_H
  2. #define IMPORT_C_H
  3.  
  4. #include "proto_defs.h"
  5. /* previously forward declarations stripped from import.c */
  6. static PyObject *load_module Py_PROTO((char *, FILE *, char *, int)) SEG_IMPORT_C;
  7. static struct filedescr *find_module Py_PROTO((char *, PyObject *,
  8.                            char *, int, FILE **)) SEG_IMPORT_C;
  9. static struct _frozen *find_frozen Py_PROTO((char *name)) SEG_IMPORT_C;
  10. static int init_builtin Py_PROTO((char *)) SEG_IMPORT_C; /* Forward */
  11.  
  12. static PyObject *get_parent Py_PROTO((PyObject *globals,
  13.                       char *buf, int *p_buflen)) SEG_IMPORT_C;
  14. static PyObject *load_next Py_PROTO((PyObject *mod, PyObject *altmod,
  15.                      char **p_name, char *buf, int *p_buflen)) SEG_IMPORT_C;
  16. static int mark_miss Py_PROTO((char *name)) SEG_IMPORT_C;
  17. static int ensure_fromlist Py_PROTO((PyObject *mod, PyObject *fromlist,
  18.                      char *buf, int buflen, int recursive)) SEG_IMPORT_C;
  19. static PyObject * import_submodule Py_PROTO((PyObject *mod,
  20.                          char *name, char *fullname)) SEG_IMPORT_C;
  21. /* end forward decls */
  22.  
  23. static void lock_import() SEG_IMPORT_C;
  24. static void unlock_import() SEG_IMPORT_C;
  25. static char *make_compiled_pathname Py_PROTO((char *pathname,char *buf,    int buflen)) SEG_IMPORT_C;
  26. static FILE *check_compiled_module Py_PROTO((char *pathname,long mtime,    char *cpathname)) SEG_IMPORT_C;
  27. static PyCodeObject *read_compiled_module Py_PROTO((char *cpathname,FILE *fp)) SEG_IMPORT_C;
  28. static PyObject *load_compiled_module Py_PROTO((char *name,char *cpathname,FILE *fp)) SEG_IMPORT_C;
  29. static PyCodeObject *parse_source_module Py_PROTO((char *pathname,FILE *fp)) SEG_IMPORT_C;
  30. static void write_compiled_module Py_PROTO((PyCodeObject *co,char *cpathname,long mtime)) SEG_IMPORT_C;
  31. static PyObject *load_source_module Py_PROTO((char *name,char *pathname,FILE *fp)) SEG_IMPORT_C;
  32. static PyObject *load_package Py_PROTO((char *name, char *pathname)) SEG_IMPORT_C;
  33. static int is_builtin Py_PROTO((char *name)) SEG_IMPORT_C;
  34. #ifdef CHECK_IMPORT_CASE
  35. static int check_case(char *, int, int, char *) SEG_IMPORT_C;
  36. #endif
  37.  
  38. #ifdef HAVE_STAT
  39. static int find_init_module Py_PROTO((char *)) SEG_IMPORT_C; /* Forward */
  40. #endif /* HAVE_STAT */
  41.  
  42. static struct filedescr *find_module Py_PROTO((char *realname,PyObject *path,char *buf,int buflen,FILE **p_fp)) SEG_IMPORT_C;
  43.  
  44. static PyObject *load_module Py_PROTO((char *name,FILE *fp,char *buf,int type)) SEG_IMPORT_C;
  45. static int init_builtin Py_PROTO((char *name)) SEG_IMPORT_C;
  46. static struct _frozen *find_frozen Py_PROTO((char *name)) SEG_IMPORT_C;
  47. static PyObject *get_frozen_object Py_PROTO((char *name)) SEG_IMPORT_C;
  48. static PyObject *import_module_ex Py_PROTO((char *name,PyObject *globals,PyObject *locals,PyObject *fromlist)) SEG_IMPORT_C;
  49.  
  50. PYCFUNCTION_PROTO(imp_get_magic) SEG_IMPORT_C;
  51. PYCFUNCTION_PROTO(imp_get_suffixes) SEG_IMPORT_C;
  52. PYCFUNCTION_PROTO(call_find_module) SEG_IMPORT_C;
  53. PYCFUNCTION_PROTO(imp_find_module) SEG_IMPORT_C;
  54. PYCFUNCTION_PROTO(imp_init_builtin) SEG_IMPORT_C;
  55. PYCFUNCTION_PROTO(imp_init_frozen) SEG_IMPORT_C;
  56. PYCFUNCTION_PROTO(imp_get_frozen_object) SEG_IMPORT_C;
  57. PYCFUNCTION_PROTO(imp_is_builtin) SEG_IMPORT_C;
  58. PYCFUNCTION_PROTO(imp_is_frozen) SEG_IMPORT_C;
  59. static FILE * get_file Py_PROTO((char *pathname, PyObject *fob, char *mode)) SEG_IMPORT_C;
  60. PYCFUNCTION_PROTO(imp_find_module) SEG_IMPORT_C;
  61. PYCFUNCTION_PROTO(imp_get_magic) SEG_IMPORT_C;
  62. PYCFUNCTION_PROTO(imp_get_suffixes) SEG_IMPORT_C;
  63. PYCFUNCTION_PROTO(imp_load_module) SEG_IMPORT_C;
  64. PYCFUNCTION_PROTO(imp_new_module) SEG_IMPORT_C;
  65. PYCFUNCTION_PROTO(imp_get_frozen_object) SEG_IMPORT_C;
  66. PYCFUNCTION_PROTO(imp_init_builtin) SEG_IMPORT_C;
  67. PYCFUNCTION_PROTO(imp_init_frozen) SEG_IMPORT_C;
  68. PYCFUNCTION_PROTO(imp_is_builtin) SEG_IMPORT_C;
  69. PYCFUNCTION_PROTO(imp_is_frozen) SEG_IMPORT_C;
  70. PYCFUNCTION_PROTO(imp_load_compiled) SEG_IMPORT_C;
  71. PYCFUNCTION_PROTO(imp_load_dynamic) SEG_IMPORT_C;
  72. PYCFUNCTION_PROTO(imp_load_package) SEG_IMPORT_C;
  73. PYCFUNCTION_PROTO(imp_load_resource) SEG_IMPORT_C;
  74. PYCFUNCTION_PROTO(imp_load_source) SEG_IMPORT_C;
  75. static int setint Py_PROTO((PyObject *d, char *name,int value)) SEG_IMPORT_C;
  76.  
  77. #endif /* IMPORT_C_H */
  78.