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 / compile_c.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  5KB  |  93 lines

  1. #ifndef COMPILE_C_H
  2. #define COMPILE_C_H
  3.  
  4. #include "proto_defs.h"
  5. /* previously forward declarations stripped from compile.c */
  6. /* end forward decls */
  7.  
  8. #define COMPILINGFUNC_PROTO(name) static void name Py_PROTO((struct compiling *c, int type))
  9. #define COMPILINGFUNCMSG_PROTO(name) static void name Py_PROTO((struct compiling *c, int type, char*msg))
  10. #define COMPNODEFUNC_PROTO(name) static void name Py_PROTO((struct compiling *c, node *n))
  11. #define COMPNODEASSFUNC_PROTO(name) static void name Py_PROTO((struct compiling *c, node *n, int assigning))
  12.  
  13. static void com_error Py_PROTO((struct compiling *c, PyObject *exc,char *msg)) SEG_COMPILE_C;
  14. static void block_push Py_PROTO((struct compiling *c, int type)) SEG_COMPILE_C;
  15. static void block_pop Py_PROTO((struct compiling *c, int type)) SEG_COMPILE_C;
  16. static PyObject *parsenumber Py_PROTO((struct compiling *co, char *s)) SEG_COMPILE_C;
  17.  
  18. COMPNODEFUNC_PROTO(com_list_constructor) SEG_COMPILE_C;
  19. COMPNODEFUNC_PROTO(com_dictmaker) SEG_COMPILE_C;
  20. COMPNODEFUNC_PROTO(com_atom) SEG_COMPILE_C;
  21. static void com_slice Py_PROTO((struct compiling *c, node *n, int op)) SEG_COMPILE_C;
  22. static void com_argument Py_PROTO((struct compiling *c, node *n, PyObject **pkeywords)) SEG_COMPILE_C;
  23. COMPNODEFUNC_PROTO(com_call_function) SEG_COMPILE_C;
  24. COMPNODEFUNC_PROTO(com_select_member) SEG_COMPILE_C;
  25. COMPNODEFUNC_PROTO(com_sliceobj) SEG_COMPILE_C;
  26. COMPNODEFUNC_PROTO(com_subscript) SEG_COMPILE_C;
  27. COMPNODEASSFUNC_PROTO(com_subscriptlist) SEG_COMPILE_C;
  28. COMPNODEFUNC_PROTO(com_apply_trailer) SEG_COMPILE_C;
  29. COMPNODEFUNC_PROTO(com_power) SEG_COMPILE_C;
  30. COMPNODEFUNC_PROTO(com_factor) SEG_COMPILE_C;
  31. COMPNODEFUNC_PROTO(com_term) SEG_COMPILE_C;
  32. COMPNODEFUNC_PROTO(com_arith_expr) SEG_COMPILE_C;
  33. COMPNODEFUNC_PROTO(com_shift_expr) SEG_COMPILE_C;
  34. COMPNODEFUNC_PROTO(com_and_expr) SEG_COMPILE_C;
  35. COMPNODEFUNC_PROTO(com_xor_expr) SEG_COMPILE_C;
  36. COMPNODEFUNC_PROTO(com_expr) SEG_COMPILE_C;
  37. static enum cmp_op cmp_type Py_PROTO((node *n)) SEG_COMPILE_C;
  38. COMPNODEFUNC_PROTO(com_comparison) SEG_COMPILE_C;
  39. COMPNODEFUNC_PROTO(com_not_test) SEG_COMPILE_C;
  40. COMPNODEFUNC_PROTO(com_and_test) SEG_COMPILE_C;
  41. COMPNODEFUNC_PROTO(com_test) SEG_COMPILE_C;
  42. static void com_list Py_PROTO(( struct compiling *c, node *n, int toplevel)) SEG_COMPILE_C;
  43. static void com_assign_name Py_PROTO((struct compiling *, node *, int)) SEG_COMPILE_C;
  44. static void com_assign Py_PROTO((struct compiling *, node *, int)) SEG_COMPILE_C;
  45.  
  46. COMPNODEASSFUNC_PROTO(com_assign_attr) SEG_COMPILE_C;
  47. COMPNODEASSFUNC_PROTO(com_assign_trailer) SEG_COMPILE_C;
  48. COMPNODEASSFUNC_PROTO(com_assign_tuple) SEG_COMPILE_C;
  49. COMPNODEASSFUNC_PROTO(com_assign_list) SEG_COMPILE_C;
  50. COMPNODEASSFUNC_PROTO(com_assign_name) SEG_COMPILE_C;
  51. COMPNODEASSFUNC_PROTO(com_assign) SEG_COMPILE_C;
  52. COMPNODEFUNC_PROTO(com_expr_stmt) SEG_COMPILE_C;
  53. COMPNODEFUNC_PROTO(com_assert_stmt) SEG_COMPILE_C;
  54. COMPNODEFUNC_PROTO(com_print_stmt) SEG_COMPILE_C;
  55. COMPNODEFUNC_PROTO(com_return_stmt) SEG_COMPILE_C;
  56. COMPNODEFUNC_PROTO(com_raise_stmt) SEG_COMPILE_C;
  57. COMPNODEFUNC_PROTO(com_import_stmt) SEG_COMPILE_C;
  58. COMPNODEFUNC_PROTO(com_global_stmt) SEG_COMPILE_C;
  59. static int com_newlocal_o Py_PROTO((struct compiling *c, PyObject *nameval)) SEG_COMPILE_C;
  60. static int com_addlocal_o Py_PROTO((struct compiling *c, PyObject *nameval)) SEG_COMPILE_C;
  61. static int com_newlocal_o Py_PROTO((struct compiling *c, PyObject *nameval)) SEG_COMPILE_C;
  62. COMPNODEFUNC_PROTO(com_exec_stmt) SEG_COMPILE_C;
  63.  
  64. static int is_constant_false Py_PROTO((struct compiling *c, node *n));
  65. COMPNODEFUNC_PROTO(com_if_stmt) SEG_COMPILE_C;
  66. COMPNODEFUNC_PROTO(com_while_stmt) SEG_COMPILE_C;
  67. COMPNODEFUNC_PROTO(com_for_stmt) SEG_COMPILE_C;
  68. COMPNODEFUNC_PROTO(com_try_except) SEG_COMPILE_C;
  69. COMPNODEFUNC_PROTO(com_try_finally) SEG_COMPILE_C;
  70. COMPNODEFUNC_PROTO(com_try_stmt) SEG_COMPILE_C;
  71. static node * get_rawdocstring Py_PROTO((node *n)) SEG_COMPILE_C;
  72. static PyObject *get_docstring Py_PROTO((node *n)) SEG_COMPILE_C;
  73. COMPNODEFUNC_PROTO(com_suite) SEG_COMPILE_C;
  74. COMPNODEFUNC_PROTO(com_continue_stmt) SEG_COMPILE_C;
  75. COMPNODEFUNC_PROTO(com_funcdef) SEG_COMPILE_C;
  76. COMPNODEFUNC_PROTO(com_bases) SEG_COMPILE_C;
  77. COMPNODEFUNC_PROTO(com_classdef) SEG_COMPILE_C;
  78. COMPNODEFUNC_PROTO(com_node) SEG_COMPILE_C;
  79. static void com_fplist Py_PROTO((struct compiling *, node *)) SEG_COMPILE_C;
  80. COMPNODEFUNC_PROTO(com_fpdef) SEG_COMPILE_C;
  81. COMPNODEFUNC_PROTO(com_fplist) SEG_COMPILE_C;
  82. COMPNODEFUNC_PROTO(com_arglist) SEG_COMPILE_C;
  83. COMPNODEFUNC_PROTO(com_file_input) SEG_COMPILE_C;
  84. COMPNODEFUNC_PROTO(compile_funcdef) SEG_COMPILE_C;
  85. COMPNODEFUNC_PROTO(compile_lambdef) SEG_COMPILE_C;
  86. COMPNODEFUNC_PROTO(compile_classdef) SEG_COMPILE_C;
  87. COMPNODEFUNC_PROTO(compile_node) SEG_COMPILE_C;
  88. static void optimize Py_PROTO((    struct compiling *c)) SEG_COMPILE_C;
  89. static PyCodeObject *icompile Py_PROTO((node *n, struct compiling *base)) SEG_COMPILE_C;
  90. static PyCodeObject *jcompile Py_PROTO((node *n, char *filename,struct compiling *base)) SEG_COMPILE_C;
  91.  
  92. #endif /* COMPILE_C_H */
  93.