X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginsh%2Fginsh.h;h=973c6f0d9fb73bd1491025a6d50b2a506a11931e;hb=5f7f81ad35a80e12c6a9a2272e3882387732be4f;hp=15a106aa85b3d8ec38cf8b2bf3235107d31199bc;hpb=cca88b51436e4b654d16a4d60cd0d1c66fcf5dd6;p=ginac.git diff --git a/ginsh/ginsh.h b/ginsh/ginsh.h index 15a106aa..973c6f0d 100644 --- a/ginsh/ginsh.h +++ b/ginsh/ginsh.h @@ -2,7 +2,7 @@ * * Global definitions for ginsh. * - * GiNaC Copyright (C) 1999-2014 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,10 +47,8 @@ extern "C" { #include #endif -using namespace GiNaC; - // yacc stack type -#define YYSTYPE ex +#define YYSTYPE GiNaC::ex // lex functions/variables extern int yyerror(const char *s); @@ -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)