Update of /cvsroot/plib/plib/doc/psl
In directory usw-pr-cvs1:/tmp/cvs-serv23312
Modified Files:
appl_guide.html
Log Message:
Corrected some of the member-function prototypes referred to in the document
Index: appl_guide.html
===================================================================
RCS file: /cvsroot/plib/plib/doc/psl/appl_guide.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- appl_guide.html 13 Sep 2002 22:45:06 -0000 1.4
+++ appl_guide.html 13 Sep 2002 23:51:39 -0000 1.5
@@ -84,23 +84,25 @@
class pslProgram
{
- pslProgram ( pslExtension *extns, char *name ) ;
+ public:
- pslProgram ( pslProgram *prog, char *name ) ;
+ pslProgram ( pslExtension *extns, const char *name ) ;
+
+ pslProgram ( pslProgram *prog, const char *name ) ;
void setUserData ( void *data ) ;
- void *getUserData () ;
+ void *getUserData () const ;
- void setProgName ( char *name ) ;
- char *getProgName () ;
+ void setProgName ( const char *name ) ;
+ char *getProgName () const ;
- void dump () ;
+ void dump () const ;
void reset () ;
pslResult step () ;
pslResult trace () ;
- int compile ( char *fname ) ;
+ int compile ( const char *fname ) ;
int compile ( FILE *fd ) ;
} ;
@@ -203,6 +205,8 @@
class pslExtension
{
+ public:
+
const char *symbol ;
int argc ;
pslValue (*func) ( int, pslValue *, pslProgram *p ) ;
@@ -265,7 +269,7 @@
}
pslValue ret ;
- ret.set ( 123.456 ) ;
+ ret.set ( 123.456f ) ;
return ret ;
}
@@ -300,17 +304,19 @@
class pslValue
{
- pslType getType () ;
+ public:
- int getInt () ;
- float getFloat () ;
- char *getString () ;
+ pslType getType () const ;
- void set () ;
- void set ( int v ) ;
- void set ( float v ) ;
- void set ( char *v ) ;
- void set ( pslNumber *v ) ;
+ int getInt () const ;
+ float getFloat () const ;
+ char *getString () const ;
+
+ void set () ;
+ void set ( int v ) ;
+ void set ( float v ) ;
+ void set ( const char *v ) ;
+ void set ( const pslNumber *v ) ;
} ;
</pre>
|