]> www.ginac.de Git - ginac.git/blob - ginsh/ginsh.h
335e0f1af91613ecb60102879b584d6c284637a8
[ginac.git] / ginsh / ginsh.h
1 /*
2  *  ginsh.h - GiNaC Interactive Shell, global definitions
3  */
4
5 #ifndef GINSH_H
6 #define GINSH_H
7
8 // yacc semantic type
9 #define YYSTYPE ex
10
11 // lex functions/variables
12 extern int yyerror(char *s);
13 extern int yylex(void);
14 #if YYTEXT_POINTER
15 extern char *yytext;
16 #else
17 extern char yytext[];
18 #endif
19
20 // Table of all used symbols
21 typedef map<string, symbol> sym_tab;
22 extern sym_tab syms;
23
24 // Prototypes for missing functions
25 #ifndef HAVE_STRDUP
26 extern char *strdup(const char *s);
27 #endif
28
29 #endif