source: git/Singular/libparse.h @ 889f6e

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