[Python-checkins] python/dist/src/Modules _csv.c,1.9,1.10

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 12 Apr 2003 20:25:17 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv12069/Modules

Modified Files:
	_csv.c 
Log Message:
Must declare vrbls at the tops of blocks in C89 (wouldn't compile).


Index: _csv.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_csv.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** _csv.c	12 Apr 2003 19:23:46 -0000	1.9
--- _csv.c	13 Apr 2003 03:25:15 -0000	1.10
***************
*** 353,358 ****
                  /* And extract the attributes */
                  for (i = 0; i < PyList_GET_SIZE(dir_list); ++i) {
                          name_obj = PyList_GET_ITEM(dir_list, i);
! 			char *s = PyString_AsString(name_obj);
  			if (s == NULL)
  				return -1;
--- 353,359 ----
                  /* And extract the attributes */
                  for (i = 0; i < PyList_GET_SIZE(dir_list); ++i) {
+ 			char *s;
                          name_obj = PyList_GET_ITEM(dir_list, i);
! 			s = PyString_AsString(name_obj);
  			if (s == NULL)
  				return -1;