2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
32 static FUNCTION * func_table = NULL;
33 static int func_size = 0;
34 static int initialized = 0;
35 static int func_params[MAX_PARAMS];
42 void func_init( FUNCTION * funtable, int size )
47 func_table = funtable;
64 int (*func_get( char * name, int * numparams ))(void)
68 for (i=0; i<func_size; i++ )
69 if (!stricmp( name, func_table[i].name ))
71 *numparams = func_table[i].nparams;
72 return func_table[i].cfunction;
78 int func_get_index( char * name )
82 for (i=0; i<func_size; i++ )
83 if (!stricmp( name, func_table[i].name ))
92 int (*func_nget( int func_number, int * numparams, char **name ))(void)
94 if (func_number < func_size )
96 *name = func_table[func_number].name;
97 *numparams = func_table[func_number].nparams;
98 return func_table[func_number].cfunction;
104 void func_set_param( int n, int value )
106 func_params[n] = value;
109 int func_get_param( int n )
111 return func_params[n];