[Python-checkins] python/dist/src/Python errors.c,2.70,2.70.2.1

jhylton@users.sourceforge.net jhylton@users.sourceforge.net
Sun, 07 Jul 2002 10:44:12 -0700


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

Modified Files:
      Tag: ast-branch
	errors.c 
Log Message:
Add some constification.

Perhaps this is a distraction from the real AST changes.


Index: errors.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/errors.c,v
retrieving revision 2.70
retrieving revision 2.70.2.1
diff -C2 -d -r2.70 -r2.70.2.1
*** errors.c	30 Jun 2002 15:26:10 -0000	2.70
--- errors.c	7 Jul 2002 17:44:09 -0000	2.70.2.1
***************
*** 534,538 ****
  int
  PyErr_WarnExplicit(PyObject *category, char *message,
! 		   char *filename, int lineno,
  		   char *module, PyObject *registry)
  {
--- 534,538 ----
  int
  PyErr_WarnExplicit(PyObject *category, char *message,
! 		   const char *filename, int lineno,
  		   char *module, PyObject *registry)
  {
***************
*** 575,579 ****
  
  void
! PyErr_SyntaxLocation(char *filename, int lineno)
  {
  	PyObject *exc, *v, *tb, *tmp;
--- 575,579 ----
  
  void
! PyErr_SyntaxLocation(const char *filename, int lineno)
  {
  	PyObject *exc, *v, *tb, *tmp;
***************
*** 639,643 ****
  
  PyObject *
! PyErr_ProgramText(char *filename, int lineno)
  {
  	FILE *fp;
--- 639,643 ----
  
  PyObject *
! PyErr_ProgramText(const char *filename, int lineno)
  {
  	FILE *fp;