Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upsteam update #187

Merged
merged 10 commits into from
Oct 11, 2024
Merged

Upsteam update #187

merged 10 commits into from
Oct 11, 2024

Conversation

GitMensch
Copy link
Collaborator

Checking CI

sf-mensch added 10 commits October 2, 2024 22:26
tests:
atlocal.in, atlocal_win: allow overriding COB_CC during tests
cobc:
* pplex.l (output_line_directive): extracted from other places and extended to output compile from stdin as <stdin>
* codegen.c (output_cobol_info): output compile from stdin as <stdin>
* configure.ac, NEWS: adjusted
* bin/cobcrun:
  * (cobcrun_print_version): build and package data only shown in verbose mode; PACKAGE_NAME may now be overwritten by PKGVERSION (new configure option)
  * (cobcrun_print_usage): handle PACKAGE_BUGREPORT_URL as alternative to mailing list, now resolved by PACKAGE_BUGREPORT
* cobc:
  * cobc.c (cobc_print_version, cobc_print_shortversion, process_command_line): build and package data only shown in verbose mode which does not output the verbose "process" calls by default; PACKAGE_NAME may now be overwritten by PKGVERSION (new configure option)
  * help.c (cobc_print_usage): handle PACKAGE_BUGREPORT_URL as alternative to mailing list, now resolved by PACKAGE_BUGREPORT
* libcob/common.c (print_version): PACKAGE_NAME may now be overwritten by PKGVERSION (new configure option)
* cobc/cobc.c (cobc_sig_handler): skip abort message for SIGPIPE
* libcob/common.c:

  * (cob_sig_handler): fixed early exit from signal handler in case of errors during write to stderr, adjusted macros accordingly
  * (cob_sig_handler): flush stdout+stderr for fixed set of signals where this is known to work
  * (cob_reg_sighnd): if signal handler is enabled from outside the COBOL runtime (like via cobc), do the initialization of the internal signal text table (was empty before)
  * (cob_sig_handler): early exit for SIGPIPE without output if signal handler is used without any COBOL modules active (like via cobc)
  * (cob_sig_handler): fixed coding error that led to missing output of catched signal name

added tests for signal handling, these may need to be skipped because of not being completely portable
libcob:
* common.c (cob_sig_handler): moved call of cob_exit_screen_from_signal from ss_terminate_routines here instead of calling cob_exit_screen
* common.c (cob_sig_handler, cob_stack_trace_internal, cob_runtime_warning_ss): now using an internal buffer to output data instead of potentially hundreds of small direct writes, output the complete buffer when half-full oir at the end
* common.c (get_source_location): renamed from output_source_location, now writing to a specified buffer, returning the length, instead of direct write to stderr
* common.c (output_procedure_stack_entry): use buffer instead of direct write to stderr, now returning the length
* common.c (write_until_fail, strcat_to_buf, intcat_to_buff): new helper functions
* common.c (cob_sig_handler): moved call of cob_exit_screen_from_signal from ss_terminate_routines here instead of calling cob_exit_screen
* common.c (cob_runtime_warning_ss), coblocal.h, fileio.c (cob_exit_fileio_msg_only): changed signature, now returning nonzero if write to stderr wasn't sucessfull
* common.c (cob_runtime_warning, cob_runtime_warning_external): use all buffered io again

additional:
libcob/common.c (cob_load_config_file): fix format truncation warning by explicit checking for it
to drop user-reported warnings from compiler/linker
* configure: check expected json-c header first
* tests:
	* atlocal.in, atlocal_win: export new definition COB_ON_WINDOWS to allow the testsuite skipping/failing tests - and applied it to used_binaries.at
	* run_prog_manual.sh.in: fix extranous $COBCRUN for all test runners
	* run_prog_manual.sh.in (xterm): use all parameters, not only the first

* build_windows/set_env_vs_dist: supporting space-included paths (not recommended)
@lefessan lefessan merged commit 68b82c8 into gcos4gnucobol-3.x Oct 11, 2024
11 of 16 checks passed
@GitMensch
Copy link
Collaborator Author

@lefessan would you mind going to the repo settings and mark a bunch of the branches (at least gnucobol-3.x, gcos4gnucobol-3.x and master) as "protected"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants