source: git/Singular/libparse.h @ d3e630

spielwiese
Last change on this file since d3e630 was d3e630, checked in by Hans Schönemann <hannes@…>, 15 years ago
*hannes: code cleanup (see ChangeLog) git-svn-id: file:///usr/local/Singular/svn/trunk@12029 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#ifndef LIBPARSE_H
2#define LIBPARSE_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/* $Id: libparse.h,v 1.19 2009-07-28 14:18:35 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
18int yylplex(char *libname, char *libfile, lib_style_types *lib_style,
19           idhdl pl, BOOLEAN autoexport=FALSE, lp_modes=LOAD_LIB);
20
21void reinit_yylp();
22
23extern char * text_buffer;
24
25#  define YYLP_ERR_NONE    0
26#  define YYLP_DEF_BR2     1
27#  define YYLP_BODY_BR2    2
28#  define YYLP_BODY_BR3    3
29#  define YYLP_BODY_TMBR2  4
30#  define YYLP_BODY_TMBR3  5
31#  define YYLP_EX_BR2      6
32#  define YYLP_EX_BR3      7
33#  define YYLP_BAD_CHAR    8
34#  define YYLP_MISSQUOT    9
35#  define YYLP_MISS_BR1   10
36#  define YYLP_MISS_BR2   11
37#  define YYLP_MISS_BR3   12
38
39#  ifdef STANDALONE_PARSER
40#ifndef unix
41extern FILE* myfopen(char *path, char *mode);
42extern size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream);
43#else
44#define myfopen fopen
45#define myfread fread
46#endif
47#  endif
48
49#endif /* LIBPARSE_H */
50
51
Note: See TracBrowser for help on using the repository browser.