[Python-checkins] CVS: python/dist/src/Python import.c,2.186,2.187

Greg Ward gward@users.sourceforge.net
2001年10月04日 07:52:08 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv29523/Python
Modified Files:
	import.c 
Log Message:
Remove a couple of unused local variables (bug #445960, compiler warnings
on IRIX 6.5).
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.186
retrieving revision 2.187
diff -C2 -d -r2.186 -r2.187
*** import.c	2001年08月30日 05:16:13	2.186
--- import.c	2001年10月04日 14:52:06	2.187
***************
*** 867,871 ****
 	int i, npath;
 	size_t len, namelen;
- 	struct _frozen *f;
 	struct filedescr *fdp = NULL;
 	FILE *fp = NULL;
--- 867,870 ----
***************
*** 904,908 ****
 			return &fd_builtin;
 		}
! 		if ((f = find_frozen(name)) != NULL) {
 			strcpy(buf, name);
 			return &fd_frozen;
--- 903,907 ----
 			return &fd_builtin;
 		}
! 		if ((find_frozen(name)) != NULL) {
 			strcpy(buf, name);
 			return &fd_frozen;
***************
*** 1389,1395 ****
 {
 	struct _inittab *p;
- 	PyObject *mod;
 
! 	if ((mod = _PyImport_FindExtension(name, name)) != NULL)
 		return 1;
 
--- 1388,1393 ----
 {
 	struct _inittab *p;
 
! 	if (_PyImport_FindExtension(name, name) != NULL)
 		return 1;
 

AltStyle によって変換されたページ (->オリジナル) /