annotate make-log @ 12:894be158b32d

define parser as a class and eliminate some global variables
author John W. Eaton <jwe@octave.org>
date Thu, 23 May 2019 17:57:20 -0400
parents 0e154787183d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
0e154787183d new interpreter and qt_interpreter objects
John W. Eaton <jwe@octave.org>
parents: 0
diff changeset
1 bison -o parser.cpp parser.yy
12
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
2 g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o parser.o parser.cpp
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
3 parser.yy:22:15: warning: void calc::yyerror(calc::parser&, const char*) declared static but never defined [-Wunused-function]
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
4 static void yyerror (calc::parser&, char const *);
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
5 ^~~~~~~
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
6 parser.yy:22:15: warning: void calc::yyerror(calc::parser&, const char*) used but never defined
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
7 parser.yy:195:13: warning: void yyerror(calc::parser&, const char*) defined but not used [-Wunused-function]
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
8 static void yyerror (calc::parser& parser, char const *msg)
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
9 ^~~~~~~
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
10 g++ -c -pipe -g -Wall -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o tty-main.o tty-main.cpp
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
11 tty-main.cpp: In function int calc::tty_main(int, char**):
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
12 tty-main.cpp:29:61: error: cannot resolve overloaded function beg_of_stmt based on conversion to type bool
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
13 char *tmp = readline (parser::beg_of_stmt ? ">> " : "");
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
14 ^~
894be158b32d define parser as a class and eliminate some global variables
John W. Eaton <jwe@octave.org>
parents: 4
diff changeset
15 make: *** [calc.mk:454: tty-main.o] Error 1