Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Dec 22, 2024
1 parent 052faee commit 984db77
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion Include/cpython/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ PyAPI_FUNC(void) _Py_NewReference(PyObject *op);
PyAPI_FUNC(void) _Py_NewReferenceNoTotal(PyObject *op);
PyAPI_FUNC(void) _Py_ResurrectReference(PyObject *op);


#ifdef Py_REF_DEBUG
/* These are useful as debugging aids when chasing down refleaks. */
PyAPI_FUNC(Py_ssize_t) _Py_GetGlobalRefTotal(void);
Expand Down
1 change: 1 addition & 0 deletions Include/internal/pycore_obmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ typedef unsigned int pymem_uint; /* assuming >= 16 bits */

void OBJECT_STAT_INCREMENT(const char *tag);
void OBJECT_STAT_FREELIST_INCREMENT(const char *tag);
void OBJECT_STAT_ALLOCATION_TYPE(PyTypeObject *tp);

/* An object allocator for Python.
Expand Down
1 change: 1 addition & 0 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
extern "C" {
#endif


/* Object and type object interface */

/*
Expand Down
1 change: 0 additions & 1 deletion Include/objimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
// directly PyObject_MALLOC() with _PyObject_VAR_SIZE().
#define PyObject_NEW_VAR(type, typeobj, n) PyObject_NewVar(type, (typeobj), (n))

void OBJECT_STAT_ALLOCATION_TYPE(PyTypeObject *tp);

/*
* Garbage Collection Support
Expand Down
3 changes: 0 additions & 3 deletions Include/pystats.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ extern "C" {
# define _Py_DECREF_STAT_INC() ((void)0)
# define _Py_INCREF_IMMORTAL_STAT_INC() ((void)0)
# define _Py_DECREF_IMMORTAL_STAT_INC() ((void)0)

//# define OBJECT_STAT_INCREMENT() ((void)0)

#endif // !Py_STATS

#ifdef __cplusplus
Expand Down

This file was deleted.

0 comments on commit 984db77

Please sign in to comment.