source: git/Singular/utils.h @ 5480da

fieker-DuValspielwiese
Last change on this file since 5480da was 33d539, checked in by Kai Krüger <krueger@…>, 26 years ago
scanner for a quick check of singular-libraries. git-svn-id: file:///usr/local/Singular/svn/trunk@1194 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 */
3
4class procinfo;
5typedef procinfo *         procinfov;
6
7class proc_singular
8{
9public:
10  long   proc_start;       // position where proc is starting
11  long   def_end;          // position where proc header is ending
12  long   help_start;       // position where help is starting
13  long   body_start;       // position where proc-body is starting
14  long   body_end;         // position where proc-body is ending
15  long   example_start;    // position where example is starting
16  long   proc_end;         // position where proc is ending
17  int    proc_lineno;
18  int    body_lineno;
19  int    example_lineno;
20  char   *body;
21};
22
23struct proc_object
24{
25  int (*function)( void );
26};
27
28union uprocinfodata;
29
30union uprocinfodata
31{
32public:
33  proc_singular  s;        // data of Singular-procedure
34  struct proc_object    o; // pointer to binary-function
35};
36
37typedef union uprocinfodata procinfodata;
38
39typedef enum { LANG_NONE, LANG_SINGULAR, LANG_C } language_defs;
40
41class procinfo
42{
43public:
44  char          *libname;
45  char          *procname;
46  language_defs language;
47  short         ref;
48  char          is_static;        // if set, proc not accessible for user
49  procinfodata  data;
50};
Note: See TracBrowser for help on using the repository browser.