X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh.h;h=973c6f0d9fb73bd1491025a6d50b2a506a11931e;hp=fdf9e08b064317a2ff784c4c8578295e774a2a40;hb=5f7f81ad35a80e12c6a9a2272e3882387732be4f;hpb=286b0d93528e35957a50c51343e0b4a9bc623bce;ds=sidebyside diff --git a/ginsh/ginsh.h b/ginsh/ginsh.h index fdf9e08b..973c6f0d 100644 --- a/ginsh/ginsh.h +++ b/ginsh/ginsh.h @@ -2,7 +2,7 @@ * * Global definitions for ginsh. * - * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 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 @@ -22,16 +22,13 @@ #ifndef GINSH_H #define GINSH_H -#include -#include -#include - +#include +#include +#include #include #include #include -using namespace std; - #ifdef HAVE_READLINE_READLINE_H extern "C" { #include @@ -50,13 +47,11 @@ extern "C" { #include #endif -using namespace GiNaC; - // yacc stack type -#define YYSTYPE ex +#define YYSTYPE GiNaC::ex // lex functions/variables -extern int yyerror(char *s); +extern int yyerror(const char *s); extern int yylex(void); extern char *yytext; extern FILE *yyin; @@ -66,7 +61,7 @@ extern int num_files; extern char **file_list; // Table of all used symbols -typedef map sym_tab; +typedef std::map sym_tab; extern sym_tab syms; // Type of symbols to generate (real or complex)