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 / longobject_c.h < prev    next >
C/C++ Source or Header  |  2000-12-21  |  3KB  |  56 lines

  1. #ifndef LONGOBJECT_C_H
  2. #define LONGOBJECT_C_H
  3.  
  4. #include "proto_defs.h"
  5. /* previously forward declarations stripped from longobject.c */
  6. static PyLongObject *long_normalize Py_PROTO((PyLongObject *)) SEG_LONGOBJECT_C;
  7. static PyLongObject *mul1 Py_PROTO((PyLongObject *, wdigit)) SEG_LONGOBJECT_C;
  8. static PyLongObject *muladd1 Py_PROTO((PyLongObject *, wdigit, wdigit)) SEG_LONGOBJECT_C;
  9. static PyLongObject *divrem1 Py_PROTO((PyLongObject *, wdigit, digit *)) SEG_LONGOBJECT_C;
  10. static PyObject *long_format Py_PROTO((PyObject *aa, int base, int addL)) SEG_LONGOBJECT_C;
  11. static PyLongObject *x_divrem
  12.     Py_PROTO((PyLongObject *, PyLongObject *, PyLongObject **)) SEG_LONGOBJECT_C;
  13. static PyObject *long_pos Py_PROTO((PyLongObject *)) SEG_LONGOBJECT_C;
  14. static int long_divrem Py_PROTO((PyLongObject *, PyLongObject *,
  15.     PyLongObject **, PyLongObject **)) SEG_LONGOBJECT_C;
  16.  
  17. static PyLongObject *x_add Py_PROTO((PyLongObject *, PyLongObject *)) SEG_LONGOBJECT_C;
  18. static PyLongObject *x_sub Py_PROTO((PyLongObject *, PyLongObject *)) SEG_LONGOBJECT_C;
  19.  
  20.  
  21. static int l_divmod Py_PROTO((PyLongObject *, PyLongObject *,
  22.     PyLongObject **, PyLongObject **)) SEG_LONGOBJECT_C;
  23. static PyObject *long_bitwise Py_PROTO((PyLongObject *, int, PyLongObject *)) SEG_LONGOBJECT_C;
  24. /* end previously forward decls */
  25.  
  26. UNARYFUNC_PROTO(long_neg, PyLongObject) SEG_LONGOBJECT_C;
  27. UNARYFUNC_PROTO(long_pos, PyLongObject) SEG_LONGOBJECT_C;
  28. UNARYFUNC_PROTO(long_abs, PyLongObject) SEG_LONGOBJECT_C;
  29. UNARYFUNC_PROTO(long_int, PyObject) SEG_LONGOBJECT_C;
  30. UNARYFUNC_PROTO(long_long, PyObject) SEG_LONGOBJECT_C;
  31. UNARYFUNC_PROTO(long_float, PyObject) SEG_LONGOBJECT_C;
  32. UNARYFUNC_PROTO(long_oct, PyObject) SEG_LONGOBJECT_C;
  33. UNARYFUNC_PROTO(long_hex, PyObject) SEG_LONGOBJECT_C;
  34. UNARYFUNC_PROTO(long_invert, PyLongObject) SEG_LONGOBJECT_C;
  35. BINARYFUNC_PROTO( long_add, PyLongObject) SEG_LONGOBJECT_C;
  36. BINARYFUNC_PROTO( long_sub, PyLongObject) SEG_LONGOBJECT_C;
  37. BINARYFUNC_PROTO( long_mul, PyLongObject) SEG_LONGOBJECT_C;
  38. BINARYFUNC_PROTO( long_div, PyLongObject) SEG_LONGOBJECT_C;
  39. BINARYFUNC_PROTO( long_mod, PyLongObject) SEG_LONGOBJECT_C;
  40. BINARYFUNC_PROTO( long_divmod, PyLongObject) SEG_LONGOBJECT_C;
  41. BINARYFUNC_PROTO( long_lshift, PyLongObject) SEG_LONGOBJECT_C;
  42. BINARYFUNC_PROTO( long_rshift, PyLongObject) SEG_LONGOBJECT_C;
  43. BINARYFUNC_PROTO( long_and, PyLongObject) SEG_LONGOBJECT_C;
  44. BINARYFUNC_PROTO( long_xor, PyLongObject) SEG_LONGOBJECT_C;
  45. BINARYFUNC_PROTO( long_or, PyLongObject) SEG_LONGOBJECT_C;
  46. TERNARYFUNC_PROTO(long_pow, PyLongObject) SEG_LONGOBJECT_C;
  47. INQUIRY_PROTO(long_nonzero, PyLongObject) SEG_LONGOBJECT_C;
  48. COERCION_PROTO(long_coerce) SEG_LONGOBJECT_C;
  49. DESTRUCTOR_PROTO(long_dealloc, PyObject) SEG_LONGOBJECT_C;
  50. CMPFUNC_PROTO(long_compare, PyLongObject) SEG_LONGOBJECT_C;
  51. REPRFUNC_PROTO(long_repr, PyObject) SEG_LONGOBJECT_C;
  52. HASHFUNC_PROTO(long_hash, PyLongObject) SEG_LONGOBJECT_C;
  53.  
  54.  
  55. #endif /* LONGOBJECT_C_H */
  56.