source: git/Singular/libparse.h @ 28e0ac8

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