Skip to content

Commit 9381782

Browse files
committed
new names for lots of new functions
1 parent 8e8a525 commit 9381782

19 files changed

Lines changed: 90 additions & 55 deletions

Include/accessobject.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4646
#define AC_R_PUBLIC 0004
4747
#define AC_W_PUBLIC 0002
4848

49-
extern DL_IMPORT PyTypeObject Accesstype;
49+
extern DL_IMPORT PyTypeObject PyAccess_Type;
5050

51-
#define PyAccess_Check(v) ((v)->ob_type == &Accesstype)
51+
#define PyAccess_Check(v) ((v)->ob_type == &PyAccess_Type)
5252

53-
PyObject *newaccessobject Py_PROTO((PyObject *, PyObject *, PyTypeObject *, int));
54-
PyObject *getaccessvalue Py_PROTO((PyObject *, PyObject *));
55-
int setaccessvalue Py_PROTO((PyObject *, PyObject *, PyObject *));
53+
PyObject *PyAccess_FromValue Py_PROTO((PyObject *, PyObject *, PyTypeObject *, int));
54+
PyObject *PyAccess_AsValue Py_PROTO((PyObject *, PyObject *));
55+
int PyAccess_SetValue Py_PROTO((PyObject *, PyObject *, PyObject *));
5656

57-
void setaccessowner Py_PROTO((PyObject *, PyObject *));
58-
PyObject *cloneaccessobject Py_PROTO((PyObject *));
59-
int hasaccessvalue Py_PROTO((PyObject *));
57+
void PyAccess_SetOwner Py_PROTO((PyObject *, PyObject *));
58+
PyObject *PyAccess_Clone Py_PROTO((PyObject *));
59+
int PyAccess_HasValue Py_PROTO((PyObject *));
6060

61-
extern DL_IMPORT PyTypeObject Anynumbertype, Anysequencetype, Anymappingtype;
61+
extern DL_IMPORT PyTypeObject PyAnyNumber_Type, PyAnySequence_Type, PyAnyMapping_Type;
6262

6363
#ifdef __cplusplus
6464
}

Include/allobjects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6464
#include "stringobject.h"
6565
#include "tupleobject.h"
6666
#include "listobject.h"
67-
#include "dictobject.h"
67+
#include "mappingobject.h"
6868
#include "methodobject.h"
6969
#include "moduleobject.h"
7070
#include "funcobject.h"

Include/bltinmodule.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3131
/* Built-in module interface */
3232

3333
extern PyObject *getbuiltindict Py_PROTO(());
34+
extern PyObject *getbuiltinmod Py_PROTO(());
3435

3536
#ifdef __cplusplus
3637
}

Include/dictobject.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3232

3333
#include "mappingobject.h"
3434

35-
#define PyDict_Check(op) is_mappingobject(op)
36-
37-
#define newdictobject PyDict_New
38-
39-
extern PyObject *PyDict_GetItemString Py_PROTO((PyObject *dp, char *key));
40-
extern int PyDict_SetItemString Py_PROTO((PyObject *dp, char *key, PyObject *item));
41-
extern int PyDict_DelItemString Py_PROTO((PyObject *dp, char *key));
42-
43-
#define getdictkeys PyDict_Keys
44-
45-
#define dict2lookup PyDict_GetItem
46-
#define dict2insert PyDict_SetItem
47-
#define dict2remove PyDict_DelItem
48-
4935
#ifdef __cplusplus
5036
}
5137
#endif

Include/errors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern PyObject *PyErr_SetFromErrno Py_PROTO((PyObject *));
6868

6969
extern void PyErr_BadInternalCall Py_PROTO((void));
7070

71-
extern int sigcheck Py_PROTO((void)); /* In sigcheck.c or signalmodule.c */
71+
extern int PyErr_CheckSignals Py_PROTO((void)); /* In sigcheck.c or signalmodule.c */
7272

7373
#ifdef __cplusplus
7474
}

Include/fileobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ extern DL_IMPORT PyTypeObject PyFile_Type;
3535
#define PyFile_Check(op) ((op)->ob_type == &PyFile_Type)
3636

3737
extern PyObject *PyFile_FromString Py_PROTO((char *, char *));
38-
extern void setfilebufsize Py_PROTO((PyObject *, int));
38+
extern void PyFile_SetBufSize Py_PROTO((PyObject *, int));
3939
extern PyObject *PyFile_FromFile
4040
Py_PROTO((FILE *, char *, char *, int (*)Py_FPROTO((FILE *))));
4141
extern FILE *PyFile_AsFile Py_PROTO((PyObject *));
42-
extern PyObject *getfilename Py_PROTO((PyObject *));
42+
extern PyObject *PyFile_Name Py_PROTO((PyObject *));
4343
extern PyObject *PyFile_GetLine Py_PROTO((PyObject *, int));
4444

4545
#ifdef __cplusplus

Include/frameobject.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ PyFrameObject * PyFrame_New
7272

7373
/* The rest of the interface is specific for frame objects */
7474

75-
/* List access macros */
75+
/* Tuple access macros */
7676

7777
#ifdef NDEBUG
7878
#define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
@@ -103,8 +103,8 @@ PyObject **PyFrame_ExtendStack Py_PROTO((PyFrameObject *, int, int));
103103

104104
/* Conversions between "fast locals" and locals in dictionary */
105105

106-
void locals_2_fast Py_PROTO((PyFrameObject *, int));
107-
void fast_2_locals Py_PROTO((PyFrameObject *));
106+
void PyFrame_LocalsToFast Py_PROTO((PyFrameObject *, int));
107+
void PyFrame_FastToLocals Py_PROTO((PyFrameObject *));
108108

109109
#ifdef __cplusplus
110110
}

Include/funcobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ extern DL_IMPORT PyTypeObject PyFunction_Type;
4747
extern PyObject *PyFunction_New Py_PROTO((PyObject *, PyObject *));
4848
extern PyObject *PyFunction_GetCode Py_PROTO((PyObject *));
4949
extern PyObject *PyFunction_GetGlobals Py_PROTO((PyObject *));
50-
extern PyObject *getfuncargstuff Py_PROTO((PyObject *, int *));
51-
extern int setfuncargstuff Py_PROTO((PyObject *, int, PyObject *));
50+
extern PyObject *PyFunction_GetArgStuff Py_PROTO((PyObject *, int *));
51+
extern int PyFunction_SetArgStuff Py_PROTO((PyObject *, int, PyObject *));
5252

5353
#ifdef __cplusplus
5454
}

Include/listobject.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ extern int PyList_Append Py_PROTO((PyObject *, PyObject *));
6262
extern PyObject *PyList_GetSlice Py_PROTO((PyObject *, int, int));
6363
extern int PyList_SetSlice Py_PROTO((PyObject *, int, int, PyObject *));
6464
extern int PyList_Sort Py_PROTO((PyObject *));
65+
extern int PyList_Reverse Py_PROTO((PyObject *));
6566
extern PyObject *listtuple Py_PROTO((PyObject *));
6667

6768
/* Macro, trading safety for speed */

Include/longobject.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ extern PyObject *PyLong_FromDouble Py_PROTO((double));
4141
extern long PyLong_AsLong Py_PROTO((PyObject *));
4242
extern double PyLong_AsDouble Py_PROTO((PyObject *));
4343

44-
PyObject *PyLong_FromString Py_PROTO((char *, int));
45-
PyObject *long_escan Py_PROTO((char *, char **, int));
44+
PyObject *PyLong_FromString Py_PROTO((char *, char **, int));
4645

4746
#ifdef __cplusplus
4847
}

0 commit comments

Comments
 (0)