[Python-checkins] python/dist/src/Parser grammar.c,2.22,2.22.8.1

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Sat Mar 20 17:35:10 EST 2004


Update of /cvsroot/python/python/dist/src/Parser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13512

Modified Files:
      Tag: release23-maint
	grammar.c 
Log Message:
Backport to 2.3:
Fix for SF 780407.
Change %08l to %p to print a pointer.


Index: grammar.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/grammar.c,v
retrieving revision 2.22
retrieving revision 2.22.8.1
diff -C2 -d -r2.22 -r2.22.8.1
*** grammar.c	10 May 2003 07:36:56 -0000	2.22
--- grammar.c	20 Mar 2004 22:35:07 -0000	2.22.8.1
***************
*** 105,109 ****
  	lb->lb_str = strdup(str);
  	if (Py_DebugFlag)
! 		printf("Label @ %08x, %d: %s\n", (unsigned)ll, ll->ll_nlabels,
  		       PyGrammar_LabelRepr(lb));
  	return lb - ll->ll_label;
--- 105,109 ----
  	lb->lb_str = strdup(str);
  	if (Py_DebugFlag)
! 		printf("Label @ %8p, %d: %s\n", ll, ll->ll_nlabels,
  		       PyGrammar_LabelRepr(lb));
  	return lb - ll->ll_label;




More information about the Python-checkins mailing list