[Python-checkins] python/dist/src/Python asdl.c,1.1.2.3,1.1.2.4

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Wed, 02 Apr 2003 16:49:04 -0800


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

Modified Files:
      Tag: ast-branch
	asdl.c 
Log Message:
Rename variable l to len

Index: asdl.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/asdl.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** asdl.c	3 Sep 2002 22:51:43 -0000	1.1.2.3
--- asdl.c	3 Apr 2003 00:49:02 -0000	1.1.2.4
***************
*** 71,80 ****
  marshal_write_string(PyObject **buf, int *offset, string s)
  {
! 	int l = PyString_GET_SIZE(s);
! 	marshal_write_int(buf, offset, l);
! 	CHECKSIZE(buf, offset, l);
  	memcpy(PyString_AS_STRING(*buf) + *offset,
! 	       PyString_AS_STRING(s), l);
! 	*offset += l;
  	return 1;
  }
--- 71,80 ----
  marshal_write_string(PyObject **buf, int *offset, string s)
  {
! 	int len = PyString_GET_SIZE(s);
! 	marshal_write_int(buf, offset, len);
! 	CHECKSIZE(buf, offset, len);
  	memcpy(PyString_AS_STRING(*buf) + *offset,
! 	       PyString_AS_STRING(s), len);
! 	*offset += len;
  	return 1;
  }