Skip to content

Commit

Permalink
Python header update for DMD 1.011. (Adjusting for "ref" keyword.)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dsource.org/projects/pyd/trunk@107 1df65b71-e716-0410-9316-ac55df2b1602
  • Loading branch information
KirkMcDonald authored and KirkMcDonald committed Apr 13, 2007
1 parent 38dacdc commit ae893b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions infrastructure/python/2.4/python.d
Original file line number Diff line number Diff line change
Expand Up @@ -1873,13 +1873,13 @@ extern (C) {

PyObject * PyWeakref_NewRef(PyObject *ob, PyObject *callback);
PyObject * PyWeakref_NewProxy(PyObject *ob, PyObject *callback);
PyObject * PyWeakref_GetObject(PyObject *ref);
PyObject * PyWeakref_GetObject(PyObject *ref_);

C_long _PyWeakref_GetWeakrefCount(PyWeakReference *head);
void _PyWeakref_ClearRef(PyWeakReference *self);

PyObject *PyWeakref_GET_OBJECT(PyObject *ref) {
return (cast(PyWeakReference *) ref).wr_object;
PyObject *PyWeakref_GET_OBJECT(PyObject *ref_) {
return (cast(PyWeakReference *) ref_).wr_object;
}


Expand Down
6 changes: 3 additions & 3 deletions infrastructure/python/2.5/python.d
Original file line number Diff line number Diff line change
Expand Up @@ -1945,13 +1945,13 @@ extern (C) {

PyObject * PyWeakref_NewRef(PyObject *ob, PyObject *callback);
PyObject * PyWeakref_NewProxy(PyObject *ob, PyObject *callback);
PyObject * PyWeakref_GetObject(PyObject *ref);
PyObject * PyWeakref_GetObject(PyObject *ref_);

Py_ssize_t _PyWeakref_GetWeakrefCount(PyWeakReference *head);
void _PyWeakref_ClearRef(PyWeakReference *self);

PyObject *PyWeakref_GET_OBJECT(PyObject *ref) {
return (cast(PyWeakReference *) ref).wr_object;
PyObject *PyWeakref_GET_OBJECT(PyObject *ref_) {
return (cast(PyWeakReference *) ref_).wr_object;
}


Expand Down

0 comments on commit ae893b1

Please sign in to comment.