[Plib-cvs] plib/src/psl psl.cxx,1.5,1.6 psl.h,1.23,1.24
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-27 21:20:05
|
Update of /cvsroot/plib/plib/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv8917 Modified Files: psl.cxx psl.h Log Message: Const-correctness Index: psl.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/psl.cxx,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- psl.cxx 27 Sep 2002 15:45:06 -0000 1.5 +++ psl.cxx 27 Sep 2002 21:19:59 -0000 1.6 @@ -24,12 +24,12 @@ #include "pslLocal.h" -int _pslInitialised = FALSE ; -char *_pslScriptPath = NULL ; +int _pslInitialised = FALSE ; +static char *_pslScriptPath = NULL ; void pslInit () { _pslInitialised = TRUE ; } -void pslScriptPath ( char *path ) +void pslScriptPath ( const char *path ) { delete [] _pslScriptPath ; _pslScriptPath = ulStrDup ( path ) ; Index: psl.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/psl.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- psl.h 27 Sep 2002 15:45:06 -0000 1.23 +++ psl.h 27 Sep 2002 21:19:59 -0000 1.24 @@ -330,7 +330,7 @@ void pslInit () ; -void pslScriptPath ( char *path ) ; +void pslScriptPath ( const char *path ) ; void pslSetErrorCallback ( void (*CB) ( pslProgram *, int, char *, int, char * ) ) ; #endif |