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-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
25 static FUNCTION * func_table = NULL;
26 static int func_size = 0;
27 static int initialized = 0;
28 static int func_params[MAX_PARAMS];
35 void func_init( FUNCTION * funtable, int size )
40 func_table = funtable;
57 int (*func_get( char * name, int * numparams ))(void)
61 for (i=0; i<func_size; i++ )
62 if (!strcmpi( name, func_table[i].name ))
64 *numparams = func_table[i].nparams;
65 return func_table[i].cfunction;
71 int func_get_index( char * name )
75 for (i=0; i<func_size; i++ )
76 if (!strcmpi( name, func_table[i].name ))
85 int (*func_nget( int func_number, int * numparams, char **name ))(void)
87 if (func_number < func_size )
89 *name = func_table[func_number].name;
90 *numparams = func_table[func_number].nparams;
91 return func_table[func_number].cfunction;
97 void func_set_param( int n, int value )
99 func_params[n] = value;
102 int func_get_param( int n )
104 return func_params[n];