diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-07-07 15:44:18 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-07-07 15:44:18 +0300 |
commit | c8b9f5d5ac4e23a394dc79eccbfb824ddee531ef (patch) | |
tree | dc85e300e41293dfe01017e1cabce085da31f4fb | |
parent | 8e8326d91e40166e25921b323ad468399c11d60d (diff) | |
parent | 4cd70811e7e335fe568f62c564ac2bef0515694f (diff) | |
download | egawk-c8b9f5d5ac4e23a394dc79eccbfb824ddee531ef.tar.gz egawk-c8b9f5d5ac4e23a394dc79eccbfb824ddee531ef.tar.bz2 egawk-c8b9f5d5ac4e23a394dc79eccbfb824ddee531ef.zip |
Merge branch 'gawk-4.1-stable'
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | awk.h | 2 | ||||
-rw-r--r-- | builtin.c | 4 | ||||
-rw-r--r-- | cmd.h | 2 | ||||
-rw-r--r-- | debug.c | 12 | ||||
-rw-r--r-- | msg.c | 2 |
6 files changed, 24 insertions, 11 deletions
@@ -1,5 +1,18 @@ 2017-07-07 Arnold D. Robbins <arnold@skeeve.com> + Remove warnings from GCC 7.1 compilation. + + * awk.h (fatal_tag_valid): Change type to int. + * awkgram.y (yylex): Set did_newline to true instead of using ++. + * builtin.c (format_tree): Set lj to true instead of using ++. + * cmd.h (pager_quit_tag_valid): Change type to int. + * debug.c (pager_quit_tag_valid): Change type to int. + (do_clear): Make bp_found an int, change uses. + (do_run): Treat fatal_tag_valid as an int. + * msg.c (fatal_tag_valid): Change type to int. + +2017-07-07 Arnold D. Robbins <arnold@skeeve.com> + * gawapi.h: Bring descriptive comments up to date, minor edits. * io.c: Add some initial comments to functions where they were missing. @@ -1340,7 +1340,7 @@ DEREF(NODE *r) #define fatal (*(set_loc(__FILE__, __LINE__), r_fatal)) extern jmp_buf fatal_tag; -extern bool fatal_tag_valid; +extern int fatal_tag_valid; #define PUSH_BINDING(stack, tag, val) \ if (val++) \ @@ -965,7 +965,7 @@ check_pos: *cur = get_number_si(arg); if (*cur < 0 && cur == &fw) { *cur = -*cur; - lj++; + lj = true; } if (cur == &prec) { if (*cur >= 0) @@ -992,7 +992,7 @@ check_pos: goto retry; } fill = sp; /* if left justified then other */ - lj++; /* filling is ignored */ + lj = true; /* filling is ignored */ goto check_pos; case '.': if (cur != &fw) @@ -36,7 +36,7 @@ extern NODE *get_function(void); extern int gprintf(FILE *fp, const char *format, ...); extern jmp_buf pager_quit_tag; -extern bool pager_quit_tag_valid; +extern int pager_quit_tag_valid; extern bool output_is_tty; extern int input_fd; @@ -270,7 +270,7 @@ static void save_options(const char *file); /* pager */ jmp_buf pager_quit_tag; -bool pager_quit_tag_valid = false; +int pager_quit_tag_valid = 0; static int screen_width = INT_MAX; /* no of columns */ static int screen_height = INT_MAX; /* no of rows */ static int pager_lines_printed = 0; /* no of lines printed so far */ @@ -2459,7 +2459,7 @@ do_clear(CMDARG *arg, int cmd ATTRIBUTE_UNUSED) NODE *func; SRCFILE *s = cur_srcfile; char *src = cur_srcfile->src; - bool bp_found = false; + int bp_found = 0; if (arg == NULL) { /* clear */ CHECK_PROG_RUNNING(); @@ -2511,7 +2511,7 @@ func: fprintf(out_fp, ", %d", b->number); delete_breakpoint(b); } - if (! bp_found) + if (bp_found == 0) fprintf(out_fp, _("No breakpoint(s) at entry to function `%s'\n"), func->vname); else @@ -2538,7 +2538,7 @@ delete_bp: } } - if (! bp_found) + if (bp_found == 0) fprintf(out_fp, _("No breakpoint at file `%s', line #%d\n"), src, (int) lineno); else @@ -2955,11 +2955,11 @@ do_run(CMDARG *arg ATTRIBUTE_UNUSED, int cmd ATTRIBUTE_UNUSED) fprintf(out_fp, _("Starting program: \n")); prog_running = true; - fatal_tag_valid = true; + fatal_tag_valid = 1; if (setjmp(fatal_tag) == 0) (void) interpret(code_block); - fatal_tag_valid = false; + fatal_tag_valid = 0; prog_running = false; fprintf(out_fp, (! exiting && exit_val != EXIT_SUCCESS) ? _("Program exited abnormally with exit value: %d\n") @@ -33,7 +33,7 @@ static const char *srcfile = NULL; static int srcline; jmp_buf fatal_tag; -bool fatal_tag_valid = false; +int fatal_tag_valid = 0; /* err --- print an error message with source line and file and record */ |