1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

7011 commits

Author SHA1 Message Date
Rob Browning
bd515f3740 * ports.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:58:21 +00:00
Rob Browning
4076ea5018 * objects.c: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS. 2003-03-25 23:58:03 +00:00
Rob Browning
22185d5f65 * numbers.h: replace usage of HAVE_FLOATINGPOINT_H with
SCM_HAVE_FLOATINGPOINT_H.  Replace usage of HAVE_IEEEFP_H with
SCM_HAVE_IEEEFP_H.  Replace usage of HAVE_NAN_H with
SCM_HAVE_NAN_H.  Replace usage of STDC_HEADERS with
SCM_HAVE_STDC_HEADERS.  Replace usage of ptrdiff_t with
scm_t_ptrdiff.  Replace usage of HAVE_LONG_LONGS with
"SCM_SIZEOF_LONG_LONG != 0".
2003-03-25 23:57:58 +00:00
Rob Browning
ee33d62a8d * numbers.c: #include <config.h> if HAVE_CONFIG_H. Replace usage
of HAVE_LONG_LONGS with "SCM_SIZEOF_LONG_LONG != 0".  Replace
usage of ptrdiff_t with scm_t_ptrdiff.  Replace usage of
SIZEOF_PTRDIFF_T with SCM_SIZEOF_SCM_T_PTRDIFF.
2003-03-25 23:57:51 +00:00
Rob Browning
b325b9fa78 * num2integral.i.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:57:43 +00:00
Rob Browning
bf44fc4dbb * null-threads.h: replace usage of struct timespect with
scm_t_timespec.
2003-03-25 23:57:38 +00:00
Rob Browning
83b429ed5d * net_db.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:57:32 +00:00
Rob Browning
2a7b258316 * mkstemp.c: #include <config.h> if HAVE_CONFIG_H. #include
"libguile/__scm.h".  Remove definition of gcc_uint64_t in favor of
scm_t_uint64 and rename usages.
2003-03-25 23:57:26 +00:00
Rob Browning
0261dfae16 * mallocs.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:57:21 +00:00
Rob Browning
cbd41c89a4 * load.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:57:16 +00:00
Rob Browning
b31e9238af * iselect.h: move handling of time related headers to scmconfig.h.
Rename usage of HAVE_SYS_SELECT_H to SCM_HAVE_SYS_SELECT_H.
Rename usage of HAVE_WINSOCK2_H to SCM_HAVE_WINSOCK2_H.  Rename
usage of USE_COOP_THREADS to SCM_USE_COOP_THREADS.
2003-03-25 23:57:11 +00:00
Rob Browning
a813d0f815 * iselect.c: #include <config.h> if HAVE_CONFIG_H. Rename usage
of USE_COOP_THREADS to SCM_USE_COOP_THREADS.  Rename usage of
USE_NULL_THREADS to SCM_USE_NULL_THREADS.
2003-03-25 23:57:06 +00:00
Rob Browning
381534b31e * ioext.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:57:01 +00:00
Rob Browning
60e7529ae4 * inline.h: #include "libguile/__scm.h" at the top. Change code
to use SCM_C_INLINE and SCM_INLINE_C_INCLUDINT_INLINE_H to decide
what to do instead of creating a new public #define.  Rename usage
of USE_COOP_THREADS to SCM_USE_COOP_THREADS.  Rename usage of
USE_NULL_THREADS to SCM_USE_NULL_THREADS.  Rename usage of
USE_COPT_THREADS to SCM_USE_COPT_THREADS.

* inline.c: rearrange handling -- now we just #define
SCM_INLINE_C_INCLUDING_INLINE_H to 1 and #include
"libguile/inline.h".  scmconfig.h will define SCM_C_INLINE as
appropriate, and we use that in inline.h along with the above
define to determine how to respond.
2003-03-25 23:56:55 +00:00
Rob Browning
b11761f2ca * inline.c: rearrange handling -- now we just #define
SCM_INLINE_C_INCLUDING_INLINE_H to 1 and #include
"libguile/inline.h".  scmconfig.h will define SCM_C_INLINE as
appropriate, and we use that in inline.h along with the above
define to determine how to respond.
2003-03-25 23:56:49 +00:00
Rob Browning
6f0250f7b4 * init.c: #include <config.h> if HAVE_CONFIG_H. Rename usage of
HAVE_ARRAYS to SCM_HAVE_ARRAYS.

