summaryrefslogtreecommitdiff
path: root/test-suite/standalone/test-unwind.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-14Presume ISO C90 headers are always availableMike Gran1-5/+1
This includes <assert.h>, <ctype.h>, <errno.h>, <float.h>, <iso646.h>, <limits.h>, <locale.h>, <math.h>, <setjmp.h>, <signal.h>, <stdarg.h>, <stddef.h>, <stdio.h>, <stdlib.h>, <string.h>, <time.h>, <wchar.h>, and <wctype.h>. * configure.ac: don't check for <limits.h>, <string.h>, <time.h>, <assert.h>. Remove AC_INCLUDES_DEFAULT macro * libguile/bytevectors.c: include <limits.h>, remove HAVE_LIMITS_H * libguile/filesys.c: include <string.h>, remove HAVE_STRING_H * libguile/fports.c: include <string.h>, remove HAVE_STRING_H * libguile/gen-scmconfig.c: remove HAVE_LIMITS_H, HAVE_TIME_H, STDC_HEADERS Remove SCM_HAVE_STDC_HEADERS * libguile/hash.c: include <wchar.h>, remove HAVE_WCHAR_H * libguile/net_db.c: include <string.h>, remove HAVE_STRING_H * libguile/numbers.h: remove SCM_HAVE_STDC_HEADERS * libguile/regex-posix.c: include <wchar.h>, remove HAVE_WCHAR_H (fixup_multibyte_match): always defined (scm_regexp_exec): use fixup_multibyte_match * libguile/scmsigs.c: remove STDC_HEADERS * libguile/socket.c: include <string.h>, remove HAVE_STRING_H * test-suite/standalone/test-unwind.c: include <string.h>, remove HAVE_STRING_H
2019-05-23Avoid leaking a file descriptor in test-unwindMike Gran1-2/+5
* test-suite/standalone/test-unwind.c (check_ports): explicitly close temp file
2018-06-20Update license notices in all C filesAndy Wingo1-17/+17
Update to newest recommended license notices from the FSF. Everything stays LGPLv3+ except guile-readline which is GPLv3+.
2018-06-20Remove (C) from copyright statementsAndy Wingo1-1/+2
As the FSF advises, 'There is no legal significance to using the three-character sequence “(C)”, but it does no harm.' It does take up space though! For that reason, we remove it here from our C files.
2013-06-16tests: Don't rely on $TMPDIR and /tmp on Windows.Ludovic Courtès1-1/+12
* test-suite/standalone/test-unwind.c (check_ports)[__MINGW32__]: Use $TEMP, $TMP, or / as the value for TMPDIR. Patch by Eli Zaretskii <eliz@gnu.org>.
2010-08-27Assorted `syntax-check' fixes.Ludovic Courtès1-8/+8
* doc/ref/Makefile.am ($(snarf_doc).am): Untabify. * libguile/eval.c: Remove unnecessary <assert.h> inclusion. * .x-sc_m4_quote_check: Update. * libguile/error.c (scm_error_scm): Use `EXIT_FAILURE' instead of 1. * libguile/init.c (fixconfig, scm_boot_guile): Likewise. * libguile/null-threads.h (scm_i_pthread_exit): Likewise. * libguile/script.c (scm_compile_shell_switches): Likewise. * test-suite/standalone/test-conversion.c: Likewise. * test-suite/standalone/test-list.c: Likewise. * test-suite/standalone/test-unwind.c: Likewise. * libguile/async.c: Remove unnecessary inclusion of <signal.h>. * NEWS: "filesystem" -> "file system". * doc/ref/r6rs.texi: Ditto. * cfg.mk (local-checks-to-skip): New variable. * .x-sc_m4_quote_check, .x-sc_obsolete_symbols, .x-sc_program_name, .x-sc_prohibit_atoi_atof, .x-sc_prohibit_magic_number_exit: New files. * .gitignore: Update.
2010-02-08make scm_make_continuation internalAndy Wingo1-4/+2
* libguile/continuations.h: * libguile/continuations.c (scm_i_make_continuation): Change from scm_make_continuation, and make internal. * libguile/vm-i-system.c (call/cc, tail-call/cc): Adapt callers. * test-suite/standalone/test-unwind.c (check_cont_body): Adapt a test. * doc/ref/api-control.texi (Continuations): Update docs.
2010-01-13Use `mkstemp' instead of `mktemp'.Thien-Thi Nguyen1-1/+3
* test-suite/standalone/test-unwind.c (check_ports): Use `mkstemp' instead of `mktemp'. Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org>
2009-11-17Fix stylistic issues revealed by "make syntax-check".Ludovic Courtès1-3/+2
* libguile/gc-malloc.c (scm_must_free): Remove unnecessary `if' before `free ()'. * libguile/stime.c (scm_localtime, scm_mktime): Likewise. * libguile/eval.i.c (ceval): Don't cast the result of alloca(3). * libguile/i18n.c (SCM_STRING_TO_U32_BUF): Likewise. * test-suite/standalone/test-unwind.c: Likewise. * libguile/strings.c (scm_i_deprecated_string_chars): Don't end error message in period.
2009-10-07Revert "Change dynwind flag enums to #defines, for greater portability"Neil Jerram1-1/+1
This reverts commit b25aa0b9373d2798469e0fe999cd915e8beedc4f.
2009-10-02Change dynwind flag enums to #defines, for greater portabilityNeil Jerram1-1/+1
Thanks to Inge Gutheil for raising this problem. * doc/ref/api-control.texi (Dynamic Wind): Remove doc for scm_t_dynwind_flags, and change uses of scm_t_dynwind_flags to int. Mention possible flags inside doc for scm_dynwind_begin instead. Similarly for scm_t_wind_flags. In this case the doc on possible flags is moved to after the four functions that can use them. * libguile/dynwind.c (scm_dynwind_begin): Change scm_t_dynwind_flags to int. (scm_dynwind_unwind_handler): Change scm_t_wind_flags to int. (scm_dynwind_rewind_handler): Ditto. (scm_dynwind_unwind_handler_with_scm): Ditto. (scm_dynwind_rewind_handler_with_scm): Ditto. * libguile/dynwind.h (SCM_F_DYNWIND_REWINDABLE): Use #define instead of typedef enum. (SCM_F_WIND_EXPLICITLY): Ditto. (function declarations): Change scm_t_dynwind_flags and scm_t_wind_flags to int. * test-suite/standalone/test-unwind.c (check_cont_body): Change scm_t_dynwind_flags to int.
2009-06-17Change Guile license to LGPLv3+Neil Jerram1-6/+7
(Not quite finished, the following will be done tomorrow. module/srfi/*.scm module/rnrs/*.scm module/scripts/*.scm testsuite/*.scm guile-readline/* )
2008-03-13Honor $TMPDIR in the test suite.Ludovic Courtès1-1/+40
2006-01-29Renamed the "frames" that are related to dynamic-wind to "dynamicMarius Vollmer1-29/+29
contexts. Renamed all functions from scm_frame_ to scm_dynwind_. Updated documentation.
2005-01-24(check_cont): Cast rewindable to long, toKevin Ryde1-1/+1
avoid warning from gcc 3.4 on 64-bit systems about casting int (32-bits) to pointer (64-bits).
2004-08-19Avoid the use of discouraged or deprecated things.Marius Vollmer1-4/+4
2004-07-08Use scm_from_int instead of SCM_MAKINUM and scm_is_eq insteadMarius Vollmer1-4/+4
SCM_EQ_P.
2004-07-06Replaced all uses of deprecated SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,Marius Vollmer1-3/+3
SCM_NEGATE_BOOL, and SCM_BOOLP with scm_is_false, scm_is_true, scm_from_bool, and scm_is_bool, respectively.
2004-01-11Renamed scm_frame_unwind to scm_frame_unwind_handler, andMarius Vollmer1-7/+9
scm_frame_rewind to scm_frame_rewind_handler.
2004-01-07Adapted to 'frame' renamings. (check_fluid): New.Marius Vollmer1-24/+53
2004-01-06(close_port, delete_file, check_ports): New.Marius Vollmer1-2/+58
2004-01-03* standalone/test-unwind.c: New test, for the frames stuff.Marius Vollmer1-0/+172
* standalone/Makefile.am: Compile and run it.