X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginsh%2Fginsh_lexer.ll;h=a2ab36bdfe7aa19662731447e43f77d4bfc238e9;hb=e08cda1854bdb82f6706ec269233577690ae00e4;hp=817df6ec1d505cb39266c16a70dd9765468380dd;hpb=67467d256b44f5e08498ca81c946d9ffaa25d1e2;p=ginac.git diff --git a/ginsh/ginsh_lexer.ll b/ginsh/ginsh_lexer.ll index 817df6ec..a2ab36bd 100644 --- a/ginsh/ginsh_lexer.ll +++ b/ginsh/ginsh_lexer.ll @@ -4,7 +4,7 @@ * This file must be processed with flex. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2010 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 @@ -113,9 +113,13 @@ real_symbols return T_REAL_SYMBOLS; sym_tab::const_iterator i = syms.find(yytext); if (i == syms.end()) { if (symboltype == domain::complex) { - yylval = syms[yytext] = *(new symbol(yytext)); + symbol tmp(yytext); + syms[yytext] = tmp; + yylval = tmp; } else { - yylval = syms[yytext] = *(new symbol(yytext, domain::real)); + realsymbol tmp(yytext); + syms[yytext] = tmp; + yylval = tmp; } } else yylval = i->second;