source: git/Singular/libparse.h @ a9cdc2

spielwiese
Last change on this file since a9cdc2 was 73a0cd, checked in by Hans Schönemann <hannes@…>, 16 years ago
*hannes: use common include files git-svn-id: file:///usr/local/Singular/svn/trunk@10646 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#ifndef LIBPARSE_H
2#define LIBPARSE_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: libparse.h,v 1.18 2008-03-25 15:04:42 Singular Exp $ */
7/*
8* ABSTRACT: lib parsing
9*/
10#  include "structs.h"
11#  include "subexpr.h"
12typedef enum { LOAD_LIB, GET_INFO } lp_modes;
13typedef enum { OLD_LIBSTYLE, NEW_LIBSTYLE } lib_style_types;
14
15procinfo *iiInitSingularProcinfo(procinfov pi, const char *libname,
16              const char *procname, int line, long pos, BOOLEAN pstatic=FALSE);
17
18#ifdef HAVE_NS
19int yylplex(char *libname, char *libfile, lib_style_types *lib_style,
20           idhdl pl, BOOLEAN autoexport=FALSE, lp_modes=LOAD_LIB);
21#else
22int yylplex(char *libname, char *libfile, lib_style_types *lib_style,
23            lp_modes=LOAD_LIB);
24#endif /* HAVE_NS */
25
26void reinit_yylp();
27
28extern char * text_buffer;
29
30#  define YYLP_ERR_NONE    0
31#  define YYLP_DEF_BR2     1
32#  define YYLP_BODY_BR2    2
33#  define YYLP_BODY_BR3    3
34#  define YYLP_BODY_TMBR2  4
35#  define YYLP_BODY_TMBR3  5
36#  define YYLP_EX_BR2      6
37#  define YYLP_EX_BR3      7
38#  define YYLP_BAD_CHAR    8
39#  define YYLP_MISSQUOT    9
40#  define YYLP_MISS_BR1   10
41#  define YYLP_MISS_BR2   11
42#  define YYLP_MISS_BR3   12
43
44#  ifdef STANDALONE_PARSER
45#ifndef unix
46extern FILE* myfopen(char *path, char *mode);
47extern size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream);
48#else
49#define myfopen fopen
50#define myfread fread
51#endif
52#  endif
53
54#endif /* LIBPARSE_H */
55
56
Note: See TracBrowser for help on using the repository browser.