X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh.h;h=8e3209dfa41b9111bf32996705af282e20b8e6fe;hp=c225fb09433503eb6598d9a8d40c7459d6ea823b;hb=695f6ae955ec530cded8f21efd5569df39447f76;hpb=2c4c27eff885eaf0aec4ff0bc0de40c0531f3c55 diff --git a/ginsh/ginsh.h b/ginsh/ginsh.h index c225fb09..8e3209df 100644 --- a/ginsh/ginsh.h +++ b/ginsh/ginsh.h @@ -2,7 +2,7 @@ * * Global definitions for ginsh. * - * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,8 +27,11 @@ #include #include +#include #include +using namespace std; + #ifdef HAVE_READLINE_READLINE_H extern "C" { #include @@ -41,7 +44,12 @@ extern "C" { } #endif +#ifdef IN_GINAC +#include "ginac.h" +#else #include +#endif + using namespace GiNaC; // yacc stack type @@ -50,11 +58,7 @@ using namespace GiNaC; // lex functions/variables extern int yyerror(char *s); extern int yylex(void); -#if YYTEXT_POINTER extern char *yytext; -#else -extern char yytext[]; -#endif extern FILE *yyin; // List of input files to be processed @@ -65,4 +69,7 @@ extern char **file_list; typedef map sym_tab; extern sym_tab syms; +// Type of symbols to generate (real or complex) +extern unsigned symboltype; + #endif