Staging
v0.8.1
https://github.com/python/cpython
Revision f09b1a829e013b4e1e08eb8fbc0b6bab4c683ed9 authored by Tarek Ziadé on 04 June 2009, 07:40:35 UTC, committed by Tarek Ziadé on 04 June 2009, 07:40:35 UTC
................
  r73199 | tarek.ziade | 2009-06-04 09:39:50 +0200 (Thu, 04 Jun 2009) | 9 lines

  Merged revisions 73197 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r73197 | tarek.ziade | 2009-06-04 09:31:52 +0200 (Thu, 04 Jun 2009) | 1 line

    improved test coverage for distutils.command.install and cleaned it up
  ........
................
1 parent 8ed7e2a
Raw File
Tip revision: f09b1a829e013b4e1e08eb8fbc0b6bab4c683ed9 authored by Tarek Ziadé on 04 June 2009, 07:40:35 UTC
Blocked revisions 73199 via svnmerge
Tip revision: f09b1a8
cellobject.h
/* Cell object interface */

#ifndef Py_CELLOBJECT_H
#define Py_CELLOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	PyObject_HEAD
	PyObject *ob_ref;	/* Content of the cell or NULL when empty */
} PyCellObject;

PyAPI_DATA(PyTypeObject) PyCell_Type;

#define PyCell_Check(op) (Py_TYPE(op) == &PyCell_Type)

PyAPI_FUNC(PyObject *) PyCell_New(PyObject *);
PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *);
PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *);

#define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref)
#define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v)

#ifdef __cplusplus
}
#endif
#endif /* !Py_TUPLEOBJECT_H */
back to top