Mercurial > octave-nkf
diff src/lex.l @ 2804:eedc2f3f61f7
[project @ 1997-03-11 04:34:50 by jwe]
author | jwe |
---|---|
date | Tue, 11 Mar 1997 04:48:53 +0000 |
parents | 2c0f259cf83d |
children | ae3cce876a8e |
line wrap: on
line diff
--- a/src/lex.l Tue Mar 11 03:05:41 1997 +0000 +++ b/src/lex.l Tue Mar 11 04:48:53 1997 +0000 @@ -174,7 +174,7 @@ static string plot_style_token (const string& s); static symbol_record *lookup_identifier (const string& s); static void grab_help_text (void); -static int match_any (char c, char *s); +static int match_any (char c, const char *s); static int next_token_is_bin_op (int spc_prev, char *yytext); static int next_token_is_postfix_unary_op (int spc_prev, char *yytext); static string strip_trailing_whitespace (char *s); @@ -855,7 +855,7 @@ { string retval; - static char *plot_styles[] = + static const char *plot_styles[] = { "boxes", "boxerrorbars", @@ -878,7 +878,7 @@ 0, }; - char **tmp = plot_styles; + const char * const *tmp = plot_styles; while (*tmp) { if (almost_match (*tmp, s.c_str ())) @@ -1160,7 +1160,7 @@ // string. static int -match_any (char c, char *s) +match_any (char c, const char *s) { char tmp; while ((tmp = *s++) != '\0')