summaryrefslogtreecommitdiffstats
path: root/Include/rename1.h
blob: 1b3d80a085e8cca8a89f92c0a64503f3de3582b5 (plain)
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
#ifndef Py_RENAME1_H
#define Py_RENAME1_H
#ifdef __cplusplus
extern "C" {
#endif

/***********************************************************
Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
Amsterdam, The Netherlands.

                        All Rights Reserved

Permission to use, copy, modify, and distribute this software and its 
documentation for any purpose and without fee is hereby granted, 
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in 
supporting documentation, and that the names of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.

STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

******************************************************************/

/* This file contains a bunch of #defines that make it possible to use
   "new style" names (e.g. PyObject) with the old style Python source
   distribution. */

typedef ANY *PyUnivPtr;
typedef struct methodlist PyMethodDef;

#define Py_NO_DEBUG NDEBUG
#define Py_TRACE_REFS TRACE_REFS
#define Py_REF_DEBUG REF_DEBUG
#define Py_HAVE_PROTOTYPES HAVE_PROTOTYPES
#define Py_HAVE_STDLIB HAVE_STDLIB
#define _Py_ZeroStruct FalseObject
#define _Py_NoneStruct NoObject
#define _Py_TrueStruct TrueObject
#define Py_DebugFlag debugging
#define _PyParser_Grammar gram
#define _PySys_ProfileFunc sys_profile
#define _PySys_TraceFunc sys_trace
#define _PyThread_Started threads_started
#define _PyParser_TokenNames tok_name
#define Py_VerboseFlag verbose
#define PyExc_AttributeError AttributeError
#define PyExc_EOFError EOFError
#define PyExc_IOError IOError
#define PyExc_ImportError ImportError
#define PyExc_IndexError IndexError
#define PyExc_KeyError KeyError
#define PyExc_MemoryError MemoryError
#define PyExc_NameError NameError
#define PyExc_OverflowError OverflowError
#define PyExc_RuntimeError RuntimeError
#define PyExc_SyntaxError SyntaxError
#define PyExc_SystemError SystemError
#define PyExc_TypeError TypeError
#define PyExc_ValueError ValueError
#define PyExc_ZeroDivisionError ZeroDivisionError
#define PyExc_KeyboardInterrupt KeyboardInterrupt
#define PyExc_SystemExit SystemExit
#define PyFloat_Type Floattype
#define PyInt_Type Inttype
#define PyLong_Type Longtype
#define PyNothing_Type Notype
#define PyString_Type Stringtype
#define PyType_Type Typetype
#define PyList_Type Listtype
#define PyDict_Type Dicttype
#define PyTuple_Type Tupletype
#define PyFile_Type Filetype
#define PyClass_Type Classtype
#define PyFunction_Type Functype
#define PyMethod_Type Instancemethodtype
#define PyInstance_Type Instancetype
#define PyCFunction_Type Methodtype
#define PyModule_Type Moduletype
#define PyCode_Type Codetype
#define PyFrame_Type Frametype
#define PyFloatObject floatobject
#define PyIntObject intobject
#define PyLongObject longobject
#define PyNothingObject noobject
#define PyObject object
#define PyStringObject stringobject
#define PyTypeObject typeobject
#define PyListObject listobject
#define PyDictObject dictobject
#define PyTupleObject tupleobject
#define PyFileObject fileobject
#define PyClassObject classobject
#define PyCodeObject codeobject
#define PyFrameObject frameobject
#define PyFunctionObject funcobject
#define PyMethodObject instancemethodobject
#define PyInstanceObject instanceobject
#define PyCFunctionObject methodobject
#define PyModuleObject moduleobject
#define PyNumberMethods number_methods
#define PySequenceMethods sequence_methods
#define PyMappingMethods mapping_methods
#define PyObject_HEAD OB_HEAD
#define PyObject_VAR_HEAD OB_VARHEAD
#define PyObject_HEAD_INIT OB_HEAD_INIT
#define PyObject_NEW NEWOBJ
#define PyObject_NEW_VAR NEWVAROBJ
#define Py_PROTO PROTO
#define Py_FPROTO PROTO
#define PyMem_NEW NEW
#define PyMem_RESIZE RESIZE
#define PyMem_DEL DEL
#define PyMem_XDEL XDEL
#define Py_BEGIN_ALLOW_THREADS BGN_SAVE
#define Py_BLOCK_THREADS RET_SAVE
#define Py_UNBLOCK_THREADS RES_SAVE
#define Py_END_ALLOW_THREADS END_SAVE
#define PyFloat_Check is_floatobject
#define PyInt_Check is_intobject
#define PyLong_Check is_longobject
#define PyNothing_Check is_noobject
#define PyString_Check is_stringobject
#define PyType_Check is_typeobject
#define PyList_Check is_listobject
#define PyDict_Check is_dictobject
#define PyTuple_Check is_tupleobject
#define PyFile_Check is_fileobject
#define PyClass_Check is_classobject
#define PyCode_Check is_codeobject
#define PyFrame_Check is_frameobject
#define PyFunction_Check is_funcobject
#define PyMethod_Check is_instancemethodobject
#define PyInstance_Check is_instanceobject
#define PyCFunction_Check is_methodobject
#define PyModule_Check is_moduleobject
#define Py_INCREF INCREF
#define Py_DECREF DECREF
#define Py_XINCREF XINCREF
#define Py_XDECREF XDECREF
#define _Py_NewReference NEWREF
#define _Py_Dealloc DELREF
#define _Py_ForgetReference UNREF
#define Py_None None
#define Py_False False
#define Py_True True
#define PyObject_Compare cmpobject
#define PyObject_GetAttrString getattr
#define PyObject_GetAttr getattro
#define PyObject_Hash hashobject
#define _PyObject_New newobject
#define _PyObject_NewVar newvarobject
#define PyObject_Print printobject
#define PyObject_Repr reprobject
#define PyObject_SetAttrString setattr
#define PyObject_SetAttr setattro
#define PyObject_IsTrue testbool
#define Py_PRINT_RAW PRINT_RAW
#define PyFloat_AsString float_buf_repr
#define PyFloat_AsDouble getfloatvalue
#define PyFloat_AS_DOUBLE GETFLOATVALUE
#define PyFloat_FromDouble newfloatobject
#define PyInt_AsLong getintvalue
#define PyInt_AS_LONG GETINTVALUE
#define PyInt_FromLong newintobject
#define _PyLong_New alloclongobject
#define PyLong_AsDouble dgetlongvalue
#define PyLong_FromDouble dnewlongobject
#define PyLong_AsLong getlongvalue
#define PyLong_FromString long_scan
#define PyLong_FromLong newlongobject
#define PyString_Format formatstring
#define PyString_Size getstringsize
#define PyString_AsString getstringvalue
#define PyString_AS_STRING GETSTRINGVALUE
#define PyString_Concat joinstring
#define PyString_FromStringAndSize newsizedstringobject
#define PyString_FromString newstringobject
#define _PyString_Resize resizestring
#define PyList_Append addlistitem
#define PyList_GetItem getlistitem
#define PyList_GET_ITEM GETLISTITEM
#define PyList_Size getlistsize
#define PyList_GetSlice getlistslice
#define PyList_Insert inslistitem
#define PyList_New newlistobject
#define PyList_SetItem setlistitem
#define PyList_SetSlice setlistslice
#define PyList_Sort sortlist
#define PyDict_SetItemString dictinsert
#define PyDict_GetItemString dictlookup
#define PyDict_DelItemString dictremove
#define PyDict_Items getmappingitems
#define PyDict_Keys getmappingkeys
#define PyDict_Values getmappingvalues
#define PyDict_Clear mappingclear
#define PyDict_Next mappinggetnext
#define PyDict_SetItem mappinginsert
#define PyDict_GetItem mappinglookup
#define PyDict_DelItem mappingremove
#define PyDict_New newmappingobject
#define PyTuple_GetItem gettupleitem
#define PyTuple_GET_ITEM GETTUPLEITEM
#define PyTuple_Size gettuplesize
#define PyTuple_GetSlice gettupleslice
#define PyTuple_New newtupleobject
#define PyTuple_SetItem settupleitem
#define PyFile_GetLine filegetline
#define PyFile_AsFile getfilefile
#define PyFile_FromString newfileobject
#define PyFile_FromFile newopenfileobject
#define PyFile_SoftSpace softspace
#define PyFile_WriteObject writeobject
#define PyFile_WriteString writestring
#define PyMethod_Class instancemethodgetclass
#define PyMethod_Function instancemethodgetfunc
#define PyMethod_Self instancemethodgetself
#define PyClass_IsSubclass issubclass
#define PyClass_New newclassobject
#define PyMethod_New newinstancemethodobject
#define PyInstance_New newinstanceobject
#define PyTryBlock block
#define PyFrame_ExtendStack extend_stack
#define PyFrame_New newframeobject
#define PyFrame_BlockPop pop_block
#define PyFrame_BlockSetup setup_block
#define PyFunction_GetCode getfunccode
#define PyFunction_GetGlobals getfuncglobals
#define PyFunction_New newfuncobject
#define PyCFunction method
#define Py_FindMethod findmethod
#define PyCFunction_GetFunction getmethod
#define PyCFunction_GetSelf getself
#define PyCFunction_IsVarArgs getvarargs
#define PyCFunction_New newmethodobject
#define PyModule_GetDict getmoduledict
#define PyModule_GetName getmodulename
#define PyModule_New newmoduleobject
#define PyGrammar_AddAccelerators addaccelerators
#define PyGrammar_FindDFA finddfa
#define PyGrammar_LabelRepr labelrepr
#define PyNode_ListTree listtree
#define PyNode_AddChild addchild
#define PyNode_Free freetree
#define PyNode_New newtree
#define PyParser_AddToken addtoken
#define PyParser_Delete delparser
#define PyParser_New newparser
#define PyParser_ParseFile parsefile
#define PyParser_ParseString parsestring
#define PyToken_OneChar tok_1char
#define PyToken_TwoChars tok_2char
#define PyTokenizer_Free tok_free
#define PyTokenizer_Get tok_get
#define PyTokenizer_FromFile tok_setupf
#define PyTokenizer_FromString tok_setups
#define PyNode_Compile compile
#define PyCode_New newcodeobject
#define PyEval_CallObject call_object
#define PyEval_EvalCode eval_code
#define Py_FlushLine flushline
#define PyEval_GetGlobals getglobals
#define PyEval_GetLocals getlocals
#define PyEval_InitThreads init_save_thread
#define PyErr_PrintTraceBack printtraceback
#define PyEval_RestoreThread restore_thread
#define PyEval_SaveThread save_thread
#define PyTraceBack_Fetch tb_fetch
#define PyTraceBack_Here tb_here
#define PyTraceBack_Print tb_print
#define PyTraceBack_Store tb_store
#define PyImport_AddModule add_module
#define PyImport_Cleanup doneimport
#define PyImport_GetModuleDict get_modules
#define PyImport_ImportModule import_module
#define PyImport_ImportFrozenModule init_frozen
#define PyImport_Init initimport
#define PyImport_ReloadModule reload_module
#define PyNumber_Coerce coerce
#define PyBuiltin_GetObject getbuiltin
#define PyBuiltin_Init initbuiltin
#define PyMarshal_Init initmarshal
#define PyMarshal_ReadLongFromFile rd_long
#define PyMarshal_ReadObjectFromFile rd_object
#define PyMarshal_ReadObjectFromString rds_object
#define PyMarshal_WriteLongToFile wr_long
#define PyMarshal_WriteObjectToFile wr_object
#define PySys_Init initsys
#define PySys_SetArgv setpythonargv
#define PySys_SetPath setpythonpath
#define PySys_GetObject sysget
#define PySys_GetFile sysgetfile
#define PySys_SetObject sysset
#define Py_CompileString compile_string
#define Py_FatalError fatal
#define Py_Exit goaway
#define Py_Initialize initall
#define PyErr_Print print_error
#define PyParser_SimpleParseFile parse_file
#define PyParser_SimpleParseString parse_string
#define PyRun_AnyFile run
#define PyRun_SimpleFile run_script
#define PyRun_SimpleString run_command
#define PyRun_File run_file
#define PyRun_String run_string
#define PyRun_InteractiveOne run_tty_1
#define PyRun_InteractiveLoop run_tty_loop
#define PyMember_Get getmember
#define PyMember_Set setmember
#define Py_InitModule initmodule
#define Py_BuildValue mkvalue
#define Py_VaBuildValue vmkvalue
#define PyArg_Parse getargs
#define PyArg_NoArgs(v) getargs(v, "")
#define PyArg_GetChar getichararg
#define PyArg_GetDoubleArray getidoublearray
#define PyArg_GetFloat getifloatarg
#define PyArg_GetFloatArray getifloatarray
#define PyArg_GetInt getintarg
#define PyArg_GetLong getilongarg
#define PyArg_GetLongArray getilongarray
#define PyArg_GetLongArraySize getilongarraysize
#define PyArg_GetObject getiobjectarg
#define PyArg_GetShort getishortarg
#define PyArg_GetShortArray getishortarray
#define PyArg_GetShortArraySize getishortarraysize
#define PyArg_GetString getistringarg
#define PyErr_BadArgument err_badarg
#define PyErr_BadInternalCall err_badcall
#define PyErr_Input err_input
#define PyErr_NoMemory err_nomem
#define PyErr_SetFromErrno err_errno
#define PyErr_SetNone err_set
#define PyErr_SetString err_setstr
#define PyErr_SetObject err_setval
#define PyErr_Occurred err_occurred
#define PyErr_GetAndClear err_get
#define PyErr_Clear err_clear
#define PyOS_InterruptableGetString fgets_intr
#define PyOS_InitInterrupts initintr
#define PyOS_InterruptOccurred intrcheck
#define PyOS_GetLastModificationTime getmtime

#ifdef __cplusplus
}
#endif
#endif /* !Py_RENAME1_H */