X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginsh%2Fginsh_lexer.lpp;h=000b1333addaa1bda1b725ac253c5fa9aa0bc2d2;hb=296449c83aaa283a797278a2fc357c86e04d0314;hp=ec5bc0e9f3fb33b6a16810cd4dba92db0a85cbc6;hpb=8bd8cedd086aeaf08630d5357af37151e1d06d06;p=ginac.git diff --git a/ginsh/ginsh_lexer.lpp b/ginsh/ginsh_lexer.lpp index ec5bc0e9..000b1333 100644 --- a/ginsh/ginsh_lexer.lpp +++ b/ginsh/ginsh_lexer.lpp @@ -4,7 +4,7 @@ * This file must be processed with flex. */ /* - * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2016 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 @@ -26,6 +26,8 @@ * Definitions */ +%option nounput + %pointer %{ @@ -142,7 +144,7 @@ real_symbols return T_REAL_SYMBOLS; */ static int line_length = 0; -static char *line_read = NULL; +static char *line_read = nullptr; static char *line_ptr; // Input function that uses libreadline for interactive input @@ -206,7 +208,7 @@ static int ginsh_input(char *buf, int max_size) // List of input files to be processed int num_files = 0; -char **file_list = NULL; +char **file_list = nullptr; // EOF encountered, connect to next file. If this was the last file, // connect to stdin. If this was stdin, terminate the scanner. @@ -218,7 +220,7 @@ int yywrap() fclose(yyin); if (num_files) { yyin = fopen(*file_list, "r"); - if (yyin == NULL) { + if (yyin == nullptr) { cerr << "Can't open " << *file_list << endl; return 1; }