[Python-checkins] CVS: python/dist/src/Parser grammar.c,2.19,2.20 grammar1.c,2.14,2.15 parser.c,2.20,2.21 pgen.c,2.19,2.20 assert.h,2.10,NONE
Tim Peters
tim_one@users.sourceforge.net
Mon, 03 Dec 2001 19:18:50 -0800
Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv30254/python/Parser
Modified Files:
grammar.c grammar1.c parser.c pgen.c
Removed Files:
assert.h
Log Message:
The parser doesn't need its own implementation of assert, and having its
own interfered with including Python.h. Remove Python's assert.h.
Index: grammar.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/grammar.c,v
retrieving revision 2.19
retrieving revision 2.20
diff -C2 -d -r2.19 -r2.20
*** grammar.c 2000/09/01 23:29:28 2.19
--- grammar.c 2001/12/04 03:18:48 2.20
***************
*** 2,10 ****
/* Grammar implementation */
#include "pgenheaders.h"
#include <ctype.h>
- #include "assert.h"
#include "token.h"
#include "grammar.h"
--- 2,10 ----
/* Grammar implementation */
+ #include "Python.h"
#include "pgenheaders.h"
#include <ctype.h>
#include "token.h"
#include "grammar.h"
Index: grammar1.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/grammar1.c,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -d -r2.14 -r2.15
*** grammar1.c 2001/11/28 21:34:34 2.14
--- grammar1.c 2001/12/04 03:18:48 2.15
***************
*** 2,7 ****
/* Grammar subroutines needed by parser */
#include "pgenheaders.h"
- #include "assert.h"
#include "grammar.h"
#include "token.h"
--- 2,7 ----
/* Grammar subroutines needed by parser */
+ #include "Python.h"
#include "pgenheaders.h"
#include "grammar.h"
#include "token.h"
Index: parser.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/parser.c,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -d -r2.20 -r2.21
*** parser.c 2001/07/19 15:27:45 2.20
--- parser.c 2001/12/04 03:18:48 2.21
***************
*** 6,11 ****
/* XXX To do: error recovery */
#include "pgenheaders.h"
- #include "assert.h"
#include "token.h"
#include "grammar.h"
--- 6,11 ----
/* XXX To do: error recovery */
+ #include "Python.h"
#include "pgenheaders.h"
#include "token.h"
#include "grammar.h"
Index: pgen.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/pgen.c,v
retrieving revision 2.19
retrieving revision 2.20
diff -C2 -d -r2.19 -r2.20
*** pgen.c 2001/09/11 16:43:16 2.19
--- pgen.c 2001/12/04 03:18:48 2.20
***************
*** 5,10 ****
/* For a description, see the comments at end of this file */
#include "pgenheaders.h"
- #include "assert.h"
#include "token.h"
#include "node.h"
--- 5,10 ----
/* For a description, see the comments at end of this file */
+ #include "Python.h"
#include "pgenheaders.h"
#include "token.h"
#include "node.h"
--- assert.h DELETED ---