[Python-checkins] CVS: python/dist/src/Include descrobject.h,2.6,2.7

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 20 Oct 2001 17:44:33 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv25887/Include

Modified Files:
	descrobject.h 
Log Message:
Big internal change that should have no external effects: unify the
'slotdef' structure typedef and 'struct wrapperbase'.  By adding the
wrapper docstrings to the slotdef structure, the slotdefs array can
serve as the data structure that drives add_operators(); the wrapper
descriptor contains a pointer to slotdef structure.  This replaces
lots of custom code from add_operators() by a loop over the slotdefs
array, and does away with all the tab_xxx tables.



Index: descrobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/descrobject.h,v
retrieving revision 2.6
retrieving revision 2.7
diff -C2 -d -r2.6 -r2.7
*** descrobject.h	2001/10/03 12:09:29	2.6
--- descrobject.h	2001/10/21 00:44:31	2.7
***************
*** 17,22 ****
--- 17,25 ----
  struct wrapperbase {
  	char *name;
+ 	int offset;
+ 	void *function;
  	wrapperfunc wrapper;
  	char *doc;
+ 	PyObject *name_strobj;
  };