aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
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 /main.c
parentb4dc5fb3dc57f7fc7eaba39c5814b8bae9403b77 (diff)
downloadegawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.gz
egawk-d562eb482f3180dcd59a332edc91027ea3844d90.tar.bz2
egawk-d562eb482f3180dcd59a332edc91027ea3844d90.zip
Improve use of types throughout.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 7c35139c..3fd091e9 100644
--- a/main.c
+++ b/main.c
@@ -96,7 +96,7 @@ char *TEXTDOMAIN;
* set_CONVFMT -> fmt_index -> force_string: gets NULL CONVFMT
* Fun, fun, fun, fun.
*/
-char *CONVFMT = "%.6g";
+const char *CONVFMT = "%.6g";
NODE *Nnull_string; /* The global null string */
@@ -145,14 +145,14 @@ static void parse_args(int argc, char **argv);
static void set_locale_stuff(void);
static bool stopped_early = false;
-enum do_flag_values do_flags = 0;
+enum do_flag_values do_flags = DO_FLAG_NONE;
bool do_itrace = false; /* provide simple instruction trace */
bool do_optimize = true; /* apply default optimizations */
static int do_nostalgia = false; /* provide a blast from the past */
static int do_binary = false; /* hands off my data! */
static int do_version = false; /* print version info */
static const char *locale = ""; /* default value to setlocale */
-static char *locale_dir = LOCALEDIR; /* default locale dir */
+static const char *locale_dir = LOCALEDIR; /* default locale dir */
int use_lc_numeric = false; /* obey locale for decimal point */