X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh.h;h=0f8bb4889538ccd47181b6dc44bce6a2a6b4a222;hp=ffaf4e0da1b6d87f62415ec186f528ba461dbced;hb=052d2da5b41ac82855d3578050125aa21caf1003;hpb=9985e28882888663fd8e43e8c59728ddcad552d0 diff --git a/ginsh/ginsh.h b/ginsh/ginsh.h index ffaf4e0d..0f8bb488 100644 --- a/ginsh/ginsh.h +++ b/ginsh/ginsh.h @@ -2,7 +2,7 @@ * * Global definitions for ginsh. * - * GiNaC Copyright (C) 1999-2020 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2022 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 @@ -29,8 +29,6 @@ #include #include -using namespace std; - #ifdef HAVE_READLINE_READLINE_H extern "C" { #include @@ -49,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); @@ -65,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)