[Plib-cvs] plib/examples/src/psl psl_demo.cxx,1.6,1.7
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-09-06 13:50:54
|
Update of /cvsroot/plib/plib/examples/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv26019/plib/examples/src/psl Modified Files: psl_demo.cxx Log Message: Forward references now work. All 'PSL_whatever' classes changed to pslWhatever to match PLIB conventions. Index: psl_demo.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/psl/psl_demo.cxx,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- psl_demo.cxx 5 Sep 2002 22:23:36 -0000 1.6 +++ psl_demo.cxx 6 Sep 2002 13:50:51 -0000 1.7 @@ -32,18 +32,18 @@ #include <plib/psl.h> -PSL_Variable hello ( int argc, PSL_Variable *argv, PSL_Program *p ) +pslVariable hello ( int argc, pslVariable *argv, pslProgram *p ) { printf ( "I am %s.\n", (char *)( p->getUserData ()) ) ; - PSL_Variable ret ; + pslVariable ret ; ret.f = 0.0f ; return ret ; } -PSL_Extension extensions [] = +pslExtension extensions [] = { { "hello", 0, hello }, { NULL, 0, NULL } @@ -54,14 +54,14 @@ { /* Create program 1 and compile it. */ - PSL_Program *prog_1 = new PSL_Program ( extensions ) ; + pslProgram *prog_1 = new pslProgram ( extensions ) ; prog_1 -> parse ( "data/test.psl" ) ; prog_1 -> dump () ; /* Clone program 2 from program 1 */ - PSL_Program *prog_2 = new PSL_Program ( prog_1 ) ; + pslProgram *prog_2 = new pslProgram ( prog_1 ) ; /* Make them unique by assigning user data to them */ |