1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 05:20:16 +02:00
Commit graph

6023 commits

Author SHA1 Message Date
Marius Vollmer
5d8fc6409a *** empty log message *** 2001-11-12 01:14:26 +00:00
Marius Vollmer
1f5376556f Use HAVE_LONG_LONG instead of HAVE_LONG_LONGS and test
it with `#ifdef' instead of `#if'.
2001-11-12 01:14:17 +00:00
Marius Vollmer
08ae876872 (SIZEOF_SCM_T_BITS): Define it appropriately. 2001-11-12 01:13:00 +00:00
Marius Vollmer
3d2e8ceb97 * numbers.c: Document macros to define when including
num2integral.i.c.  MAX_VALUE and MIN_VALU are no longer used, we
now rely on SIZEOF_ macros that have been figured out at
configure time.

* num2integral.i.c: Adapt to new interface.
(NUM2INTEGRAL): Test whether a fixnum can be represented in the
target type by casting it and checking whether it is still the
same.  Do not try to handle bignums for integral types that are
smaller than fixnums.  When handling bignums, collect the
magnituse first into a unsigned type, and correctly check for
overflow.
(INTEGRAL2BIG): Do not use MIN_VALUE explicitely by observing that
only -MIN_VALUE can still be negative of all negative numbers (in
twos-complement).
2001-11-12 01:12:37 +00:00
Marius Vollmer
fdf773fa8f Define HAVE_UINTPTR_T, HAVE_PTRDIFF_T and HAVE_LONG_LONG depending on
whether their size is non-zero.
2001-11-12 01:00:40 +00:00
Marius Vollmer
35656ebcef *** empty log message *** 2001-11-12 00:58:48 +00:00
Marius Vollmer
813b3dd465 check for sizes of short, size_t, uintptr_t, and
ptrdiff_t.  Checking for a size also checks automatically for the
existence of the type, so we don't check for the existence of
uintptr_t, ptrdiff_t and long long ourselves.
2001-11-12 00:58:33 +00:00
Thien-Thi Nguyen
d6b8cf1192 *** empty log message *** 2001-11-11 20:51:44 +00:00
Thien-Thi Nguyen
9c4c86c623 (scm_string_null_p): Docfix; nfc. 2001-11-11 20:49:24 +00:00
Neil Jerram
9401323e63 * Documentation work. 2001-11-11 15:01:52 +00:00
Thien-Thi Nguyen
a0a9b9ad42 *** empty log message *** 2001-11-10 22:45:18 +00:00
Thien-Thi Nguyen
22ad074858 (11): New. 2001-11-10 22:44:30 +00:00
Stefan Jahn
b4e15479e9 2001-11-07 Stefan Jahn <stefan@lkcc.org>
* configure.in: Include `win32-socket.o' in the list of object
        files if networking is enabled on Win32.

2001-11-07  Stefan Jahn  <stefan@lkcc.org>

        * win32-socket.[ch]: New files.  Defines Winsock-API error codes
        and makes them available through Guile.  That is because the
        Winsock-API does not store its errors in `errno' and thus cannot
        return error messages via `strerror (errno)'.

        * socket.c (scm_init_socket): Initialize `win32-socket' part
        here under M$-Windows.

        * numbers.h: Added missing declaration of
        `scm_sys_check_number_conversions()'.

        * error.c: Local definition of SCM_I_STRERROR and SCM_I_ERRNO
        and use in `(strerror)' and `(system-error)'.

        * Makefile.am (EXTRA_libguile_la_SOURCES): Added
        `win32-socket.[ch]' to extra source and header files.
2001-11-07 15:08:45 +00:00
Thien-Thi Nguyen
2ca222c2e9 *** empty log message *** 2001-11-07 02:55:40 +00:00
Thien-Thi Nguyen
3989f08206 (10): New. 2001-11-07 02:55:05 +00:00
Thien-Thi Nguyen
70debc2296 *** empty log message *** 2001-11-07 00:40:15 +00:00
Thien-Thi Nguyen
d5b7b58432 (9): New. 2001-11-07 00:37:39 +00:00
Thien-Thi Nguyen
04bbd6ce09 *** empty log message *** 2001-11-06 22:48:30 +00:00
Thien-Thi Nguyen
523ebf43bd (sync srfi-modules.texi): Done. 2001-11-06 22:46:48 +00:00
Thien-Thi Nguyen
bfc9c8e088 (SRFI Support): Add "SRFI-19" to menu. 2001-11-06 22:43:41 +00:00
Thien-Thi Nguyen
ca26b87dd4 *** empty log message *** 2001-11-06 22:38:48 +00:00
Thien-Thi Nguyen
12991fed11 (SRFI-19, SRFI-19 Constants, SRFI-19 Current time and clock
resolution, SRFI-19 Time object and accessors, SRFI-19 Time
comparison procedures, SRFI-19 Time arithmetic procedures,
SRFI-19 Date object and accessors, SRFI-19 Time/Date/Julian
Day/Modified Julian Day converters, SRFI-19 Date to
string/string to date converters): New nodes.
2001-11-06 22:35:53 +00:00
Thien-Thi Nguyen
23b1bf4b7a *** empty log message *** 2001-11-06 22:22:38 +00:00
Thien-Thi Nguyen
ee4beedcf4 (time-monotonic->time-monotonic): Spurious; remove from exports. 2001-11-06 22:21:29 +00:00
Thien-Thi Nguyen
188e14055c (SCM_API patch): Renamed to "add DLL support". New owner.
(sync srfi-modules.texi): New.
2001-11-06 21:38:35 +00:00
Marius Vollmer
53e82297cd Turn off debugging output in scm_compile_shell_switches. 2001-11-06 12:53:22 +00:00
Marius Vollmer
f12ef3fda6 *** empty log message *** 2001-11-05 23:23:13 +00:00
Marius Vollmer
7ab89df17c *** empty log message *** 2001-11-05 23:12:20 +00:00
Marius Vollmer
3682a51a35 (scm_shell_usage, scm_compile_shell_switches): Prepend
a call to turn-on-debugging when --debug has been given instead of
turning it on directly.  Also, handle new `--no-debug' option,
which might suppress the call to turn-on-debugging.
2001-11-05 23:11:50 +00:00
Marius Vollmer
52ce56fc79 Do not enable debugging and recording of source
positions.
2001-11-05 23:09:17 +00:00
Marius Vollmer
eef6519bde (turn-on-debugging): New function, to be used by
scm_compile_shell_switches.
2001-11-05 23:09:10 +00:00
Marius Vollmer
46356d0406 Document --debug' and --no-debug'. 2001-11-05 23:07:24 +00:00
Stefan Jahn
0233bfc11b 2001-11-05 Stefan Jahn <stefan@lkcc.org>
* struct.c (s_scm_struct_vtable_p): Corrected docstring.
2001-11-05 21:12:33 +00:00
Stefan Jahn
8f99e3f38b 2001-11-04 Stefan Jahn <stefan@lkcc.org>
* NEWS: Corrected remarks about SCM_API.

        * configure.in: Defining USE_DLL_IMPORT definition to indicate
        usage of DLL import macros in `libguile/__scm.h'.
        (LIBOBJS): Removed `fileblocks.o' from the list of object files.
        Somehow Jim Blandy's patch from 1997 did not survive.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * configure.in (EXTRA_DEFS): Follow-up patch.  Using SCM_IMPORT
        instead of __SCM_IMPORT__.

        * readline.c (scm_readline_init_ports): Disable input/output
        stream redirection for Win32.  The readline package for Win32
        does not support this.  The guile-readline library works fine
        for command line editing.

        * readline.h (SCM_RL_API): Renamed __FOO__ macros into FOO.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL)
        here (was at guile_LDADD) which describes the dependency
        correctly and allows a clean build on Win32.

        * __scm.h (SCM_API): Follow-up patch.  Renamed __FOO__ macros
        into FOO.

        * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL
        import macros for external libraries (libcrypt, libqthreads,
        libreadline and libregex).

        * coop-defs.h: Include <winsock2.h> for `struct timeval'.

        * posix.c (flock): Added support for flock() in M$-Windows.

        * guile.c (SCM_IMPORT): Follow-up patch.  Use SCM_IMPORT instead
        of __SCM_IMPORT__.

        * fports.c (getflags): Differentiate reading and writing pipes
        descriptors.

        * filesys.c (S_IS*): Redefine all of the S_IS*() macros for
        M$-Windows.

        * coop.c (coop_condition_variable_timed_wait_mutex): Use
        conditionalized error code if `ETIMEDOUT' is not available.
        (scm_thread_usleep): Remove bogus declaration of `struct timeval
        timeout'.

        * numbers.c (PTRDIFF_MIN): Moved this definition where it actually
        belongs.  That is because NO_PREPRO_MAGIC gets undefined after
        each inclusion of `num2integral.i.c'.
        (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * md/Makefile.am (EXTRA_DIST): Added `i386.asm'.

        * md/i386.asm: New file.  Contains the Intel syntax version for
        nasm/tasm/masm of the file `i386.s'.

        * qt.h.in: Definition of QT_API, QT_IMPORT and QT_EXPORT.
        Prefixed each symbols which is meant to go into a DLL.

        * Makefile.am (libqthreads_la_LDFLAGS):  Put `-no-undefined'
        into LDFLAGS to support linkers which do not allow unresolved
        symbols inside shared libraries.
        (EXTRA_DIST): Add `libqthreads.def', which is an export file
        definition for M$-Windows.  It defines exported symbols.  This is
        necessary because the M$VC linker does not know how to export
        assembler symbols into a DLL.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * srfi-13.h, srfi-14.h, srfi-4.h: Follow-up patch.  Renamed
        __FOO__ macros into FOO.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * tests/ports.test: Run (close-port) before (delete-file) if
        necessary/advisory.
2001-11-04 15:52:30 +00:00
Marius Vollmer
836b65573d *** empty log message *** 2001-11-03 23:06:47 +00:00
Marius Vollmer
56b0cb03eb (libguile_srfi_srfi_4_la_LIBADD, libguile_srfi_srfi_13_14_la_LIBADD):
Refer to build directory, not the source directory, for libguile.la.
Thanks to Ken Raeburn.
2001-11-03 23:06:40 +00:00
Marius Vollmer
4e21fa6096 *** empty log message *** 2001-11-03 18:46:31 +00:00
Marius Vollmer
b8113bc8dc (scm_m_begin): Allow (begin), with no subforms.
(SCM_CEVAL): Evaluate an empty `begin' to SCM_UNSPECIFIED.
2001-11-03 18:45:33 +00:00
Mikael Djurfeldt
7663c008a5 * print.c (scm_iprin1): Mark print state as revealed when
dispatching to generic write or display.
2001-11-02 13:55:38 +00:00
Mikael Djurfeldt
08112c957b * unif.c (scm_ra2contig): Fixed memory overwrite bug. 2001-11-02 12:31:50 +00:00
Thien-Thi Nguyen
ebd3a55a52 Add SCM_API patch incorporation; associate mvo w/ it. 2001-11-02 01:42:06 +00:00
Marius Vollmer
4aa104a485 *** empty log message *** 2001-11-02 00:37:07 +00:00
Marius Vollmer
f712d833cc *** empty log message *** 2001-11-02 00:21:34 +00:00
Marius Vollmer
064a03fd19 Defined SCM_SRFI4_API. Prefixed each exported
symbol with SCM_SRFI4_API.
2001-11-02 00:21:25 +00:00
Marius Vollmer
88a9347187 Defined SCM_SRFI1314_API. Prefixed each
exported symbol with SCM_SRFI1314_API.
2001-11-02 00:21:17 +00:00
Marius Vollmer
cb0abacf36 Put `-no-undefined' into LDFLAGS to support linkers
which do not allow unresolved symbols inside shared libraries.
2001-11-02 00:19:42 +00:00
Marius Vollmer
33b001fd89 Prefixed each each exported symbol with SCM_API. 2001-11-02 00:19:12 +00:00
Marius Vollmer
1dcb9876f5 * win32-uname.c: Include "win32-uname.h", not "uname.h". 2001-11-02 00:18:32 +00:00
Marius Vollmer
21e11a3b15 * win32-dirent.c: Include "win32-dirent.h", not "dirent.h". 2001-11-02 00:18:22 +00:00
Marius Vollmer
79dcdf5188 On M$-Windows tzname[]' is known to be _tzname[]'. 2001-11-02 00:17:10 +00:00