Next: Files in the extend
Up: Programmer's manual
Previous: Data structures, control flags
Subsections
- 1.
- Define the name of the new variable in
extend.h:
For example #define REFINETOL_VARNAME "refinetol"
- 2.
- Define its default value:
#define DEFAULT_REFINETOL 0.5
- 3.
- Declare it as an extern variable:
extern double RefineTol;
- 4.
- ``Create'' it with
CreatexxxVariable
in extend.c:InitExtension, where (xxx) is the desired type.
There are macros for several types defined in misc/shell.h.
- 1.
- Define the name of the new command in
extend.h:
For example #define TEST_CMDNAME "test".
- 2.
- Implement its function in
extend.c:
BOOL TestCommand (int argc, char **argv);
- 3.
- ``Create'' it with
CreateCommand(TEST_CMDNAME,TestCommand,NULL);
Werner Scholz
10/30/1998