[Plib-cvs] plib/src/psl pslCompiler.cxx,1.24,1.25 pslCompiler.h,1.27,1.28 pslContext.cxx,1.14,1.15 p
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-15 14:32:57
|
Update of /cvsroot/plib/plib/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv28419 Modified Files: pslCompiler.cxx pslCompiler.h pslContext.cxx pslContext.h pslError.cxx pslFileIO.cxx pslFileIO.h pslProgram.cxx Log Message: Const-correctness Index: pslCompiler.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslCompiler.cxx,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- pslCompiler.cxx 15 Sep 2002 06:36:24 -0000 1.24 +++ pslCompiler.cxx 15 Sep 2002 14:32:53 -0000 1.25 @@ -44,7 +44,7 @@ int pslCompiler::compile ( FILE *fd, const char *fname ) { - char *dump_env = getenv ( "PSL_DUMP" ) ; + const char *dump_env = getenv ( "PSL_DUMP" ) ; init () ; Index: pslCompiler.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslCompiler.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- pslCompiler.h 15 Sep 2002 06:36:24 -0000 1.27 +++ pslCompiler.h 15 Sep 2002 14:32:53 -0000 1.28 @@ -281,7 +281,7 @@ char *progName ; - const char *getProgName () const { return progName ; } + char *getProgName () const { return progName ; } /* Major storage for symbols and byte-codes */ Index: pslContext.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslContext.cxx,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- pslContext.cxx 15 Sep 2002 06:36:24 -0000 1.14 +++ pslContext.cxx 15 Sep 2002 14:32:53 -0000 1.15 @@ -1,4 +1,5 @@ -/* PLIB - A Suite of Portable Game Libraries +/* + PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker This library is free software; you can redistribute it and/or Index: pslContext.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslContext.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- pslContext.h 15 Sep 2002 06:36:24 -0000 1.11 +++ pslContext.h 15 Sep 2002 14:32:53 -0000 1.12 @@ -40,7 +40,7 @@ void bumpErrors () { num_errors++ ; } void bumpWarnings () { num_warnings++ ; } - const char *getProgName () const { return program -> getProgName () ; } + char *getProgName () const { return program -> getProgName () ; } void error ( const char *fmt, ... ) ; void warning ( const char *fmt, ... ) ; @@ -58,7 +58,7 @@ ~pslContext () {} ; - int getLineNo () { return line_no ; } + int getLineNo () const { return line_no ; } void pushInt ( int x ) { stack [ sp++ ] . set ( x ) ; } @@ -66,9 +66,9 @@ void pushString ( const char *x ) { stack [ sp++ ] . set ( x ) ; } void pushNumber ( const pslNumber *x ) { stack [ sp++ ] . set ( x ) ; } - int peekInt () { return stack [ sp-1 ] . getInt () ; } - float peekFloat () { return stack [ sp-1 ] . getFloat () ; } - char *peekString () { return stack [ sp-1 ] . getString () ; } + int peekInt () const { return stack [ sp-1 ] . getInt () ; } + float peekFloat () const { return stack [ sp-1 ] . getFloat () ; } + char *peekString () const { return stack [ sp-1 ] . getString () ; } void popVoid ( int n = 1 ) { sp -= n ; } int popInt () { return stack [ --sp ] . getInt () ; } Index: pslError.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslError.cxx,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- pslError.cxx 15 Sep 2002 06:36:24 -0000 1.7 +++ pslError.cxx 15 Sep 2002 14:32:53 -0000 1.8 @@ -1,4 +1,3 @@ - /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker Index: pslFileIO.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslFileIO.cxx,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- pslFileIO.cxx 10 Sep 2002 23:10:41 -0000 1.4 +++ pslFileIO.cxx 15 Sep 2002 14:32:53 -0000 1.5 @@ -1,4 +1,3 @@ - /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker Index: pslFileIO.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslFileIO.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- pslFileIO.h 10 Sep 2002 23:02:08 -0000 1.2 +++ pslFileIO.h 15 Sep 2002 14:32:53 -0000 1.3 @@ -1,4 +1,3 @@ - /* PLIB - A Suite of Portable Game Libraries Copyright (C) 1998,2002 Steve Baker Index: pslProgram.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslProgram.cxx,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- pslProgram.cxx 15 Sep 2002 06:36:24 -0000 1.13 +++ pslProgram.cxx 15 Sep 2002 14:32:53 -0000 1.14 @@ -46,7 +46,7 @@ compiler-> init () ; context -> reset () ; - char *force_trace_env = getenv ( "PSL_TRACE" ) ; + const char *force_trace_env = getenv ( "PSL_TRACE" ) ; force_trace = ( force_trace_env != NULL && ulStrEqual ( force_trace_env, "always" ) ) ; |