Skip to content

Commit

Permalink
Merge SVN 3801
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed May 27, 2024
1 parent 0ce85a5 commit 26d1b49
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cobc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,10 @@

* scanner.l (read_literal): catch and error missing termination of literal

2020-09-02 James K. Lowden <[email protected]>

* cobc.c, error.c: prevent messages from overflowing message buffer

2020-09-01 Simon Sobisch <[email protected]>

* codegen.c (codegen_init): fixed broken codegen for multi-source compiles
Expand Down
2 changes: 1 addition & 1 deletion cobc/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ print_error (const char *file, int line, const char *prefix,
last_paragraph = current_paragraph;
}

/* Print the error */
/* Print the error TODO: use cobc_err_msg*/
print_error_prefix (file, line, prefix);
if (!cb_src_list_file) {
/* note: better would be one print path, but this would
Expand Down
4 changes: 4 additions & 0 deletions tests/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@
now also unsets cobc related environment variables:
use $() instead of backticks in all places

2020-09-02 James K. Lowden <[email protected]>

* testsuite.src/syn_misc.at: attempted fix #336, still slightly borked

2020-07-19 Edward Hart <[email protected]>

* atlocal.in, atlocal_valgrind, atlocal_win: replaced COB_HAS_CJSON with
Expand Down
4 changes: 2 additions & 2 deletions tests/testsuite.src/syn_misc.at
Original file line number Diff line number Diff line change
Expand Up @@ -7633,7 +7633,7 @@ prog.cob:42: warning: OPEN LEAVE/REREAD/DISP is obsolete in GnuCOBOL
AT_CLEANUP


AT_SETUP([very long literal in error message])
AT_SETUP([very long literal in error message, max 1024])
AT_KEYWORDS([misc literals])

AT_DATA([prog.cob], [
Expand Down Expand Up @@ -7663,7 +7663,7 @@ AT_CHECK([$COMPILE_ONLY prog.cob], [1], [],
])

AT_CLEANUP

#' <-- fix syntax highlighting

AT_SETUP([literal missing terminating character])
AT_KEYWORDS([misc literals terminator])
Expand Down

0 comments on commit 26d1b49

Please sign in to comment.