[Plib-cvs] plib/src/ssg ssgLoadASE.cxx,1.46,1.47 ssgLoadATG.cxx,1.18,1.19 ssgLoadIV.cxx,1.11,1.12 ss
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-10-04 08:11:47
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27545 Modified Files: ssgLoadASE.cxx ssgLoadATG.cxx ssgLoadIV.cxx ssgLoadOFF.cxx ssgLoadVRML1.cxx ssgParser.h Log Message: Added "pre_processor" to ParserSpec. Index: ssgLoadASE.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadASE.cxx,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- ssgLoadASE.cxx 30 Nov 2002 00:41:50 -0000 1.46 +++ ssgLoadASE.cxx 4 Oct 2004 08:11:26 -0000 1.47 @@ -175,6 +175,7 @@ { "\r\n\t ", // delim_chars_skipable 0, // delim_chars_non_skipable + NULL, // pre_processor "{", // open_brace_chars "}", // close_brace_chars '"', // quote_char Index: ssgLoadATG.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadATG.cxx,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- ssgLoadATG.cxx 15 Sep 2002 01:29:11 -0000 1.18 +++ ssgLoadATG.cxx 4 Oct 2004 08:11:26 -0000 1.19 @@ -86,6 +86,7 @@ { "\r\n\t ", // delim_chars_skipable NULL, // delim_chars_non_skipable + NULL, // pre_processor NULL, // open_brace_chars NULL, // close_brace_chars '"', // quote_char. not used for scenery Index: ssgLoadIV.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadIV.cxx,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ssgLoadIV.cxx 15 Sep 2002 01:29:12 -0000 1.11 +++ ssgLoadIV.cxx 4 Oct 2004 08:11:26 -0000 1.12 @@ -29,6 +29,7 @@ { "\r\n\t, ", // delim_chars_skipable 0, // delim_chars_non_skipable + NULL, // pre_processor "{[", // open_brace_chars "}]", // close_brace_chars '"', // quote_char Index: ssgLoadOFF.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadOFF.cxx,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ssgLoadOFF.cxx 2 Sep 2002 06:05:48 -0000 1.11 +++ ssgLoadOFF.cxx 4 Oct 2004 08:11:26 -0000 1.12 @@ -62,6 +62,7 @@ { "\r\n\t ", // delim_chars_skipable ",;", // delim_chars_non_skipable + NULL, // pre_processor "", // open_brace_chars "", // close_brace_chars '"', // quote_char. not used for OFF Index: ssgLoadVRML1.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadVRML1.cxx,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ssgLoadVRML1.cxx 15 Sep 2002 01:29:12 -0000 1.11 +++ ssgLoadVRML1.cxx 4 Oct 2004 08:11:26 -0000 1.12 @@ -43,6 +43,7 @@ { "\r\n\t, ", // delim_chars_skipable 0, // delim_chars_non_skipable + NULL, // pre_processor "{[", // open_brace_chars "}]", // close_brace_chars '"', // quote_char Index: ssgParser.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgParser.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- ssgParser.h 2 Sep 2002 06:05:48 -0000 1.15 +++ ssgParser.h 4 Oct 2004 08:11:26 -0000 1.16 @@ -29,12 +29,16 @@ // Be sure to read the ssg-documentation, especially the chapter // on loaders/writers + +typedef void PreProcessorFunctionType(char *line); + // The _ssgParserSpec contains the rules how to extract the tokens: struct _ssgParserSpec { // delimiters; Thats is, chars that delimit tokens: const char* delim_chars_skipable ; // these are "swallowed" by the parser const char* delim_chars_non_skipable ; // These are handed to the app. + PreProcessorFunctionType *pre_processor; // After reading a line, it is first given to the preprocessor to tweak it in place. const char* open_brace_chars ; const char* close_brace_chars ; char quote_char ; |