jengelh-datetimespielwiese
Last change
on this file since c2da0a was
c2da0a,
checked in by Kai Krüger <krueger@…>, 25 years ago
|
Bug fixes for libparse
git-svn-id: file:///usr/local/Singular/svn/trunk@1398 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | */ |
---|
3 | |
---|
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 | |
---|
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 |
---|
23 | long body_start; // position where proc-body is starting |
---|
24 | long body_end; // position where proc-body is ending |
---|
25 | long example_start; // position where example is starting |
---|
26 | long proc_end; // position where proc is ending |
---|
27 | int proc_lineno; |
---|
28 | int body_lineno; |
---|
29 | int example_lineno; |
---|
30 | char *body; |
---|
31 | }; |
---|
32 | |
---|
33 | struct proc_object |
---|
34 | { |
---|
35 | int (*function)( void ); |
---|
36 | }; |
---|
37 | |
---|
38 | union uprocinfodata; |
---|
39 | |
---|
40 | union uprocinfodata |
---|
41 | { |
---|
42 | public: |
---|
43 | proc_singular s; // data of Singular-procedure |
---|
44 | struct proc_object o; // pointer to binary-function |
---|
45 | }; |
---|
46 | |
---|
47 | typedef union uprocinfodata procinfodata; |
---|
48 | |
---|
49 | typedef enum { LANG_NONE, LANG_SINGULAR, LANG_C } language_defs; |
---|
50 | |
---|
51 | class procinfo |
---|
52 | { |
---|
53 | public: |
---|
54 | char *libname; |
---|
55 | char *procname; |
---|
56 | language_defs language; |
---|
57 | short ref; |
---|
58 | char is_static; // if set, proc not accessible for user |
---|
59 | procinfodata data; |
---|
60 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.