summaryrefslogtreecommitdiff
path: root/libguile/null-threads.h
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-08-20 21:08:49 +0200
committerLudovic Courtès <ludo@gnu.org>2010-08-27 18:59:42 +0200
commit93003b16b03a3aac486994f01140c0ebc6fe1b66 (patch)
treeeb8bc4ac07d7ad57cb5ee6a8b4199304bb488f8f /libguile/null-threads.h
parent172988eeb4445ca5408be55a9888f7c2d59a316b (diff)
downloadguile-93003b16b03a3aac486994f01140c0ebc6fe1b66.tar.gz
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.
Diffstat (limited to 'libguile/null-threads.h')
-rw-r--r--libguile/null-threads.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libguile/null-threads.h b/libguile/null-threads.h
index ec83ab798..116b845a5 100644
--- a/libguile/null-threads.h
+++ b/libguile/null-threads.h
@@ -3,7 +3,7 @@
#ifndef SCM_NULL_THREADS_H
#define SCM_NULL_THREADS_H
-/* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006, 2010 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -33,15 +33,16 @@
goal.
*/
+#include <stdlib.h>
#include <errno.h>
-/* Threads
+/* Threads
*/
#define scm_i_pthread_t int
#define scm_i_pthread_self() 0
#define scm_i_pthread_create(t,a,f,d) (*(t)=0, (void)(f), ENOSYS)
#define scm_i_pthread_detach(t) do { } while (0)
-#define scm_i_pthread_exit(v) exit(0)
+#define scm_i_pthread_exit(v) exit (EXIT_SUCCESS)
#define scm_i_pthread_cancel(t) 0
#define scm_i_pthread_cleanup_push(t,v) 0
#define scm_i_pthread_cleanup_pop(e) 0