/* Table of keywords. */
-const char *keywords[T_N_KEYWORDS + 1] =
+const char *const keywords[T_N_KEYWORDS + 1] =
{
"AND", "OR", "NOT",
"EQ", "GE", "GT", "LE", "LT", "NE",
int
lex_id_to_token (const char *id, size_t len)
{
- const char **kwp;
+ const char *const *kwp;
if (len < 2 || len > 4)
return T_ID;
bool lex_id_match (const char *keyword_string, const char *token_string);
int lex_id_to_token (const char *id, size_t len);
-extern const char *keywords[T_N_KEYWORDS + 1] ;
+extern const char *const keywords[T_N_KEYWORDS + 1] ;
#endif /* !lex_def_h */
void (*function) (void);
};
-struct show_sbc show_table[] =
+const struct show_sbc show_table[] =
{
{"BLANKS", show_blanks},
{"CCA", show_cca},
};
-const char *ptile_alg_desc[] = {
+const char *const ptile_alg_desc[] = {
"",
N_("HAverage"),
N_("Weighted Average"),
-extern const char *ptile_alg_desc[];
+extern const char *const ptile_alg_desc[];
#include <output/output.h>
-const char *data_colour[] = {
+const char *const data_colour[] = {
"brown",
"red",
"orange",
#define PLOT_CHART_H
-extern const char *data_colour[];
+extern const char *const data_colour[];
enum tick_orientation {
TICK_ABSCISSA=0,