From help-request at octave dot org Fri Feb 18 08:38:28 2005 Subject: Re: Removing an old version From: "John W. Eaton" To: David dot Bateman at motorola dot com Cc: "John W. Eaton" , Diego Ruiz , help@octave.org Date: Fri, 18 Feb 2005 09:43:31 -0500 On 18-Feb-2005, David Bateman wrote: | Ok looking at this a bit further, I see that the gplot.cc file is not | being built correctly from the gplot.l lex file. | So basically, a broken version of gplot.cc is created in the built, and | at the next make gplot.cc is considered to be upto date, and so none of | the functions in gplot.l are ever built. When I try and buid gplot.cc I get | | %make gplot.cc | making defaults.h from defaults.h.in | defaults.h is unchanged | making oct-conf.h from oct-conf.h.in | oct-conf.h is unchanged | flex -t -I DLD-FUNCTIONS/gplot.l > gplot.cc | "DLD-FUNCTIONS/gplot.l", line 217: unrecognized rule | make: *** [gplot.cc] Error 1 | %flex --version | flex version 2.5.4 | | where line 217 is | | 217: {UNOP} { | 218: gpt_quote_is_transpose = false; | 219: gpt_allow_plotkw = true; | 220: return UNOP; | 221: } | | however UNOP appears to be defined on line 111 just above. I don't know | enough about flex to debug this one... It works with the version of flex that I have (2.5.31), but here is a simple fix that will allow older versions of flex to compile the file. This change is already in the main and ss-2-1-63-patched branches. jwe *** gplot.l.~1.2.~ 2004-12-27 20:59:05.000000000 -0500 --- gplot.l 2005-02-18 09:39:53.000000000 -0500 *************** *** 108,114 **** NOT ((\~)|(\!)) /* NOT is not strictly a binary operator, but is close enough for us. */ BINOP (({NOT})|(\.?([\*/\\^+-]|\*\*)=?)|([<=~!>&|]=)|([=&|<>]{1,2})|(<<=)|(>>=)|(\.)) ! UNOP ((\+\+)|(\-\-)|(\.')) /* ' */ %% --- 108,115 ---- NOT ((\~)|(\!)) /* NOT is not strictly a binary operator, but is close enough for us. */ BINOP (({NOT})|(\.?([\*/\\^+-]|\*\*)=?)|([<=~!>&|]=)|([=&|<>]{1,2})|(<<=)|(>>=)|(\.)) ! /* single quote (') transpose operator is handled separately. */ ! UNOP ((\+\+)|(\-\-)|(\.')) %% ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------