[Python-checkins] CVS: python/dist/src/Parser grammar1.c,2.13,2.14
Barry Warsaw
bwarsaw@users.sourceforge.net
Wed, 28 Nov 2001 13:34:36 -0800
Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv26492
Modified Files:
grammar1.c
Log Message:
Reverting last change so we don't have to think about the assert macro
redefinition problem.
Index: grammar1.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/grammar1.c,v
retrieving revision 2.13
retrieving revision 2.14
diff -C2 -d -r2.13 -r2.14
*** grammar1.c 2001/11/28 21:04:25 2.13
--- grammar1.c 2001/11/28 21:34:34 2.14
***************
*** 1,3 ****
! #include "Python.h"
/* Grammar subroutines needed by parser */
--- 1,3 ----
!
/* Grammar subroutines needed by parser */
***************
*** 40,44 ****
else if (ISNONTERMINAL(lb->lb_type)) {
if (lb->lb_str == NULL) {
! PyOS_snprintf(buf, sizeof(buf), "NT%d", lb->lb_type);
return buf;
}
--- 40,44 ----
else if (ISNONTERMINAL(lb->lb_type)) {
if (lb->lb_str == NULL) {
! sprintf(buf, "NT%d", lb->lb_type);
return buf;
}
***************
*** 50,56 ****
return _PyParser_TokenNames[lb->lb_type];
else {
! PyOS_snprintf(buf, sizeof(buf), "%.32s(%.32s)",
! _PyParser_TokenNames[lb->lb_type],
! lb->lb_str);
return buf;
}
--- 50,55 ----
return _PyParser_TokenNames[lb->lb_type];
else {
! sprintf(buf, "%.32s(%.32s)",
! _PyParser_TokenNames[lb->lb_type], lb->lb_str);
return buf;
}