source: git/Singular/utils.h @ 7cdf528

spielwiese
Last change on this file since 7cdf528 was 6be769, checked in by Kai Krüger <krueger@…>, 25 years ago
Changes for help-section of procedures git-svn-id: file:///usr/local/Singular/svn/trunk@1672 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 */
3
4typedef short BOOLEAN;
5
6#ifndef FALSE
7#define FALSE       0
8#endif
9
10#ifndef TRUE
11#define TRUE        1
12#endif
13
14class procinfo;
15typedef procinfo *         procinfov;
16
17class proc_singular
18{
19public:
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   help_end;         // position where help is starting
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;
32};
33
34struct proc_object
35{
36  int (*function)( void );
37};
38
39union uprocinfodata;
40
41union uprocinfodata
42{
43public:
44  proc_singular  s;        // data of Singular-procedure
45  struct proc_object    o; // pointer to binary-function
46};
47
48typedef union uprocinfodata procinfodata;
49
50typedef enum { LANG_NONE, LANG_SINGULAR, LANG_C } language_defs;
51
52class procinfo
53{
54public:
55  char          *libname;
56  char          *procname;
57  language_defs language;
58  short         ref;
59  char          is_static;        // if set, proc not accessible for user
60  procinfodata  data;
61};
Note: See TracBrowser for help on using the repository browser.