Staging
v0.5.1
https://github.com/python/cpython
Revision 195ad1b11647d76043c60689a6e6b5d077023500 authored by Jack Jansen on 26 March 2002, 12:50:40 UTC, committed by Jack Jansen on 26 March 2002, 12:50:40 UTC
Make object browser work in OSX (by rewriting the old browser
LDEF in Python). If at all possible, this should go into 2.2.1.

Use the Carbon scrap manager interface if the old interface isn't available.
1 parent 54a8e1c
Raw File
Tip revision: 195ad1b11647d76043c60689a6e6b5d077023500 authored by Jack Jansen on 26 March 2002, 12:50:40 UTC
Backport of 1.15 and 1.14:
Tip revision: 195ad1b
structseq.h

/* Tuple object interface */

#ifndef Py_STRUCTSEQ_H
#define Py_STRUCTSEQ_H
#ifdef __cplusplus
extern "C" {
#endif
               
typedef struct PyStructSequence_Field {
	char *name;
	char *doc;
} PyStructSequence_Field;

typedef struct PyStructSequence_Desc {
	char *name;
	char *doc;
	struct PyStructSequence_Field *fields;
	int n_in_sequence;
} PyStructSequence_Desc;

extern DL_IMPORT(void) PyStructSequence_InitType(PyTypeObject *type, 
						 PyStructSequence_Desc *desc);
       
extern DL_IMPORT(PyObject *) PyStructSequence_New(PyTypeObject* type);

typedef struct {
	PyObject_VAR_HEAD
	PyObject *ob_item[1];
} PyStructSequence;

/* Macro, *only* to be used to fill in brand new objects */
#define PyStructSequence_SET_ITEM(op, i, v) \
	(((PyStructSequence *)(op))->ob_item[i] = v)

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