1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-08 02:40:17 +02:00
Commit graph

17263 commits

Author SHA1 Message Date
Jim Blandy
d9803e92ba Don't use local_fgets on sockets; ftell doesn't work on sockets.
(Thanks to Jorgen "forcer" Schaefer.)
* ports.h (SCM_NOFTELL): New flag.
* fports.c (local_fgets): If it's set, use the generic fgets.
* socket.c (scm_socket): Set SCM_NOFTELL on the ports we produce.
1998-10-17 18:10:30 +00:00
Jim Blandy
ccd9642e20 *** empty log message *** 1998-10-17 18:05:32 +00:00
Jim Blandy
e80c8fea8d *** empty log message *** 1998-10-17 17:45:34 +00:00
Mikael Djurfeldt
97c524bd4a * script.c (scm_compile_shell_switches): Add handling of -q switch
(inhibit loading of user init file).
(scm_shell_usage): Add usage text for -q switch.
(scm_compile_shell_switches): Always load user init file first if
it is loaded at all.
1998-10-17 08:20:27 +00:00
Jim Blandy
d509e5f6b3 *** empty log message *** 1998-10-16 10:22:15 +00:00
Jim Blandy
3e66cf9f29 *** empty log message *** 1998-10-16 10:21:36 +00:00
Jim Blandy
b71c84ae0b * md/i386.s: Remove nested comment starter, to quiet warnings. 1998-10-16 10:21:18 +00:00
Jim Blandy
af1dd03a21 * Makefile.am (.s.lo): Supply our own rule here, which passes
qthread_asflags through.  See today's change to ../qthreads.m4.
* Makefile.in, qt/Makefile.in, time/Makefile.in: Regenerated.
1998-10-16 10:10:19 +00:00
Jim Blandy
70445040f6 *** empty log message *** 1998-10-16 10:09:18 +00:00
Jim Blandy
3fd207d759 * regex-posix.c (scm_regexp_exec): Add a cast to remove a
signed/unsigned comparison.
1998-10-16 10:09:04 +00:00
Jim Blandy
47521807d1 * qthreads.m4 (QTHREADS_CONFIGURE): On NetBSD, pass through a flag
to the Makefile which explicitly tells it to pass assembly files
through the preprocessor.
* aclocal.m4, configure, Makefile.in: Regenerated.
1998-10-16 10:08:13 +00:00
Jim Blandy
6b96653375 * Makefile.am (.s.lo): Supply our own rule here, which passes
qthread_asflags through.  See today's change to ../qthreads.m4.
* Makefile.in: Regenerated.
1998-10-16 10:07:56 +00:00
Jim Blandy
285403bba7 * Makefile.in: Regenerated, after change to qthreads.m4. 1998-10-16 09:58:29 +00:00
Jim Blandy
a2fc27b557 * stime.c: The CPP hair to determine a value for CLKTCK is weird,
and is now broken under NetBSD.  I can't fathom what it's trying
to do, so I've replaced it with something that I do understand,
which seems to work, and which isn't broken on NetBSD.  "Progress?
You Decide."  (Thanks to Perry Metzger.)
1998-10-15 22:43:17 +00:00
Jim Blandy
ea7e04f792 Update sample build of and interaction with smob example program, to
reflect new example Makefile.
1998-10-15 22:06:34 +00:00
Jim Blandy
93a5e77fc7 *** empty log message *** 1998-10-15 22:03:06 +00:00
Jim Blandy
8e9fb89977 * Makefile (myguile): Fix link command, to put the Guile libraries
after the object files.  The old command worked on my machine, but
I don't see how.
1998-10-15 22:02:59 +00:00
Jim Blandy
8ff90e0474 *** empty log message *** 1998-10-15 21:49:13 +00:00
Jim Blandy
90b714763e Created this directory for the Guile 1.3 release. Thanks to Jay
Glascoe for suggesting that we provide a complete, buildable
example!
* ChangeLog, Makefile, README, image-type.c, image-type.h,
myguile: New files.
1998-10-15 21:48:51 +00:00
Jim Blandy
305f02b130 * stamp-vti: Regenerated. 1998-10-15 21:48:27 +00:00
Jim Blandy
4320facb00 * hacks.el: Some handy helper functions for working on the manual. 1998-10-15 21:48:23 +00:00
Jim Blandy
7d12f03367 * data-rep.texi: Extended to accomodate a full running example,
provided with the manual.
* example-smob: A new subdirectory, containing example files for
the manual chapter on smobs.
* Makefile.am (EXAMPLE_SMOB_FILES, dist-hook): New variable and
target, to get the example-smob directory into the distribution.
* Makefile.in: Regenerated.
1998-10-15 21:48:12 +00:00
Jim Blandy
716290a7e0 Add a step: test the documentation examples. 1998-10-15 21:43:58 +00:00
Jim Blandy
6e6e2bbc80 *** empty log message *** 1998-10-15 18:23:39 +00:00
Jim Blandy
f3667f526d Warning fixes from Greg Harvey:
* unif.c (scm_array_set_x): initializer for pos
* throw.c (scm_ithrow): added initializer for jmpbuf (SCM_UNDEFINED)
* struct.c (scm_struct_ref, scm_struct_set_x): Added
initializers for field_type, since EGCS so desparately wants to
play dumb
* debug.h (scm_make_gloc, scm_gloc_p, scm_make_iloc, scm_memcons,
scm_mem_to_proc, scm_proc_to_mem, scm_debug_hang): Added prototypes
when GUILE_DEBUG is defined.
* dynwind.h (scm_wind_chain): Same.
* ports.h (scm_pt_size, scm_pt_member): Same.
* print.h (scm_current_pstate): Same.
* procs.h (scm_make_cclo): Same.
1998-10-15 14:35:35 +00:00
Jim Blandy
a437d8a2a8 *** empty log message *** 1998-10-14 21:25:51 +00:00
Jim Blandy
3a17131185 * configure.in: Define SCM_SINGLES whenever a float can fit in a
long, not only when a float is the same size as a long.  This gets
us SCM_SINGLES defined on alphas.  (Thanks to Clark McGrew.)
* configure: Regenerated.
1998-10-14 21:25:17 +00:00
Jim Blandy
05f92e0f45 Handle short and long long uniform arrays properly. (Thanks to
Clark McGrew.)
* ramap.c (scm_ra_matchp, scm_array_fill_int, scm_array_index_map_x,
raeql_1): Add cases for scm_tc7_svect (short vectors) and
scm_tc7_llvect (long long vectors).
1998-10-14 21:24:44 +00:00
Jim Blandy
c02daa098d Change the way libguile and boot-9.scm are timestamped, to try to
get rid of these spurious mismatch warnings.  Now both
libguile/versiondat.h and ice-9/version.scm are generated directly
by the configuration process, rather than having version.scm
generated directly, and libguile/versiondat.h generated by the
Makefile, which is generated by configure.  It seems that
sometimes the Makefile would change, but versiondat.h depends on
Makefile.in, not Makefile, so it wouldn't get rebuilt.
* Makefile.am (versiondat.h): Target removed; this is generated
directly by the configure script now.
(BUILT_SOURCES): Remove versiondat.h.
* versiondat.h.in: New file, transformed by the configure script
into versiondat.h.
* Makefile.in: Regenerated.
1998-10-14 19:22:10 +00:00
Jim Blandy
2cb8b9ecb0 *** empty log message *** 1998-10-14 19:21:40 +00:00
Jim Blandy
0e6d926db8 * configure.in: Construct libguile/versiondat.h here; see
log entry in libguile/ChangeLog for details.
* configure: Regenerated.
1998-10-14 19:21:29 +00:00
Jim Blandy
bb2a4165c9 *** empty log message *** 1998-10-14 08:40:23 +00:00
Jim Blandy
63da7567af * calling.scm (excursion-function-syntax): Use a sequence of
set!'s, not a single multi-variable set!; we removed support for
that syntax a long time ago.  (Thanks to Shuji Narazaki.)
1998-10-14 08:39:51 +00:00
Jim Blandy
cd6c612a27 *** empty log message *** 1998-10-14 08:22:07 +00:00
Jim Blandy
c43f86c124 * configure.in: Allow tabs and whitespace between `void' and
`usleep'.  (Thanks to Harvey J. Stein.)
* configure: Regenerated.
1998-10-14 08:22:00 +00:00
Jim Blandy
731a0a688a *** empty log message *** 1998-10-14 07:32:28 +00:00
Jim Blandy
cf7c17e976 * (__scm.h, alist.c, eval.c, feature.c, gsubr.c, numbers.c,
options.c): Rename RECKLESS -> SCM_RECKLESS, CAUTIOUS ->
SCM_CAUTIOUS; this way, 1) there's only one version of each flag
to define (we used to have both RECKLESS and SCM_RECKLESS), and 2)
if we want to use them in a header file some day, we can.  (Thanks
to Michael Livshin.)
1998-10-14 07:32:13 +00:00
Jim Blandy
ae6f9e24ce *** empty log message *** 1998-10-13 23:56:29 +00:00
Jim Blandy
55c4d089d0 * stime.c (scm_get_internal_real_time): Do the arithmetic using
SCM numbers, so we won't have rollover problems; the range of a
signed long in milliseconds is about 25 days.  (Thanks to Karl
Hegbloom.)
1998-10-13 23:56:08 +00:00
Jim Blandy
eebc12c634 *** empty log message *** 1998-10-13 23:19:04 +00:00
Jim Blandy
b74f472891 * threads.h (scm_thread_usleep, scm_thread_sleep): New declarations.
* scmsigs.c (usleep): Clean up oddities declaring usleep; since
we're just using it, not redefining it, we can use a K&R style
declaration here.
(sleep): Declare this, too, if the system hasn't.
(scm_sleep, scm_usleep): Use scm_thread_sleep and
scm_uthread_sleep if they're available; otherwise, just call the
system functions.
* scmconfig.h.in: Regenerated.
1998-10-13 23:17:34 +00:00
Jim Blandy
6aa9316dea Don't redefine sleep and usleep.
* coop.c (sleep, usleep): Remove declarations; we don't use or
redefine these any more.
(scm_thread_usleep, scm_thread_sleep): New functions which do the
job of usleep and sleep in a thread-friendly way.  We can use
these in the rest of Guile.  Define versions for systems both with
and without iselect.
* coop.c (scm_thread_sleep): Make `slept' an unsigned long.
* coop.c (coop_sleephelp): Remove ANSI #ifdef hair.
1998-10-13 23:17:09 +00:00
Jim Blandy
da7532528c Don't redefine sleep/usleep.
* configure.in: Remove tests for usleep's argument type; we only
need that if we're going to replace it.
* acconfig.h (USLEEP_ARG_TYPE): Delete.  All the other SLEEP
garbage is needed just to use usleep and sleep without compiler
warnings.
* configure: Regenerated.
1998-10-13 23:16:59 +00:00
Jim Blandy
cb9728edc4 *** empty log message *** 1998-10-12 21:30:41 +00:00
Jim Blandy
d27b36ef34 *** empty log message *** 1998-10-12 21:08:56 +00:00
Jim Blandy
055e7d64d5 * threads.c: Doc fix. 1998-10-12 21:08:47 +00:00
Jim Blandy
ad1a6f1a3c The argument type of usleep varies from system to system,
as does the return type.  We really shouldn't be redefining usleep
at all, but I don't have time to clean that up before the 1.3.
release.  It's on the schedule for afterwards.  (Thanks to Julian
Satchell.)
* coop.c (usleep): Use USLEEP_ARG_TYPE in prototype and
definition.
* scmsigs.c (usleep): Use USLEEP_ARG_TYPE in prototype.
* scmconfig.h: Regenerated.
1998-10-12 21:08:38 +00:00
Jim Blandy
fc342a63d9 * configure.in (GUILE_FUNC_DECLARED): Name the cache variables
starting with guile_cv_; ac_cv_ is autoconf's namespace.
The type of the argument to usleep varies from system to system,
as does the return type.  We really shouldn't be redefining usleep
at all, but I don't have time to clean that up before the 1.3
release.  It's on the schedule for afterwards.
* configure.in: Cache results from usleep return value test.
Test for the type of the usleep argument, and cache that too.
* acconfig.h (USLEEP_ARG_TYPE): New macro.
1998-10-12 21:08:17 +00:00
Jim Blandy
dc70c99868 * configure: Regenerated. 1998-10-12 21:08:03 +00:00
Jim Blandy
7b584d092b The type of the argument to usleep varies from system to system,
as does the return type.  We really shouldn't be redefining usleep
at all, but I don't have time to clean that up before the 1.3
release.  It's on the schedule for afterwards.
* configure.in: Cache results from usleep return value test.
Test for the type of the usleep argument, and cache that too.
* acconfig.h (USLEEP_ARG_TYPE): New macro.
1998-10-12 21:07:43 +00:00