source: git/Singular/libparse.h @ 6cf5e6

spielwiese
Last change on this file since 6cf5e6 was f51b9c, checked in by Hans Schönemann <hannes@…>, 20 years ago
* hannes: make install git-svn-id: file:///usr/local/Singular/svn/trunk@6969 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[d636ad]1#ifndef LIBPARSE_H
2#define LIBPARSE_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
[f51b9c]6/* $Id: libparse.h,v 1.15 2003-12-16 11:25:34 Singular Exp $ */
[d636ad]7/*
8* ABSTRACT: lib parsing
9*/
[c2da0a]10#ifndef STANDALONE_PARSER
[f51b9c]11#  include "structs.h"
[c2da0a]12#  include "subexpr.h"
13#endif
[5480da]14typedef enum { LOAD_LIB, GET_INFO } lp_modes;
15typedef enum { OLD_LIBSTYLE, NEW_LIBSTYLE } lib_style_types;
16
[d636ad]17procinfo *iiInitSingularProcinfo(procinfov pi, char *libname,
18                                 char *procname, int line, long pos,
[a3bc95e]19                                 BOOLEAN pstatic = FALSE);
20#ifdef HAVE_NS
[e9ad8a6]21int yylplex(char *libname, char *libfile, lib_style_types *lib_style,
[a3bc95e]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 */
[46d09b]27
[5480da]28void reinit_yylp();
29
30extern char * text_buffer;
31
[60a3add]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
[a70441f]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
[60a3add]54#  endif
[c1e2b1]55
[e9ad8a6]56#endif /* LIBPARSE_H */
[d636ad]57
58
Note: See TracBrowser for help on using the repository browser.