1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; LUSH Lisp Universal Shell
;;; Copyright (C) 2002 Leon Bottou, Yann Le Cun, AT&T Corp, NECI.
;;; Includes parts of TL3:
;;; Copyright (C) 1987-1999 Leon Bottou and Neuristique.
;;; Includes selected parts of SN3.2:
;;; Copyright (C) 1991-2001 AT&T Corp.
;;;
;;; Includes information derived from the GSL (Gnu Scientific Library)
;;; header files which are copyrighted and distributed under the GPL
;;; by their respective authors.
;;;
;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 2 of the License, or
;;; (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(libload "python/python-config")
#? *** pycall
;; dummy function that adds Python C header files in C file
(eval `(de dummy_pycall () ,python-cpheader-cmd ()))
#? * (dummy_pycall)
#? * (pyclass_new <o1> <o2> <om>)
#? * (pyinstance_new <o1> <o2> <om>)
#? * (pyinstance_newraw <o1> <om>)
#? * (pymethod_new <o1> <o2> <om>)
#? * (pymethod_function <om>)
#? * (pymethod_self <om>)
#? * (pymethod_class <om>)
#? * (pyclass_issubclass <o1> <om>)
#? * (pyfunction_new <o1> <om>)
#? * (pyfunction_getcode <om>)
#? * (pyfunction_getglobals <om>)
#? * (pyfunction_getdefaults <om>)
#? * (pyfunction_setdefaults <o1> <om>)
#? * (pyfunction_getclosure <om>)
#? * (pyfunction_setclosure <o1> <om>)
#? * (pyclassmethod_new <om>)
#? * (pystaticmethod_new <om>)
#? * (pycallable_check <o>)
;; ********************************************************
(de PyClass_New ( o1 o2 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") o2)
((-gptr-"PyObject *") om)
(gptr #{ PyClass_New( $o1 ,$o2 ,$om ) #} )) ;; PyObject * -> gptr
(de PyInstance_New ( o1 o2 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") o2)
((-gptr-"PyObject *") om)
(gptr #{ PyInstance_New( $o1 ,$o2 ,$om ) #} )) ;; PyObject * -> gptr
(de PyInstance_NewRaw ( o1 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") om)
(gptr #{ PyInstance_NewRaw( $o1 ,$om ) #} )) ;; PyObject * -> gptr
(de PyMethod_New ( o1 o2 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") o2)
((-gptr-"PyObject *") om)
(gptr #{ PyMethod_New( $o1 ,$o2 ,$om ) #} )) ;; PyObject * -> gptr
(de PyMethod_Function ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyMethod_Function( $om ) #} )) ;; PyObject * -> gptr
(de PyMethod_Self ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyMethod_Self( $om ) #} )) ;; PyObject * -> gptr
(de PyMethod_Class ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyMethod_Class( $om ) #} )) ;; PyObject * -> gptr
(de PyClass_IsSubclass ( o1 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") om)
(int #{ PyClass_IsSubclass( $o1 ,$om ) #} ))
(de PyFunction_New ( o1 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") om)
(gptr #{ PyFunction_New( $o1 ,$om ) #} )) ;; PyObject * -> gptr
(de PyFunction_GetCode ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyFunction_GetCode( $om ) #} )) ;; PyObject * -> gptr
(de PyFunction_GetGlobals ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyFunction_GetGlobals( $om ) #} )) ;; PyObject * -> gptr
(de PyFunction_GetDefaults ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyFunction_GetDefaults( $om ) #} )) ;; PyObject * -> gptr
(de PyFunction_SetDefaults ( o1 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") om)
(int #{ PyFunction_SetDefaults( $o1 ,$om ) #} ))
(de PyFunction_GetClosure ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyFunction_GetClosure( $om ) #} )) ;; PyObject * -> gptr
(de PyFunction_SetClosure ( o1 om )
((-gptr-"PyObject *") o1)
((-gptr-"PyObject *") om)
(int #{ PyFunction_SetClosure( $o1 ,$om ) #} ))
(de PyClassMethod_New ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyClassMethod_New( $om ) #} )) ;; PyObject * -> gptr
(de PyStaticMethod_New ( om )
((-gptr-"PyObject *") om)
(gptr #{ PyStaticMethod_New( $om ) #} )) ;; PyObject * -> gptr
(de PyCallable_Check (o )
((-gptr-"PyObject *") o)
(int #{ PyCallable_Check( $o ) #} ))
;; ********************************************************
(dhc-make ()
dummy_pycall
pyclass_new
pyinstance_new
pyinstance_newraw
pymethod_new
pymethod_function
pymethod_self
pymethod_class
pyclass_issubclass
pyfunction_new
pyfunction_getcode
pyfunction_getglobals
pyfunction_getdefaults
pyfunction_setdefaults
pyfunction_getclosure
pyfunction_setclosure
pyclassmethod_new
pystaticmethod_new
pycallable_check
)
|