[Plib-cvs] plib/src/psl pslCompiler.cxx,1.15,1.16 pslError.cxx,1.3,1.4 pslFileIO.h,1.1,1.2 pslToken.
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-10 23:02:17
|
Update of /cvsroot/plib/plib/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv7466 Modified Files: pslCompiler.cxx pslError.cxx pslFileIO.h pslToken.cxx Log Message: Removed some global namespace pollution from PSL Index: pslCompiler.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslCompiler.cxx,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- pslCompiler.cxx 10 Sep 2002 04:37:39 -0000 1.15 +++ pslCompiler.cxx 10 Sep 2002 23:02:06 -0000 1.16 @@ -46,9 +46,9 @@ { init () ; - pushDefaultFile ( fd, (fname == NULL) ? progName : fname ) ; + _pslPushDefaultFile ( fd, (fname == NULL) ? progName : fname ) ; pushProgram () ; - popDefaultFile () ; + _pslPopDefaultFile () ; if ( num_errors != 0 || num_warnings != 0 ) fprintf ( stderr, "PSL: '%s' Compiled with %d Warnings, %d Fatal Errors\n", Index: pslError.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslError.cxx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- pslError.cxx 10 Sep 2002 04:37:39 -0000 1.3 +++ pslError.cxx 10 Sep 2002 23:02:07 -0000 1.4 @@ -47,11 +47,11 @@ va_end ( argp ) ; if ( _pslErrorCB != NULL ) - (*_pslErrorCB)( PSL_COMPILETIME_WARNING, getFname(), getLineNo(), + (*_pslErrorCB)( PSL_COMPILETIME_WARNING, _pslGetFname(), _pslGetLineNo(), _pslErrorBuffer ) ; else fprintf ( stderr, "PSL: \"%s\" line %3d: WARNING - %s\n", - getFname(),getLineNo(), + _pslGetFname(), _pslGetLineNo(), _pslErrorBuffer ) ; bumpWarnings () ; @@ -68,11 +68,11 @@ va_end ( argp ) ; if ( _pslErrorCB != NULL ) - (*_pslErrorCB)( PSL_COMPILETIME_ERROR, getFname(), getLineNo(), + (*_pslErrorCB)( PSL_COMPILETIME_ERROR, _pslGetFname(), _pslGetLineNo(), _pslErrorBuffer ) ; else fprintf ( stderr, "PSL: \"%s\" line %3d: *ERROR* - %s\n", - getFname(),getLineNo(), + _pslGetFname(), _pslGetLineNo(), _pslErrorBuffer ) ; bumpErrors () ; Index: pslFileIO.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslFileIO.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- pslFileIO.h 10 Sep 2002 04:37:39 -0000 1.1 +++ pslFileIO.h 10 Sep 2002 23:02:08 -0000 1.2 @@ -22,14 +22,14 @@ $Id$ */ -char *getFname () ; -int getLineNo () ; +char *_pslGetFname () ; +int _pslGetLineNo () ; -void popDefaultFile () ; -void pushDefaultFile ( FILE *fd, const char *fname ) ; -void pushDefaultFile ( const char *fname ) ; +void _pslPopDefaultFile () ; +void _pslPushDefaultFile ( FILE *fd, const char *fname ) ; +void _pslPushDefaultFile ( const char *fname ) ; -void unGetChar ( int c ) ; -int getChar () ; +void _pslUnGetChar ( int c ) ; +int _pslGetChar () ; Index: pslToken.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslToken.cxx,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- pslToken.cxx 10 Sep 2002 04:37:39 -0000 1.12 +++ pslToken.cxx 10 Sep 2002 23:02:08 -0000 1.13 @@ -34,16 +34,16 @@ a '#' preprocessor directive is on this line. */ - int c = ::getChar () ; + int c = _pslGetChar () ; if ( c == '\n' ) { - int d = ::getChar () ; + int d = _pslGetChar () ; if ( d == '#' ) return doPreProcessorCommand () ; - ::unGetChar ( d ) ; + _pslUnGetChar ( d ) ; } /* @@ -92,7 +92,7 @@ int c ; do { c = getChar () ; } while ( c != '\n' && c != -1 ) ; - pushDefaultFile ( p ) ; + _pslPushDefaultFile ( p ) ; } @@ -195,7 +195,7 @@ /* If you get two stars in a row - unget the second one */ if ( c == '*' ) - unGetChar ( '*' ) ; + _pslUnGetChar ( '*' ) ; } while ( c != '/' ) ; @@ -275,7 +275,7 @@ if ( tp > 0 ) { - unGetChar ( c ) ; + _pslUnGetChar ( c ) ; res [ tp ] = '\0' ; } else |