Skip to content

Commit

Permalink
libcob/fileio.c - adjustments for SORT file, improving its error-hand…
Browse files Browse the repository at this point in the history
…ling

* minor refactoring for SORT related functions, mostly reducing scope of variables
* (cob_file_sort_using): early exit for errors during OPEN
* (cob_file_sort_giving):
  * one-time setting of WRITE options after OPEN instead of doing it before every WRITE
  * don't try to WRITE to or CLOSE files where OPEN OUTPUT was not successful
  * skip GIVING file on WRITE errors, early exit if no GIVING file left
  • Loading branch information
sf-mensch committed Jun 1, 2023
1 parent 2af7cc6 commit 1da2a91
Show file tree
Hide file tree
Showing 2 changed files with 202 additions and 148 deletions.
12 changes: 12 additions & 0 deletions libcob/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@

2023-06-01 Simon Sobisch <[email protected]>

* fileio.c: minor refactoring for SORT related functions,
mostly reducing scope of variables
* fileio.c (cob_file_sort_using): early exit for errors during OPEN
* fileio.c (cob_file_sort_giving): one-time setting of WRITE options
after OPEN instead of doing it before every WRITE
* fileio.c (cob_file_sort_giving): don't try to WRITE to or CLOSE files
where OPEN OUTPUT was not successful
* fileio.c (cob_file_sort_giving): skip GIVING file on WRITE errors,
early exit if no GIVING file left

2023-05-30 Simon Sobisch <[email protected]>

* numeric.c (check_overflow_and_set_sign): disable "cleanup" of
Expand Down
Loading

0 comments on commit 1da2a91

Please sign in to comment.