# HG changeset patch # User jwe # Date 949556287 0 # Node ID 0345dd2a826f06e498cfa218b72251b1e3f22ea9 # Parent e3e8cfe73935ddf5b9f6c5d179e2522b38818f4c [project @ 2000-02-03 05:38:06 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-02-02 John W. Eaton + * lex.l (plot_axes_token): Declare plot_axes as const char *. + Declare tmp const char **. + * oct-procbuf.h: Include fstream, not streambuf.h. * load-save.cc (Fsave): Call pubseekoff instead of seekoff. diff --git a/src/lex.l b/src/lex.l --- a/src/lex.l +++ b/src/lex.l @@ -901,7 +901,7 @@ { std::string retval; - static char *plot_axes[] = + static const char *plot_axes[] = { "x1y1", "x1y2", @@ -910,7 +910,7 @@ 0, }; - char **tmp = plot_axes; + const char **tmp = plot_axes; while (*tmp) { if (almost_match (*tmp, s.c_str ()))