Changeset 65
- Timestamp:
- 12/14/04 05:01:20 (4 years ago)
- Files:
-
- trunk/DerelictGL/derelict/opengl/gl.d (modified) (1 diff)
- trunk/DerelictPY/Makefile (modified) (6 diffs)
- trunk/DerelictPY/derelict/python/abstractobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/boolobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/bufferobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/cellobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/ceval.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/classobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/cobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/codecs.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/compile.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/complexobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/datetime.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/descrobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/dictobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/dpyloader.d (added)
- trunk/DerelictPY/derelict/python/enumobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/eval.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/fileobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/floatobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/frameobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/grammar.d (added)
- trunk/DerelictPY/derelict/python/intobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/intrcheck.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/iterobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/listobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/longintrepr.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/longobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/marshal.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/methodobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/modsupport.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/moduleobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/node.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/object.d (modified) (6 diffs)
- trunk/DerelictPY/derelict/python/objimpl.d (added)
- trunk/DerelictPY/derelict/python/parsetok.d (added)
- trunk/DerelictPY/derelict/python/pydebug.d (added)
- trunk/DerelictPY/derelict/python/pygenheaders.d (added)
- trunk/DerelictPY/derelict/python/pyimport.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/pymem.d (added)
- trunk/DerelictPY/derelict/python/pystate.d (modified) (4 diffs)
- trunk/DerelictPY/derelict/python/python.d (modified) (3 diffs)
- trunk/DerelictPY/derelict/python/pythonrun.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/tupleobject.d (modified) (2 diffs)
- trunk/DerelictPY/derelict/python/unicodeobject.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DerelictGL/derelict/opengl/gl.d
r60 r65 724 724 typedef GLboolean function(GLuint) pfglIsList; 725 725 typedef void function(GLuint,GLsizei) pfglDeleteLists; 726 typedef voidfunction(GLsizei) pfglGenLists;726 typedef GLuint function(GLsizei) pfglGenLists; 727 727 typedef void function(GLuint,GLenum) pfglNewList; 728 728 typedef void function() pfglEndList; trunk/DerelictPY/Makefile
r64 r65 24 24 $(PY.SRC.DIR)\descrobject.d \ 25 25 $(PY.SRC.DIR)\dictobject.d \ 26 $(PY.SRC.DIR)\dpyloader.d \ 26 27 $(PY.SRC.DIR)\enumobject.d \ 27 28 $(PY.SRC.DIR)\eval.d \ … … 30 31 $(PY.SRC.DIR)\floatobject.d \ 31 32 $(PY.SRC.DIR)\frameobject.d \ 33 $(PY.SRC.DIR)\grammar.d \ 32 34 $(PY.SRC.DIR)\intobject.d \ 33 35 $(PY.SRC.DIR)\intrcheck.d \ … … 42 44 $(PY.SRC.DIR)\node.d \ 43 45 $(PY.SRC.DIR)\object.d \ 46 $(PY.SRC.DIR)\objimpl.d \ 47 $(PY.SRC.DIR)\parsetok.d \ 44 48 $(PY.SRC.DIR)\patchlevel.d \ 49 $(PY.SRC.DIR)\pydebug.d \ 50 $(PY.SRC.DIR)\pygenheaders.d \ 45 51 $(PY.SRC.DIR)\pyimport.d \ 52 $(PY.SRC.DIR)\pymem.d \ 46 53 $(PY.SRC.DIR)\pystate.d \ 47 54 $(PY.SRC.DIR)\python.d \ … … 66 73 $(PY.OBJ.DIR)\descrobject.obj \ 67 74 $(PY.OBJ.DIR)\dictobject.obj \ 75 $(PY.OBJ.DIR)\dpyloader.obj \ 68 76 $(PY.OBJ.DIR)\enumobject.obj \ 69 77 $(PY.OBJ.DIR)\errcode.obj \ … … 72 80 $(PY.OBJ.DIR)\floatobject.obj \ 73 81 $(PY.OBJ.DIR)\frameobject.obj \ 82 $(PY.OBJ.DIR)\grammar.obj \ 74 83 $(PY.OBJ.DIR)\intobject.obj \ 75 84 $(PY.OBJ.DIR)\intrcheck.obj \ … … 84 93 $(PY.OBJ.DIR)\node.obj \ 85 94 $(PY.OBJ.DIR)\object.obj \ 95 $(PY.OBJ.DIR)\objimpl.obj \ 96 $(PY.OBJ.DIR)\parsetok.obj \ 86 97 $(PY.OBJ.DIR)\patchlevel.obj \ 98 $(PY.OBJ.DIR)\pydebug.obj \ 99 $(PY.OBJ.DIR)\pygenheaders.obj \ 87 100 $(PY.OBJ.DIR)\pyimport.obj \ 101 $(PY.OBJ.DIR)\pymem.obj \ 88 102 $(PY.OBJ.DIR)\pystate.obj \ 89 103 $(PY.OBJ.DIR)\python.obj \ trunk/DerelictPY/derelict/python/abstractobject.d
r63 r65 1 1 module derelict.python.abstractobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 220 221 alias PyObject_DelItemString PyMapping_DelItemString; 221 222 alias PyObject_DelItem PyMapping_DelItem; 223 224 package void dpyLoad_abstractObject() 225 { 226 PyObject_Cmp = cast(pfPyObject_Cmp)dpyGetProc("PyObject_Cmp"); 227 PyCallable_Check = cast(pfPyCallable_Check)dpyGetProc("PyCallable_Check"); 228 PyObject_Call = cast(pfPyObject_Call)dpyGetProc("PyObject_Call"); 229 PyObject_CallObject = cast(pfPyObject_CallObject)dpyGetProc("PyObject_CallObject"); 230 PyObject_CallFunction = cast(pfPyObject_CallFunction)dpyGetProc("PyObject_CallFunction"); 231 PyObject_CallMethod = cast(pfPyObject_CallMethod)dpyGetProc("PyObject_CallMethod"); 232 PyObject_CallFunctionObjArgs = cast(pfPyObject_CallFunctionObjArgs)dpyGetProc("PyObject_CallFunctionObjArgs"); 233 PyObject_CallMethodObjArgs = cast(pfPyObject_CallMethodObjArgs)dpyGetProc("PyObject_CallMethodObjArgs"); 234 PyObject_Type = cast(pfPyObject_Type)dpyGetProc("PyObject_Type"); 235 PyObject_Size = cast(pfPyObject_Size)dpyGetProc("PyObject_Size"); 236 PyObject_GetItem = cast(pfPyObject_GetItem)dpyGetProc("PyObject_GetItem"); 237 PyObject_SetItem = cast(pfPyObject_SetItem)dpyGetProc("PyObject_SetItem"); 238 PyObject_DelItemString = cast(pfPyObject_DelItemString)dpyGetProc("PyObject_DelItemString"); 239 PyObject_DelItem = cast(pfPyObject_DelItem)dpyGetProc("PyObject_DelItem"); 240 PyObject_AsCharBuffer = cast(pfPyObject_AsCharBuffer)dpyGetProc("PyObject_AsCharBuffer"); 241 PyObject_CheckReadBuffer = cast(pfPyObject_CheckReadBuffer)dpyGetProc("PyObject_CheckReadBuffer"); 242 PyObject_AsReadBuffer = cast(pfPyObject_AsReadBuffer)dpyGetProc("PyObject_AsReadBuffer"); 243 PyObject_AsWriteBuffer = cast(pfPyObject_AsWriteBuffer)dpyGetProc("PyObject_AsWriteBuffer"); 244 PyObject_GetIter = cast(pfPyObject_GetIter)dpyGetProc("PyObject_GetIter"); 245 PyIter_Next = cast(pfPyIter_Next)dpyGetProc("PyIter_Next"); 246 PyNumber_Check = cast(pfPyNumber_Check)dpyGetProc("PyNumber_Check"); 247 PyNumber_Add = cast(pfPyNumber_Add)dpyGetProc("PyNumber_Add"); 248 PyNumber_Subtract = cast(pfPyNumber_Subtract)dpyGetProc("PyNumber_Subtract"); 249 PyNumber_Multiply = cast(pfPyNumber_Multiply)dpyGetProc("PyNumber_Multiply"); 250 PyNumber_Divide = cast(pfPyNumber_Divide)dpyGetProc("PyNumber_Divide"); 251 PyNumber_FloorDivide = cast(pfPyNumber_FloorDivide)dpyGetProc("PyNumber_FloorDivide"); 252 PyNumber_TrueDivide = cast(pfPyNumber_TrueDivide)dpyGetProc("PyNumber_TrueDivide"); 253 PyNumber_Remainder = cast(pfPyNumber_Remainder)dpyGetProc("PyNumber_Remainder"); 254 PyNumber_Divmod = cast(pfPyNumber_Divmod)dpyGetProc("PyNumber_Divmod"); 255 PyNumber_Power = cast(pfPyNumber_Power)dpyGetProc("PyNumber_Power"); 256 PyNumber_Negative = cast(pfPyNumber_Negative)dpyGetProc("PyNumber_Negative"); 257 PyNumber_Positive = cast(pfPyNumber_Positive)dpyGetProc("PyNumber_Positive"); 258 PyNumber_Absolute = cast(pfPyNumber_Absolute)dpyGetProc("PyNumber_Absolute"); 259 PyNumber_Invert = cast(pfPyNumber_Invert)dpyGetProc("PyNumber_Invert"); 260 PyNumber_Lshift = cast(pfPyNumber_Lshift)dpyGetProc("PyNumber_Lshift"); 261 PyNumber_Rshift = cast(pfPyNumber_Rshift)dpyGetProc("PyNumber_Rshift"); 262 PyNumber_And = cast(pfPyNumber_And)dpyGetProc("PyNumber_And"); 263 PyNumber_Xor = cast(pfPyNumber_Xor)dpyGetProc("PyNumber_Xor"); 264 PyNumber_Or = cast(pfPyNumber_Or)dpyGetProc("PyNumber_Or"); 265 PyNumber_Int = cast(pfPyNumber_Int)dpyGetProc("PyNumber_Int"); 266 PyNumber_Long = cast(pfPyNumber_Long)dpyGetProc("PyNumber_Long"); 267 PyNumber_Float = cast(pfPyNumber_Float)dpyGetProc("PyNumber_Float"); 268 PyNumber_InPlaceAdd = cast(pfPyNumber_InPlaceAdd)dpyGetProc("PyNumber_InPlaceAdd"); 269 PyNumber_InPlaceSubtract = cast(pfPyNumber_InPlaceSubtract)dpyGetProc("PyNumber_InPlaceSubtract"); 270 PyNumber_InPlaceMultiply = cast(pfPyNumber_InPlaceMultiply)dpyGetProc("PyNumber_InPlaceMultiply"); 271 PyNumber_InPlaceDivide = cast(pfPyNumber_InPlaceDivide)dpyGetProc("PyNumber_InPlaceDivide"); 272 PyNumber_InPlaceFloorDivide = cast(pfPyNumber_InPlaceFloorDivide)dpyGetProc("PyNumber_InPlaceFloorDivide"); 273 PyNumber_InPlaceTrueDivide = cast(pfPyNumber_InPlaceTrueDivide)dpyGetProc("PyNumber_InPlaceTrueDivide"); 274 PyNumber_InPlaceRemainder = cast(pfPyNumber_InPlaceRemainder)dpyGetProc("PyNumber_InPlaceRemainder"); 275 PyNumber_InPlacePower = cast(pfPyNumber_InPlacePower)dpyGetProc("PyNumber_InPlacePower"); 276 PyNumber_InPlaceLshift = cast(pfPyNumber_InPlaceLshift)dpyGetProc("PyNumber_InPlaceLshift"); 277 PyNumber_InPlaceRshift = cast(pfPyNumber_InPlaceRshift)dpyGetProc("PyNumber_InPlaceRshift"); 278 PyNumber_InPlaceAnd = cast(pfPyNumber_InPlaceAnd)dpyGetProc("PyNumber_InPlaceAnd"); 279 PyNumber_InPlaceXor = cast(pfPyNumber_InPlaceXor)dpyGetProc("PyNumber_InPlaceXor"); 280 PyNumber_InPlaceOr = cast(pfPyNumber_InPlaceOr)dpyGetProc("PyNumber_InPlaceOr"); 281 PySequence_Check = cast(pfPySequence_Check)dpyGetProc("PySequence_Check"); 282 PySequence_Size = cast(pfPySequence_Size)dpyGetProc("PySequence_Size"); 283 PySequence_Concat = cast(pfPySequence_Concat)dpyGetProc("PySequence_Concat"); 284 PySequence_Repeat = cast(pfPySequence_Repeat)dpyGetProc("PySequence_Repeat"); 285 PySequence_GetItem = cast(pfPySequence_GetItem)dpyGetProc("PySequence_GetItem"); 286 PySequence_GetSlice = cast(pfPySequence_GetSlice)dpyGetProc("PySequence_GetSlice"); 287 PySequence_SetItem = cast(pfPySequence_SetItem)dpyGetProc("PySequence_SetItem"); 288 PySequence_DelItem = cast(pfPySequence_DelItem)dpyGetProc("PySequence_DelItem"); 289 PySequence_SetSlice = cast(pfPySequence_SetSlice)dpyGetProc("PySequence_SetSlice"); 290 PySequence_DelSlice = cast(pfPySequence_DelSlice)dpyGetProc("PySequence_DelSlice"); 291 PySequence_Tuple = cast(pfPySequence_Tuple)dpyGetProc("PySequence_Tuple"); 292 PySequence_List = cast(pfPySequence_List)dpyGetProc("PySequence_List"); 293 PySequence_Fast = cast(pfPySequence_Fast)dpyGetProc("PySequence_Fast"); 294 PySequence_Count = cast(pfPySequence_Count)dpyGetProc("PySequence_Count"); 295 PySequence_Contains = cast(pfPySequence_Contains)dpyGetProc("PySequence_Contains"); 296 _PySequence_IterSearch = cast(pf_PySequence_IterSearch)dpyGetProc("_PySequence_IterSearch"); 297 PySequence_Index = cast(pfPySequence_Index)dpyGetProc("PySequence_Index"); 298 PySequence_InPlaceConcat = cast(pfPySequence_InPlaceConcat)dpyGetProc("PySequence_InPlaceConcat"); 299 PySequence_InPlaceRepeat = cast(pfPySequence_InPlaceRepeat)dpyGetProc("PySequence_InPlaceRepeat"); 300 PyMapping_Check = cast(pfPyMapping_Check)dpyGetProc("PyMapping_Check"); 301 PyMapping_Size = cast(pfPyMapping_Size)dpyGetProc("PyMapping_Size"); 302 PyMapping_HasKeyString = cast(pfPyMapping_HasKeyString)dpyGetProc("PyMapping_HasKeyString"); 303 PyMapping_HasKey = cast(pfPyMapping_HasKey)dpyGetProc("PyMapping_HasKey"); 304 PyMapping_GetItemString = cast(pfPyMapping_GetItemString)dpyGetProc("PyMapping_GetItemString"); 305 PyMapping_SetItemString = cast(pfPyMapping_SetItemString)dpyGetProc("PyMapping_SetItemString"); 306 PyObject_IsInstance = cast(pfPyObject_IsInstance)dpyGetProc("PyObject_IsInstance"); 307 PyObject_IsSubclass = cast(pfPyObject_IsSubclass)dpyGetProc("PyObject_IsSubclass"); 308 } trunk/DerelictPY/derelict/python/boolobject.d
r56 r65 1 1 module derelict.python.boolobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.intobject; … … 29 30 typedef PyObject* function(int) pfPyBool_FromLong; 30 31 pfPyBool_FromLong PyBool_FromLong; 32 } // extern(C) 33 34 package void dpyLoad_boolObject() 35 { 36 Py_False = cast(PyObject*)dpyGetProc("_Py_ZeroStruct"); 37 Py_True = cast(PyObject*)dpyGetProc("_Py_TrueStruct"); 38 PyBool_Type = cast(PyTypeObject*)dpyGetProc("PyBool_Type"); 39 PyBool_FromLong = cast(pfPyBool_FromLong)dpyGetProc("PyBool_FromLong"); 31 40 } trunk/DerelictPY/derelict/python/bufferobject.d
r56 r65 1 1 module derelict.python.bufferobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 36 37 37 38 } // extern(C) 39 40 package void dpyLoad_bufferObject() 41 { 42 PyBuffer_Type = cast(PyTypeObject*)dpyGetProc("PyBuffer_Type"); 43 PyBuffer_FromObject = cast(pfPyBuffer_FromObject)dpyGetProc("PyBuffer_FromObject"); 44 PyBuffer_FromReadWriteObject = cast(pfPyBuffer_FromReadWriteObject)dpyGetProc("PyBuffer_FromReadWriteObject"); 45 PyBuffer_FromMemory = cast(pfPyBuffer_FromMemory)dpyGetProc("PyBuffer_FromMemory"); 46 PyBuffer_FromReadWriteMemory = cast(pfPyBuffer_FromReadWriteMemory)dpyGetProc("PyBuffer_FromReadWriteMemory"); 47 PyBuffer_New = cast(pfPyBuffer_New)dpyGetProc("PyBuffer_New"); 48 } trunk/DerelictPY/derelict/python/cellobject.d
r56 r65 1 1 module derelict.python.cellobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 36 37 37 38 } // extern(C) 39 40 package void dpyLoad_cellObject() 41 { 42 PyCell_Type = cast(PyTypeObject*)dpyGetProc("PyCell_Type"); 43 PyCell_New = cast(pfPyCell_New)dpyGetProc("PyCell_New"); 44 PyCell_Get = cast(pfPyCell_Get)dpyGetProc("PyCell_Get"); 45 PyCell_Set = cast(pfPyCell_Set)dpyGetProc("PyCell_Set"); 46 } trunk/DerelictPY/derelict/python/ceval.d
r56 r65 1 1 module derelict.python.ceval; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.pystate; … … 98 99 99 100 } // extern(C) 101 102 package void dpyLoad_cEval() 103 { 104 _Py_Ticker = cast(int*)dpyGetProc("_Py_Ticker"); 105 _Py_CheckInterval = cast(int*)dpyGetProc("_Py_CheckInterval"); 106 PyEval_CallObjectWithKeywords = cast(pfPyEval_CallObjectWithKeywords)dpyGetProc("PyEval_CallObjectWithKeywords"); 107 PyEval_CallFunction = cast(pfPyEval_CallFunction)dpyGetProc("PyEval_CallFunction"); 108 PyEval_CallMethod = cast(pfPyEval_CallMethod)dpyGetProc("PyEval_CallMethod"); 109 PyEval_SetProfile = cast(pfPyEval_SetProfile)dpyGetProc("PyEval_SetProfile"); 110 PyEval_SetTrace = cast(pfPyEval_SetTrace)dpyGetProc("PyEval_SetTrace"); 111 PyEval_GetBuiltins = cast(pfPyEval_GetBuiltins)dpyGetProc("PyEval_GetBuiltins"); 112 PyEval_GetGlobals = cast(pfPyEval_GetGlobals)dpyGetProc("PyEval_GetGlobals"); 113 PyEval_GetLocals = cast(pfPyEval_GetLocals)dpyGetProc("PyEval_GetLocals"); 114 PyEval_GetFrame = cast(pfPyEval_GetFrame)dpyGetProc("PyEval_GetFrame"); 115 PyEval_GetRestricted = cast(pfPyEval_GetRestricted)dpyGetProc("PyEval_GetRestricted"); 116 PyEval_MergeCompilerFlags = cast(pfPyEval_MergeCompilerFlags)dpyGetProc("PyEval_MergeCompilerFlags"); 117 Py_FlushLine = cast(pfPy_FlushLine)dpyGetProc("Py_FlushLine"); 118 Py_AddPendingCall = cast(pfPy_AddPendingCall)dpyGetProc("Py_AddPendingCall"); 119 Py_MakePendingCalls = cast(pfPy_MakePendingCalls)dpyGetProc("Py_MakePendingCalls"); 120 Py_SetRecursionLimit = cast(pfPy_SetRecursionLimit)dpyGetProc("Py_SetRecursionLimit"); 121 Py_GetRecursionLimit = cast(pfPy_GetRecursionLimit)dpyGetProc("Py_GetRecursionLimit"); 122 PyEval_GetFuncName = cast(pfPyEval_GetFuncName)dpyGetProc("PyEval_GetFuncName"); 123 PyEval_GetFuncDesc = cast(pfPyEval_GetFuncDesc)dpyGetProc("PyEval_GetFuncDesc"); 124 PyEval_GetCallStats = cast(pfPyEval_GetCallStats)dpyGetProc("PyEval_GetCallStats"); 125 PyEval_SaveThread = cast(pfPyEval_SaveThread)dpyGetProc("PyEval_SaveThread"); 126 PyEval_RestoreThread = cast(pfPyEval_RestoreThread)dpyGetProc("PyEval_RestoreThread"); 127 _PyEval_SliceIndex = cast(pf_PyEval_SliceIndex)dpyGetProc("_PyEval_SliceIndex"); 128 129 version(WITH_THREAD) 130 { 131 PyEval_InitThreads = cast(pfPyEval_InitThreads)dpyGetProc("PyEval_InitThreads"); 132 PyEval_AcquireLock = cast(pfPyEval_AcquireLock)dpyGetProc("PyEval_AcquireLock"); 133 PyEval_ReleaseLock = cast(pfPyEval_ReleaseLock)dpyGetProc("PyEval_ReleaseLock"); 134 PyEval_AcquireThread = cast(pfPyEval_AcquireThread)dpyGetProc("PyEval_AcquireThread"); 135 PyEval_ReleaseThread = cast(pfPyEval_ReleaseThread)dpyGetProc("PyEval_ReleaseThread"); 136 PyEval_ReInitThreads = cast(pfPyEval_ReInitThreads)dpyGetProc("PyEval_ReInitThreads"); 137 } 138 } trunk/DerelictPY/derelict/python/classobject.d
r56 r65 1 1 module derelict.python.classobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 101 102 pfPyClass_IsSubClass PyClass_IsSubClass; 102 103 104 } // extern(C) 105 106 package void dpyLoad_classObject() 107 { 108 PyClass_Type = cast(PyTypeObject*)dpyGetProc("PyClass_Type"); 109 PyInstance_Type = cast(PyTypeObject*)dpyGetProc("PyInstance_Type"); 110 PyMethod_Type = cast(PyTypeObject*)dpyGetProc("PyMethod_Type"); 111 PyClass_New = cast(pfPyClass_New)dpyGetProc("PyClass_New"); 112 PyInstance_New = cast(pfPyInstance_New)dpyGetProc("PyInstance_New"); 113 PyInstance_NewRaw = cast(pfPyInstance_NewRaw)dpyGetProc("PyInstance_NewRaw"); 114 PyMethod_New = cast(pfPyMethod_New)dpyGetProc("PyMethod_New"); 115 PyMethod_Function = cast(pfPyMethod_Function)dpyGetProc("PyMethod_Function"); 116 PyMethod_Self = cast(pfPyMethod_Self)dpyGetProc("PyMethod_Self"); 117 PyMethod_Class = cast(pfPyMethod_Class)dpyGetProc("PyMethod_Class"); 118 PyInstance_Lookup = cast(pfPyInstance_Lookup)dpyGetProc("PyInstance_Lookup"); 119 PyClass_IsSubClass = cast(pfPyClass_IsSubClass)dpyGetProc("PyClass_IsSubClass"); 103 120 } trunk/DerelictPY/derelict/python/cobject.d
r56 r65 1 1 module derelict.python.cobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 34 35 35 36 } // extern(C) 37 38 package void dpyLoad_cObject() 39 { 40 PyCObject_Type = cast(PyTypeObject*)dpyGetProc("PyCObject_Type"); 41 PyCObject_FromVoidPtr = cast(pfPyCObject_FromVoidPtr)dpyGetProc("PyCObject_FromVoidPtr"); 42 PyCObject_FromVoidPtrAndDesc = cast(pfPyCObject_FromVoidPtrAndDesc)dpyGetProc("PyCObject_FromVoidPtrAndDesc"); 43 PyCObject_AsVoidPtr = cast(pfPyCObject_AsVoidPtr)dpyGetProc("PyCObject_AsVoidPtr"); 44 PyCObject_GetDesc = cast(pfPyCObject_GetDesc)dpyGetProc("PyCObject_GetDesc"); 45 PyCObject_Import = cast(pfPyCObject_Import)dpyGetProc("PyCObject_Import"); 46 } trunk/DerelictPY/derelict/python/codecs.d
r56 r65 1 1 module derelict.python.codecs; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 42 43 43 44 } // extern(C) 45 46 package void dpyLoad_codecs() 47 { 48 PyCodec_Register = cast(pfPyCodec_Register)dpyGetProc("PyCodec_Register"); 49 _PyCodec_Lookup = cast(pf_PyCodec_Lookup)dpyGetProc("_PyCodec_Lookup"); 50 PyCodec_Encode = cast(pfPyCodec_Encode)dpyGetProc("PyCodec_Encode"); 51 PyCodec_Decode = cast(pfPyCodec_Decode)dpyGetProc("PyCodec_Decode"); 52 PyCodec_Encoder = cast(pfPyCodec_Encoder)dpyGetProc("PyCodec_Encoder"); 53 PyCodec_Decoder = cast(pfPyCodec_Decoder)dpyGetProc("PyCodec_Decoder"); 54 PyCodec_StreamReader = cast(pfPyCodec_StreamReader)dpyGetProc("PyCodec_StreamReader"); 55 PyCodec_StreamWriter = cast(pfPyCodec_StreamWriter)dpyGetProc("PyCodec_StreamWriter"); 56 PyCodec_RegisterError = cast(pfPyCodec_RegisterError)dpyGetProc("PyCodec_RegisterError"); 57 PyCodec_LookupError = cast(pfPyCodec_LookupError)dpyGetProc("PyCodec_LookupError"); 58 PyCodec_StrictErrors = cast(pfPyCodec_StrictErrors)dpyGetProc("PyCodec_StrictErrors"); 59 PyCodec_IgnoreErrors = cast(pfPyCodec_IgnoreErrors)dpyGetProc("PyCodec_IgnoreErrors"); 60 PyCodec_ReplaceErrors = cast(pfPyCodec_ReplaceErrors)dpyGetProc("PyCodec_ReplaceErrors"); 61 PyCodec_XMLCharRefReplaceErrors = cast(pfPyCodec_XMLCharRefReplaceErrors)dpyGetProc("PyCodec_XMLCharRefReplaceErrors"); 62 PyCodec_BackslashReplaceErrors = cast(pfPyCodec_BackslashReplaceErrors)dpyGetProc("PyCodec_BackslashReplaceErrors"); 63 } trunk/DerelictPY/derelict/python/compile.d
r56 r65 1 1 module derelict.python.compile; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.tupleobject; … … 84 85 pfPyNode_CompileFlags PyNode_CompileFlags; 85 86 } 87 88 package void dpyLoad_compile() 89 { 90 PyCode_Type = cast(PyTypeObject*)dpyGetProc("PyCode_Type"); 91 PyNode_Compile = cast(pfPyNode_Compile)dpyGetProc("PyNode_Compile"); 92 PyCode_New = cast(pfPyCode_New)dpyGetProc("PyCode_New"); 93 PyCode_Addr2Line = cast(pfPyCode_Addr2Line)dpyGetProc("PyCode_Addr2Line"); 94 PyNode_Future = cast(pfPyNode_Future)dpyGetProc("PyNode_Future"); 95 PyNode_CompileFlags = cast(pfPyNode_CompileFlags)dpyGetProc("PyNode_CompileFlags"); 96 } trunk/DerelictPY/derelict/python/complexobject.d
r56 r65 1 1 module derelict.python.complexobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 72 73 73 74 } // extern(C) 75 76 package void dpyLoad_complexObject() 77 { 78 PyComplex_Type = cast(PyTypeObject*)dpyGetProc("PyComplex_Type"); 79 PyComplex_FromCComplex = cast(pfPyComplex_FromCComplex)dpyGetProc("PyComplex_FromCComplex"); 80 PyComplex_FromDoubles = cast(pfPyComplex_FromDoubles)dpyGetProc("PyComplex_FromDoubles"); 81 PyComplex_RealAsDouble = cast(pfPyComplex_RealAsDouble)dpyGetProc("PyComplex_RealAsDouble"); 82 PyComplex_ImagAsDouble = cast(pfPyComplex_ImagAsDouble)dpyGetProc("PyComplex_ImagAsDouble"); 83 PyComplex_AsCComplex = cast(pfPyComplex_AsCComplex)dpyGetProc("PyComplex_AsCComplex"); 84 c_sum = cast(pfc_sum)dpyGetProc("_Py_c_sum"); 85 c_diff = cast(pfc_diff)dpyGetProc("_Py_c_diff"); 86 c_neg = cast(pfc_neg)dpyGetProc("_Py_c_neg"); 87 c_prod = cast(pfc_prod)dpyGetProc("_Py_c_prod"); 88 c_quot = cast(pfc_quot)dpyGetProc("_Py_c_quot"); 89 c_pow = cast(pfc_pow)dpyGetProc("_Py_c_pow"); 90 } trunk/DerelictPY/derelict/python/datetime.d
r56 r65 1 1 module derelict.python.datetime; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 180 181 return (obj.ob_type is PyDateTime_TZInfoType); 181 182 } 183 184 package void dpyLoad_dateTime() 185 { 186 PyDateTime_DateType = cast(PyTypeObject*)dpyGetProc("PyDateTime_DateType"); 187 PyDateTime_DateTimeType = cast(PyTypeObject*)dpyGetProc("PyDateTime_DateTimeType"); 188 PyDateTime_TimeType = cast(PyTypeObject*)dpyGetProc("PyDateTime_TimeType"); 189 PyDateTime_DeltaType = cast(PyTypeObject*)dpyGetProc("PyDateTime_DeltaType"); 190 PyDateTime_TZInfoType = cast(PyTypeObject*)dpyGetProc("PyDateTime_TZInfoType"); 191 } trunk/DerelictPY/derelict/python/descrobject.d
r56 r65 1 1 module derelict.python.descrobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.methodobject; … … 103 104 104 105 } // extern(C) 106 107 package void dpyLoad_descrObject() 108 { 109 PyWrapperDescr_Type = cast(PyTypeObject*)dpyGetProc("PyWrapperDescr_Type"); 110 PyProperty_Type = cast(PyTypeObject*)dpyGetProc("PyProperty_Type"); 111 PyDescr_NewMethod = cast(pfPyDescr_NewMethod)dpyGetProc("PyDescr_NewMethod"); 112 PyDescr_NewClassMethod = cast(pfPyDescr_NewClassMethod)dpyGetProc("PyDescr_NewClassMethod"); 113 PyDescr_NewMember = cast(pfPyDescr_NewMember)dpyGetProc("PyDescr_NewMember"); 114 PyDescr_NewGetSet = cast(pfPyDescr_NewGetSet)dpyGetProc("PyDescr_NewGetSet"); 115 PyDescr_NewWrapper = cast(pfPyDescr_NewWrapper)dpyGetProc("PyDescr_NewWrapper"); 116 PyDictProxy_New = cast(pfPyDictProxy_New)dpyGetProc("PyDictProxy_New"); 117 PyWrapper_New = cast(pfPyWrapper_New)dpyGetProc("PyWrapper_New"); 118 } trunk/DerelictPY/derelict/python/dictobject.d
r57 r65 1 1 module derelict.python.dictobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 79 80 80 81 } // extern(C) 82 83 package void dpyLoad_dictObject() 84 { 85 PyDict_Type = cast(PyTypeObject*)dpyGetProc("PyDict_Type"); 86 PyDict_New = cast(pfPyDict_New)dpyGetProc("PyDict_New"); 87 PyDict_GetItem = cast(pfPyDict_GetItem)dpyGetProc("PyDict_GetItem"); 88 PyDict_SetItem = cast(pfPyDict_SetItem)dpyGetProc("PyDict_SetItem"); 89 PyDict_DelItem = cast(pfPyDict_DelItem)dpyGetProc("PyDict_DelItem"); 90 PyDict_Clear = cast(pfPyDict_Clear)dpyGetProc("PyDict_Clear"); 91 PyDict_Next = cast(pfPyDict_Next)dpyGetProc("PyDict_Next"); 92 PyDict_Keys = cast(pfPyDict_Keys)dpyGetProc("PyDict_Keys"); 93 PyDict_Values = cast(pfPyDict_Values)dpyGetProc("PyDict_Values"); 94 PyDict_Items = cast(pfPyDict_Items)dpyGetProc("PyDict_Items"); 95 PyDict_Size = cast(pfPyDict_Size)dpyGetProc("PyDict_Size"); 96 PyDict_Copy = cast(pfPyDict_Copy)dpyGetProc("PyDict_Copy"); 97 PyDict_Update = cast(pfPyDict_Update)dpyGetProc("PyDict_Update"); 98 PyDict_Merge = cast(pfPyDict_Merge)dpyGetProc("PyDict_Merge"); 99 PyDict_MergeFromSeq2 = cast(pfPyDict_MergeFromSeq2)dpyGetProc("PyDict_MergeFromSeq2"); 100 PyDict_GetItemString = cast(pfPyDict_GetItemString)dpyGetProc("PyDict_GetItemString"); 101 PyDict_SetItemString = cast(pfPyDict_SetItemString)dpyGetProc("PyDict_SetItemString"); 102 PyDict_DelItemString = cast(pfPyDict_DelItemString)dpyGetProc("PyDict_DelItemString"); 103 } trunk/DerelictPY/derelict/python/enumobject.d
r57 r65 1 1 module derelict.python.enumobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 7 8 //============================================================================== 8 9 PyTypeObject* PyEnum_Type; 10 11 package void dpyLoad_enumObject() 12 { 13 PyEnum_Type = cast(PyTypeObject*)dpyGetProc("PyEnum_Type"); 14 } trunk/DerelictPY/derelict/python/eval.d
r57 r65 1 1 module derelict.python.eval; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.compile; … … 16 17 pf_PyEval_CallTracing _PyEval_CallTracing; 17 18 } // extern(C) 19 20 package void dpyLoad_eval() 21 { 22 PyEval_EvalCode = cast(pfPyEval_EvalCode)dpyGetProc("PyEval_EvalCode"); 23 PyEval_EvalCodeEx = cast(pfPyEval_EvalCodeEx)dpyGetProc("PyEval_EvalCodeEx"); 24 _PyEval_CallTracing = cast(pf_PyEval_CallTracing)dpyGetProc("_PyEval_CallTracing"); 25 } trunk/DerelictPY/derelict/python/fileobject.d
r57 r65 1 1 module derelict.python.fileobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 74 75 pfPyFile_AsFileDescriptor PyFile_AsFileDescriptor; 75 76 } // extern(C) 77 78 package void dpyLoad_fileObject() 79 { 80 PyFile_Type = cast(PyTypeObject*)dpyGetProc("PyFile_Type"); 81 Py_FileSystemDefaultEncoding = cast(PyTypeObject*)dpyGetProc("Py_FileSystemDefaultEncoding"); 82 PyFile_FromString = cast(pfPyFile_FromString)dpyGetProc("PyFile_FromString"); 83 PyFile_SetBufSize = cast(pfPyFile_SetBufSize)dpyGetProc("PyFile_SetBufSize"); 84 PyFile_SetEncoding = cast(pfPyFile_SetEncoding)dpyGetProc("PyFile_SetEncoding"); 85 PyFile_FromFile = cast(pfPyFile_FromFile)dpyGetProc("PyFile_FromFile"); 86 PyFile_AsFile = cast(pfPyFile_AsFile)dpyGetProc("PyFile_AsFile"); 87 PyFile_Name = cast(pfPyFile_Name)dpyGetProc("PyFile_Name"); 88 PyFile_GetLine = cast(pfPyFile_GetLine)dpyGetProc("PyFile_GetLine"); 89 PyFile_WriteObject = cast(pfPyFile_WriteObject)dpyGetProc("PyFile_WriteObject"); 90 PyFile_SoftSpace = cast(pfPyFile_SoftSpace)dpyGetProc("PyFile_SoftSpace"); 91 PyFile_WriteString = cast(pfPyFile_WriteString)dpyGetProc("PyFile_WriteString"); 92 PyFile_AsFileDescriptor = cast(pfPyFile_AsFileDescriptor)dpyGetProc("PyFile_AsFileDescriptor"); 93 94 } trunk/DerelictPY/derelict/python/floatobject.d
r56 r65 1 1 module derelict.python.floatobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 59 60 60 61 } // extern(C) 62 63 package void dpyLoad_floatObject() 64 { 65 PyFloat_Type = cast(PyTypeObject*)dpyGetProc("PyFloat_Type"); 66 PyFloat_FromString = cast(pfPyFloat_FromString)dpyGetProc("PyFloat_FromString"); 67 PyFloat_FromDouble = cast(pfPyFloat_FromDouble)dpyGetProc("PyFloat_FromDouble"); 68 PyFloat_AsDouble = cast(pfPyFloat_AsDouble)dpyGetProc("PyFloat_AsDouble"); 69 PyFloat_AsReprString = cast(pfPyFloat_AsReprString)dpyGetProc("PyFloat_AsReprString"); 70 PyFloat_AsString = cast(pfPyFloat_AsString)dpyGetProc("PyFloat_AsString"); 71 _PyFloat_Pack4 = cast(pf_PyFloat_Pack4)dpyGetProc("_PyFloat_Pack4"); 72 _PyFloat_Pack8 = cast(pf_PyFloat_Pack8)dpyGetProc("_PyFloat_Pack8"); 73 _PyFloat_Unpack4 = cast(pf_PyFloat_Unpack4)dpyGetProc("_PyFloat_Unpack4"); 74 _PyFloat_Unpack8 = cast(pf_PyFloat_Unpack8)dpyGetProc("_PyFloat_Unpack8"); 75 } trunk/DerelictPY/derelict/python/frameobject.d
r56 r65 1 1 module derelict.python.frameobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.compile; … … 66 67 pfPyFrame_LocalsToFast PyFrame_LocalsToFast; 67 68 pfPyFrame_FastToLocals PyFrame_FastToLocals; 69 } // extern(C) 70 71 package void dpyLoad_frameObject() 72 { 73 PyFrame_Type = cast(PyTypeObject*)dpyGetProc("PyFrame_Type"); 74 PyFrame_BlockSetup = cast(pfPyFrame_BlockSetup)dpyGetProc("PyFrame_BlockSetup"); 75 PyFrame_BlockPop = cast(pfPyFrame_BlockPop)dpyGetProc("PyFrame_BlockPop"); 76 PyFrame_ExtendStack = cast(pfPyFrame_ExtendStack)dpyGetProc("PyFrame_ExtendStack"); 77 PyFrame_LocalsToFast = cast(pfPyFrame_LocalsToFast)dpyGetProc("PyFrame_LocalsToFast"); 78 PyFrame_FastToLocals = cast(pfPyFrame_FastToLocals)dpyGetProc("PyFrame_FastToLocals"); 68 79 } trunk/DerelictPY/derelict/python/intobject.d
r56 r65 1 1 module derelict.python.intobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.unicodeobject; … … 54 55 version(USING_UNICODE) 55 56 { 56 typedef PyObject* function(Py_UNICODE*, char**, int) pfPyInt_FromUnicode;57 pfPyInt_FromUnicode PyInt_FromUnicode;57 typedef PyObject* function(Py_UNICODE*, char**, int) pfPyInt_FromUnicode; 58 pfPyInt_FromUnicode PyInt_FromUnicode; 58 59 } 59 60 60 61 } // extern(C) 61 62 63 package void dpyLoad_intObject() 64 { 65 PyInt_Type = cast(PyTypeObject*)dpyGetProc("PyInt_Type"); 66 PyInt_FromString = cast(pfPyInt_FromString)dpyGetProc("PyInt_FromString"); 67 PyInt_FromLong = cast(pfPyInt_FromLong)dpyGetProc("PyInt_FromLong"); 68 PyInt_AsLong = cast(pfPyInt_AsLong)dpyGetProc("PyInt_AsLong"); 69 PyInt_AsUnsignedLongMask = cast(pfPyInt_AsUnsignedLongMask)dpyGetProc("PyInt_AsUnsignedLongMask"); 70 PyInt_AsUnsignedLongLongMask = cast(pfPyInt_AsUnsignedLongLongMask)dpyGetProc("PyInt_AsUnsignedLongLongMask"); 71 PyInt_GetMax = cast(pfPyInt_GetMax)dpyGetProc("PyInt_GetMax"); 72 PyOS_strtoul = cast(pfPyOS_strtoul)dpyGetProc("PyOS_strtoul"); 73 PyOS_strtol = cast(pfPyOS_strtol)dpyGetProc("PyOS_strtol"); 62 74 75 version(USING_UNICODE) 76 { 77 PyInt_FromUnicode = cast(pfPyInt_FromUnicode)dpyGetProc("PyInt_FromUnicode"); 78 } 79 } 80 81 trunk/DerelictPY/derelict/python/intrcheck.d
r59 r65 1 1 module derelict.python.intrcheck; 2 3 private import derelict.python.dpyloader; 2 4 3 5 //============================================================================== … … 13 15 pfPyOS_AfterFork PyOS_AfterFork; 14 16 } // extern(C) 17 18 package void dpyLoad_intrCheck() 19 { 20 PyOS_InterruptOccurred = cast(pfPyOS_InterruptOccurred)dpyGetProc("PyOS_InterruptOccurred"); 21 PyOS_InitInterrupts = cast(pfPyOS_InitInterrupts)dpyGetProc("PyOS_InitInterrupts"); 22 PyOS_AfterFork = cast(pfPyOS_AfterFork)dpyGetProc("PyOS_AfterFork"); 23 } trunk/DerelictPY/derelict/python/iterobject.d
r59 r65 1 1 module derelict.python.iterobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 32 33 pfPyCallIter_New PyCallIter_New; 33 34 } // extern(C) 35 36 package void dpyLoad_iterObject() 37 { 38 PySeqIter_Type = cast(PyTypeObject*)dpyGetProc("PySeqIter_Type"); 39 PyCallIter_Type = cast(PyTypeObject*)dpyGetProc("PyCallIter_Type"); 40 PySeqIter_New = cast(pfPySeqIter_New)dpyGetProc("PySeqIter_New"); 41 PyCallIter_New = cast(pfPyCallIter_New)dpyGetProc("PyCallIter_New"); 42 } trunk/DerelictPY/derelict/python/listobject.d
r59 r65 1 1 module derelict.python.listobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 73 74 pfPyList_AsTuple PyList_AsTuple; 74 75 } // extern(C) 76 77 package void dpyLoad_listObject() 78 { 79 PyList_Type = cast(PyTypeObject*)dpyGetProc("PyList_Type"); 80 PyList_New = cast(pfPyList_New)dpyGetProc("PyList_New"); 81 PyList_Size = cast(pfPyList_Size)dpyGetProc("PyList_Size"); 82 PyList_GetItem = cast(pfPyList_GetItem)dpyGetProc("PyList_GetItem"); 83 PyList_SetItem = cast(pfPyList_SetItem)dpyGetProc("PyList_SetItem"); 84 PyList_Insert = cast(pfPyList_Insert)dpyGetProc("PyList_Insert"); 85 PyList_Append = cast(pfPyList_Append)dpyGetProc("PyList_Append"); 86 PyList_GetSlice = cast(pfPyList_GetSlice)dpyGetProc("PyList_GetSlice"); 87 PyList_SetSlice = cast(pfPyList_SetSlice)dpyGetProc("PyList_SetSlice"); 88 PyList_Sort = cast(pfPyList_Sort)dpyGetProc("PyList_Sort"); 89 PyList_Reverse = cast(pfPyList_Reverse)dpyGetProc("PyList_Reverse"); 90 PyList_AsTuple = cast(pfPyList_AsTuple)dpyGetProc("PyList_AsTuple"); 91 } trunk/DerelictPY/derelict/python/longintrepr.d
r56 r65 1 1 module derelict.python.longintrepr; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 … … 25 26 // FUNCTIONS 26 27 //============================================================================== 28 extern(C) 29 { 27 30 typedef PyLongObject* function(int) pf_PyLong_New; 28 31 typedef PyObject* function(PyLongObject*) pf_PyLong_Copy; 29 32 pf_PyLong_New _PyLong_New; 30 33 pf_PyLong_Copy _PyLong_Copy; 34 } // extern(C) 35 36 package void dpyLoad_longIntrpr() 37 { 38 _PyLong_New = cast(pf_PyLong_New)dpyGetProc("_PyLong_New"); 39 _PyLong_Copy = cast(pf_PyLong_Copy)dpyGetProc("_PyLong_Copy"); 40 } trunk/DerelictPY/derelict/python/longobject.d
r56 r65 1 1 module derelict.python.longobject; 2 2 3 private import derelict.python.dpyloader; 3 4 private import derelict.python.object; 4 5 private import derelict.python.longintrepr; … … 76 77 version(USING_UNICODE) 77 78 { 78 typedef PyObject* function(Py_UNICODE*, int, int) pfPyLong_FromUnicode;79 pfPyLong_FromUnicode PyLong_FromUnicode;79 typedef PyObject* function(Py_UNICODE*, int, int) pfPyLong_FromUnicode; 80 pfPyLong_FromUnicode PyLong_FromUnicode; 80 81 } 81 82 82 83 } // extern(C) 84 85 package void dpyLoad_longObject() 86 { 87 PyLong_Type = cast(PyTypeObject*)dpyGetProc("PyLong_Type"); 88 PyLong_FromLong = cast(pfPyLong_FromLong)dpyGetProc("PyLong_FromLong"); 89 PyLong_FromUnsignedLong = cast(pfPyLong_FromUnsignedLong)dpyGetProc("PyLong_FromUnsignedLong"); 90 PyLong_FromDouble = cast(pfPyLong_FromDouble)dpyGetProc("PyLong_FromDouble"); 91 PyLong_AsLong = cast(pfPyLong_AsLong)dpyGetProc("PyLong_AsLong"); 92 PyLong_AsUnsignedLong = cast(pfPyLong_AsUnsignedLong)dpyGetProc("PyLong_AsUnsignedLong"); 93 _PyLong_AsScaledDouble = cast(pf_PyLong_AsScaledDouble)dpyGetProc("_PyLong_AsScaledDouble"); 94 PyLong_AsDouble = cast(pfPyLong_AsDouble)dpyGetProc("PyLong_AsDouble"); 95 PyLong_FromVoidPtr = cast(pfPyLong_FromVoidPtr)dpyGetProc("PyLong_FromVoidPtr"); 96 PyLong_AsVoidPtr = cast(pfPyLong_AsVoidPtr)dpyGetProc("PyLong_AsVoidPtr"); 97 PyLong_FromLongLong = cast(pfPyLong_FromLongLong)dpyGetProc("PyLong_FromLongLong"); 98 PyLong_FromUnsignedLongLong = cast(pfPyLong_FromUnsignedLongLong)dpyGetProc("PyLong_FromUnsignedLongLong"); 99 PyLong_AsLongLong = cast(pfPyLong_AsLongLong)dpyGetProc("PyLong_AsLongLong"); 100 PyLong_AsUnsignedLongLong = cast(pfPyLong_AsUnsignedLongLong)dpyGetProc("PyLong_AsUnsignedLongLong"); 101 PyLong_AsUnsignedLongLongMask = cast(pfPyLong_AsUnsignedLongLongMask)dpyGetProc("PyLong_AsUnsignedLongLongMask"); 102 PyLong_FromString = cast(pfPyLong_FromString)dpyGetProc("PyLong_FromString"); 103