* gdbinit.c: #include <config.h> if HAVE_CONFIG_H.
2003-03-25 23:56:32 +00:00
Rob Browning
e938aff131 * guile.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:56:27 +00:00
Rob Browning
d3d183b5ef * gh_data.c: #include <config.h> if HAVE_CONFIG_H. Rename usage
of HAVE_ARRAYS to SCM_HAVE_ARRAYS.
2003-03-25 23:56:21 +00:00
Rob Browning
f66f1fdae5 * gh.h: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS. 2003-03-25 23:56:16 +00:00
Rob Browning
5ebbe4ef9b *** empty log message *** 2003-03-25 23:55:48 +00:00
Rob Browning
2485c27901 * gc_os_dep.c: #include <config.h> if HAVE_CONFIG_H. Replace
usage of STACK_GROWS_UP with SCM_STACK_GROWS_UP.
2003-03-25 23:55:43 +00:00
Rob Browning
48c046bcda * gc.h: replace usage of SIZEOF_LONG with
SCM_SIZEOF_UNSIGNED_LONG.  Replace usage of USE_PTHREAD_THREADS
with SCM_USE_PTHREAD_THREADS.  Remove SCM_SIZEOF_LONG definition
since we handle that in scmconfig.h now.
2003-03-25 23:55:37 +00:00
Rob Browning
aa54a9b0a3 * gc.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:55:31 +00:00
Rob Browning
3ba436c800 * gc-mark.c: #include <config.h> if HAVE_CONFIG_H. Rename usage
of HAVE_ARRAYS to SCM_HAVE_ARRAYS.  Replace usage of
HAVE_LONG_LONGS with "SCM_SIZEOF_LONG_LONG != 0".
2003-03-25 23:55:25 +00:00
Rob Browning
132fa21f55 * gc-malloc.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:55:20 +00:00
Rob Browning
5264ca4a01 * gc-card.c: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS.
Replace usage of HAVE_LONG_LONGS with "SCM_SIZEOF_LONG_LONG != 0".
2003-03-25 23:55:14 +00:00
Rob Browning
85286595b5 * fports.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:55:09 +00:00
Rob Browning
8307945424 * filesys.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:54:53 +00:00
Rob Browning
b652768e04 * feature.c: #include <config.h> if HAVE_CONFIG_H. Rename usage
of USE_NULL_THREADS to SCM_USE_NULL_THREADS.
2003-03-25 23:54:46 +00:00
Rob Browning
c0fc108975 * extensions.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:54:41 +00:00
Rob Browning
65fb6c49d4 * evalext.c: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS.
Replace usage of HAVE_LONG_LONGS with "SCM_SIZEOF_LONG_LONG != 0".
2003-03-25 23:54:35 +00:00
Rob Browning
3d05f2e0fb * eval.c: #include <config.h> if HAVE_CONFIG_H. #include
"libguile/__scm.h" rather than scmconfig.h.  Rename usage of
HAVE_ARRAYS to SCM_HAVE_ARRAYS.  Replace usage of HAVE_LONG_LONGS
with "SCM_SIZEOF_LONG_LONG != 0".
2003-03-25 23:54:28 +00:00
Rob Browning
4600886f39 * error.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:54:21 +00:00
Rob Browning
1f4d02c24b * eq.c: #include <config.h> if HAVE_CONFIG_H. Rename usage of
HAVE_ARRAYS to SCM_HAVE_ARRAYS.  Replace usage of HAVE_LONG_LONGS
with "SCM_SIZEOF_LONG_LONG != 0".
2003-03-25 23:54:15 +00:00
Rob Browning
5f0bcfd555 * deprecation.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:54:07 +00:00
Rob Browning
fd291a5c13 * coop.c: replace usage of struct timespect with scm_t_timespec.
#include <config.h> if HAVE_CONFIG_H.
2003-03-25 23:54:01 +00:00
Rob Browning
2445400666 * coop-threads.c: #include "libguile/_scm.h" early. Replace
usage of struct timespect with scm_t_timespec.  Replace usage of
STACK_GROWS_UP with SCM_STACK_GROWS_UP.
2003-03-25 23:53:56 +00:00
Rob Browning
2295d4daa2 * coop-pthreads.c: #include "libguile/_scm.h" early. Replace
usage of struct timespect with scm_t_timespec.  Replace usage of
STACK_GROWS_UP with SCM_STACK_GROWS_UP.
2003-03-25 23:53:49 +00:00
Rob Browning
ec81cb0b99 * coop-defs.h: move handling of time related headers to
scmconfig.h.  Add #include "libguile/__scm.h".  Rename usage of
HAVE_WINSOCK2_H to SCM_HAVE_WINSOCK2_H.  Replace usage of struct
timespect with scm_t_timespec.
2003-03-25 23:53:32 +00:00
Rob Browning
cca86e031b * convert.i.c: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS. 2003-03-25 23:53:26 +00:00
Rob Browning
7a1e395c09 * convert.h: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS. 2003-03-25 23:52:58 +00:00
Rob Browning
3c6be74a7d * convert.c: #include <config.h> if HAVE_CONFIG_H. Rename usage
of HAVE_ARRAYS to SCM_HAVE_ARRAYS.
2003-03-25 23:52:52 +00:00
Rob Browning
bbd43f0356 * continuations.c: move libguile/_scm.h include to the top so we
pick up any critical defines like _GNU_SOURCE early.
2003-03-25 23:52:46 +00:00
Rob Browning
615873d24e * backtrace.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:52:40 +00:00
Rob Browning
ef92a2a2d7 * async.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:52:33 +00:00
Rob Browning
9b90309501 * alloca.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:52:25 +00:00
Rob Browning
b49ed9c97f * _scm.h: #include <config.h> if HAVE_CONFIG_H.
Rename usage of USE_PTHREAD_THREADS to SCM_USE_PTHREAD_THREADS.
2003-03-25 23:52:18 +00:00
Rob Browning
92e6989fda * __scm.h: move libguile/scmconfig.h include up to the top, so
we're sure to pick up any critical defines like _GNU_SOURCE early.
#include <limits.h> removed in favor of scmconfig.h inclusion when
appropriate.  STDC_HEADERS based inclusion of stdlib.h,
sys/types.h, stddef.h, and sys/stdtypes.h removed in favor of
scmconfig.h inclusion when appropriate.  Various Win32 related
definitions removed in favor of scmconfig.h inclusion when
appropriate.
(HAVE_UINTPTR_T): definition removed (see NEWS).
(SIZEOF_PTRDIFF_T): definition removed (see NEWS).
(HAVE_LONG_LONGS): definition removed (see NEWS).
(HAVE_LONG_LONG): definition removed (see NEWS).
(HAVE_PTRDIFF_T): definition removed (see NEWS).
2003-03-25 23:51:57 +00:00
Rob Browning
64c2db807d * Makefile.am: scmconfig.h is now generated by building and
running gen-scmconfig.h and capturing its output.  gen-scmconfig
uses config.h and the configure.in generated gen-scmconfig.h to
decide what to output.  See gen-scmconfig.c for details.
(noinst_PROGRAMS): add gen-scmconfig.
(gen_scmconfig_SOURCES): new variable.
(gen-scmconfig.$(OBJEXT)): new target - be careful to handle
cross-compiling right.
(scmconfig.h): build scmconfig.h from gen-scmconfig's output.
(BUILT_SOURCES): add scmconfig.h.
2003-03-25 23:51:37 +00:00
Rob Browning
9a52bc2af1 * configure.in: big overhaul to shift us to have separate private,
config.h, and public, scmconfig.h, configuration headers.  Added a
fair amount of code to track down new required types: scm_t_uint8,
scm_t_uint16, scm_t_uint32, scm_t_int8, scm_t_int16, scm_t_int32,
and to detect optional types scm_t_uint64, scm_t_in64, long long,
unsigned long long, scm_t_ptrdiff, intptr_t, and uintptr_t.
(SCM_I_GSC_T_PTRDIFF): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_NEEDS_INTTYPES_H): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_NEEDS_STDINT_H): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT8): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT16): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT32): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT64): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT8): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT16): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT32): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT64): gen-scmconfig.h.in AC_SUBST var.
(USE_PTHREAD_THREADS): removed - handled by gen-scmconfig.c.
(USE_NULL_THREADS): removed - handled by gen-scmconfig.c.
(USE_COOP_THREADS): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_USE_PTHREAD_THREADS): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_USE_NULL_THREADS): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_USE_COOP_THREADS): gen-scmconfig.h.in AC_SUBST var.
(STACK_GROWS_UP): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_STACK_GROWS_UP): gen-scmconfig.h.in AC_SUBST var.
(GUILE_DEBUG_FREELIST): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_GUILE_DEBUG_FREELIST): gen-scmconfig.h.in AC_SUBST var.
(GUILE_DEBUG): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_GUILE_DEBUG): gen-scmconfig.h.in AC_SUBST var.
(SCM_ENABLE_DEPRECATED): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_ENABLE_DEPRECATED): gen-scmconfig.h.in AC_SUBST var.
(HAVE_ARRAYS): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_HAVE_ARRAYS): gen-scmconfig.h.in AC_SUBST var.
(SCM_ENABLE_ELISP): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_ENABLE_ELISP): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_C_INLINE): gen-scmconfig.h.in AC_SUBST var.
(DEBUG_EXTENSIONS): removed - handled by gen-scmconfig.c.
(READER_EXTENSIONS): removed - handled by gen-scmconfig.c.
(USE_THREADS): removed - handled by gen-scmconfig.c.
(GUILE_ISELECT): removed - handled by gen-scmconfig.c.
(DYNAMIC_LINKING): removed - handled by gen-scmconfig.c.
2003-03-25 23:51:15 +00:00