Mike Gran
9b357bace3
Presume ISO C90 headers are always available
...
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
2022-10-14 08:40:23 -07:00
Mike Gran
08926cdcd0
Avoid leaking a file descriptor in test-unwind
...
* test-suite/standalone/test-unwind.c (check_ports): explicitly close temp file
2019-05-23 17:29:52 +02:00
Andy Wingo
1234bb1850
Update license notices in all C files
...
Update to newest recommended license notices from the FSF. Everything
stays LGPLv3+ except guile-readline which is GPLv3+.
2018-06-20 20:07:34 +02:00
Andy Wingo
791eb0c01a
Remove (C) from copyright statements
...
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.
2018-06-20 19:17:06 +02:00
Ludovic Courtès
556d35af88
tests: Don't rely on $TMPDIR and /tmp on Windows.
...
* 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>.
2013-06-16 16:42:01 +02:00
Ludovic Courtès
93003b16b0
Assorted `syntax-check' fixes.
...
* 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-08-27 18:59:42 +02:00
Andy Wingo
997659f898
make scm_make_continuation internal
...
* 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-02-08 13:35:06 +01:00
Thien-Thi Nguyen
bd4b6c1a83
Use mkstemp' instead of
mktemp'.
...
* test-suite/standalone/test-unwind.c (check_ports):
Use `mkstemp' instead of `mktemp'.
Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org>
2010-01-13 20:49:37 +01:00
Ludovic Courtès
c291b58835
Fix stylistic issues revealed by "make syntax-check".
...
* 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-11-17 23:42:36 +01:00
Neil Jerram
98241dc53f
Revert "Change dynwind flag enums to #defines, for greater portability"
...
This reverts commit b25aa0b937
.
2009-10-07 22:14:38 +01:00
Neil Jerram
b25aa0b937
Change dynwind flag enums to #defines, for greater portability
...
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-10-02 22:20:47 +01:00
Neil Jerram
53befeb700
Change Guile license to LGPLv3+
...
(Not quite finished, the following will be done tomorrow.
module/srfi/*.scm
module/rnrs/*.scm
module/scripts/*.scm
testsuite/*.scm
guile-readline/*
)
2009-06-17 00:22:09 +01:00
Ludovic Courtès
eedcb08a25
Honor $TMPDIR in the test suite.
2008-03-13 14:03:58 +00:00
Marius Vollmer
661ae7ab6b
Renamed the "frames" that are related to dynamic-wind to "dynamic
...
contexts. Renamed all functions from scm_frame_ to scm_dynwind_.
Updated documentation.
2006-01-29 00:23:28 +00:00
Kevin Ryde
4858610b00
(check_cont): Cast rewindable to long, to
...
avoid warning from gcc 3.4 on 64-bit systems about casting int
(32-bits) to pointer (64-bits).
2005-01-24 00:07:01 +00:00
Marius Vollmer
ad6dec055f
Avoid the use of discouraged or deprecated things.
2004-08-19 17:28:53 +00:00
Marius Vollmer
79e9bca7e9
Use scm_from_int instead of SCM_MAKINUM and scm_is_eq instead
...
SCM_EQ_P.
2004-07-08 16:03:01 +00:00
Marius Vollmer
66dd7f149c
Replaced all uses of deprecated SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,
...
SCM_NEGATE_BOOL, and SCM_BOOLP with scm_is_false, scm_is_true,
scm_from_bool, and scm_is_bool, respectively.
2004-07-06 13:19:42 +00:00
Marius Vollmer
f1da8e4e0b
Renamed scm_frame_unwind to scm_frame_unwind_handler, and
...
scm_frame_rewind to scm_frame_rewind_handler.
2004-01-11 00:56:05 +00:00
Marius Vollmer
8843e1fa41
Adapted to 'frame' renamings. (check_fluid): New.
2004-01-07 18:18:00 +00:00
Marius Vollmer
c05d0e8f1e
(close_port, delete_file, check_ports): New.
2004-01-06 18:13:51 +00:00
Marius Vollmer
3c8fb18ef6
* standalone/test-unwind.c: New test, for the frames stuff.
...
* standalone/Makefile.am: Compile and run it.
2004-01-03 21:54:23 +00:00