fieker-DuValspielwiese
Last change
on this file since 634dab0 was
f51b9c,
checked in by Hans Schönemann <hannes@…>, 20 years ago
|
* hannes: make install
git-svn-id: file:///usr/local/Singular/svn/trunk@6969 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[33d539] | 1 | /* |
---|
| 2 | */ |
---|
| 3 | |
---|
[c2da0a] | 4 | typedef short BOOLEAN; |
---|
| 5 | |
---|
| 6 | #ifndef FALSE |
---|
| 7 | #define FALSE 0 |
---|
| 8 | #endif |
---|
| 9 | |
---|
| 10 | #ifndef TRUE |
---|
| 11 | #define TRUE 1 |
---|
| 12 | #endif |
---|
| 13 | |
---|
[33d539] | 14 | class procinfo; |
---|
| 15 | typedef procinfo * procinfov; |
---|
| 16 | |
---|
| 17 | class proc_singular |
---|
| 18 | { |
---|
| 19 | public: |
---|
| 20 | long proc_start; // position where proc is starting |
---|
| 21 | long def_end; // position where proc header is ending |
---|
| 22 | long help_start; // position where help is starting |
---|
[6be769] | 23 | long help_end; // position where help is starting |
---|
[33d539] | 24 | long body_start; // position where proc-body is starting |
---|
| 25 | long body_end; // position where proc-body is ending |
---|
| 26 | long example_start; // position where example is starting |
---|
| 27 | long proc_end; // position where proc is ending |
---|
| 28 | int proc_lineno; |
---|
| 29 | int body_lineno; |
---|
| 30 | int example_lineno; |
---|
| 31 | char *body; |
---|
[9c35ef] | 32 | long help_chksum; |
---|
[33d539] | 33 | }; |
---|
| 34 | |
---|
| 35 | struct proc_object |
---|
| 36 | { |
---|
| 37 | int (*function)( void ); |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | union uprocinfodata; |
---|
| 41 | |
---|
| 42 | union uprocinfodata |
---|
| 43 | { |
---|
| 44 | public: |
---|
| 45 | proc_singular s; // data of Singular-procedure |
---|
| 46 | struct proc_object o; // pointer to binary-function |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | typedef union uprocinfodata procinfodata; |
---|
| 50 | |
---|
[2c89d2] | 51 | typedef enum { LANG_NONE, LANG_SINGULAR, LANG_C, LANG_MAX } language_defs; |
---|
[33d539] | 52 | |
---|
| 53 | class procinfo |
---|
| 54 | { |
---|
| 55 | public: |
---|
| 56 | char *libname; |
---|
| 57 | char *procname; |
---|
| 58 | language_defs language; |
---|
| 59 | short ref; |
---|
| 60 | char is_static; // if set, proc not accessible for user |
---|
| 61 | procinfodata data; |
---|
| 62 | }; |
---|
[f51b9c] | 63 | |
---|
| 64 | |
---|
| 65 | typedef void * idhdl; |
---|
| 66 | |
---|
Note: See
TracBrowser
for help on using the repository browser.