summaryrefslogtreecommitdiff
path: root/cmd.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-01-08 11:05:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2021-01-08 11:05:32 +0200
commitd562eb482f3180dcd59a332edc91027ea3844d90 (patch)
treed90bb37b1c75a6429d961031b6a3ae08559408c0 /cmd.h
parentb4dc5fb3dc57f7fc7eaba39c5814b8bae9403b77 (diff)
downloadgawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.gz
Improve use of types throughout.
Diffstat (limited to 'cmd.h')
-rw-r--r--cmd.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd.h b/cmd.h
index 375ea08b..df6035fc 100644
--- a/cmd.h
+++ b/cmd.h
@@ -43,10 +43,10 @@ extern bool output_is_tty;
extern int input_fd;
extern bool input_from_tty;
extern FILE *out_fp;
-extern char *dbg_prompt;
-extern char *commands_prompt;
-extern char *eval_prompt;
-extern char *dgawk_prompt;
+extern const char *dbg_prompt;
+extern const char *commands_prompt;
+extern const char *eval_prompt;
+extern const char *dgawk_prompt;
enum argtype {
D_illegal,
@@ -148,9 +148,9 @@ typedef int (*Func_cmd)(CMDARG *, int);
struct cmdtoken {
const char *name;
- char *abbrvn; /* abbreviation */
+ const char *abbrvn; /* abbreviation */
enum argtype type;
- int class;
+ int lex_class;
Func_cmd cf_ptr;
const char *help_txt;
};