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

8493 commits

Author SHA1 Message Date
Jim Blandy
8b54b82bfb *** empty log message *** 1997-04-14 07:33:58 +00:00
Jim Blandy
ee2a8b9bdd * gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage.
Merge GH interface library into libguile.
* gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c,
gh_list.c, gh_predicates.c, gh_test_c, gh_test_c.c, gh_test_repl,
gh_test_repl.c: New files.
* Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c,
gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c.  Move
_scm.h to ...
(EXTRA_libguile_la_SOURCES): ... here.
(pkginclude_HEADERS): Add variable, to get gh.h installed.
(THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES,
gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD):
New variables, describing how to build the gh test programs.
* configure.in: Check for -lm, -lsocket, -lnsl; we need this to
build the test programs, and we probably should have been linking
libguile.la against them all along, to support AIX shared libs.
Add cflags for threads to CFLAGS; add libs for threads to new
variable THREAD_LIBS, used in Makefile.am.
* ChangeLog-gh: log from old `gh' subdirectory.
* Makefile.in, configure, scmconfig.h.in: Rebuilt.
1997-04-14 06:42:27 +00:00
Jim Blandy
f4d7dfb69d *** empty log message *** 1997-04-14 06:32:23 +00:00
Jim Blandy
d76e9dd9a7 *** empty log message *** 1997-04-14 04:08:51 +00:00
Jim Blandy
a10714cbc5 * acconfig.h: Undo change of Apr 9; including the definition of
PACKAGE in the guile headers conflicts with applications' own
definitions.
* scmconfig.h.in: Regenerated.
1997-04-14 04:07:15 +00:00
Jim Blandy
0705ea15b9 * guile.m4: Revert change of Mar 15, and use the new 'no-define'
argument to the AM_INIT_AUTOMAKE macro.
* lots of aclocal.m4, configure files: Regenerated.
1997-04-14 04:06:25 +00:00
Gary Houston
b9525b92bb * stime.c (scm_mktime): take an optional zone argument.
(scm_localtime): check putenv return value.
	(scm_strftime, scm_strptime): moved from posix.c.  move #include
	sequences.h too.
	stime.h, posix.h: update prototypes.
	(bdtime2c, setzone, restorezone): new static procedures.
	(scm_mktime, scm_strftime): use them.
	(scm_strftime): don't call mktime before strftime.  Use
	filltime for return value.
	(filltime): convert NULL zname to #f.
*	(scm_strptime): return a count of characters consumed, not
	the remaining string.

	* stime.c (scm_localtime): check HAVE_TM_ZONE and HAVE_TZNAME.
	(scm_mktime): likewise.
	Declare *tzname[].
	Uncomment localtime and mktime.

	* configure.in: add AC_STRUCT_TIMEZONE.
1997-04-12 20:18:12 +00:00
Jim Blandy
4c1feaa596 * filesys.c (scm_fcntl): New function from Roland McGrath.
(scm_init_filesys): New symbols for use with fcntl.
* filesys.h: Added prototype.
1997-04-12 01:17:15 +00:00
Jim Blandy
30000774de * eval.c (SCM_APPLY): Set debug apply frame argument list correctly
when PROC is receiving no arguments.
1997-04-12 01:16:49 +00:00
Jim Blandy
6956318c83 *** empty log message *** 1997-04-12 00:44:18 +00:00
Jim Blandy
e67dc2bebc * posix.c (scm_status_exit_val, scm_status_exit_val,
scm_status_term_sig, scm_status_stop_sig): Modified to work with
Ultrix versions of WIFSTOPPED, etc., which assume that their
arguments are lvalues (hmm).
1997-04-12 00:39:56 +00:00
Jim Blandy
d7b8a21a81 * filesys.c (S_ISSOCK): Define this if it's missing, but we do
have S_IFSOCK.  This is the case under Ultrix.
1997-04-12 00:39:44 +00:00
Jim Blandy
f0e2ee9787 *** empty log message *** 1997-04-11 04:56:29 +00:00
Jim Blandy
18eadcbefc * throw.c: Doc fixes; rearranged. 1997-04-11 03:54:56 +00:00
Jim Blandy
82a2622ab6 * eval.c: Doc fixes. 1997-04-11 03:54:28 +00:00
Jim Blandy
c505c88d41 *** empty log message *** 1997-04-10 22:02:58 +00:00
Jim Blandy
74229f75c0 Doc fixes; rearranged. 1997-04-10 22:02:45 +00:00
Jim Blandy
a19ab6d06f *** empty log message *** 1997-04-10 20:10:32 +00:00
Jim Blandy
d183c1b98e * putenv.c: #include "libguile/scmconfig.h", not <config.h>. 1997-04-10 20:10:17 +00:00
Jim Blandy
82cda9b375 *** empty log message *** 1997-04-10 01:24:31 +00:00
Jim Blandy
5f58a61b08 *** empty log message *** 1997-04-10 01:18:46 +00:00
Jim Blandy
9e8cb3dd6e * acconfig.h: Added entry for PACKAGE.
* scmconfig.h.in: Regenerated.
1997-04-10 01:16:17 +00:00
Jim Blandy
7ec57e82da Rebuild using newly patched automake... argh. 1997-04-10 01:14:47 +00:00
Jim Blandy
1dc9c5b075 Rebuilt using automake 1.1n. 1997-04-10 00:29:09 +00:00
Jim Blandy
58bc1a290d *** empty log message *** 1997-04-09 23:07:31 +00:00
Jim Blandy
e13d8dc0e0 Changes to work with automake-1.1n, which has better libtool support.
* Makefile.am: Use lib_LTLIBRARIES instead of lib_PROGRAMS.
Use libguile_la_LIBADD instead of libguile_la_LDADD.  (What's the
difference here?)
(libguile_la_SOURCES, modinclude_HEADERS, EXTRA_DIST): Format for
readability.
* Makefile.in: Rebuild.
1997-04-09 23:03:13 +00:00
Jim Blandy
363c8a613e *** empty log message *** 1997-04-09 23:01:00 +00:00
Jim Blandy
d064b4d837 *** empty log message *** 1997-04-09 23:00:48 +00:00
Jim Blandy
068bba9862 *** empty log message *** 1997-04-09 23:00:18 +00:00
Gary Houston
9a81afcaed fix a typo 1997-04-06 00:19:06 +00:00
Gary Houston
1bf9865d26 * stime.c (scm_init_stime): don't define ticks/sec.
(scm_gettimeofday): renamed from scm_time_plus_ticks (avoids multiple
return value problem and is still portable.)
1997-04-06 00:00:10 +00:00
Jim Blandy
5c09c7ea2d *** empty log message *** 1997-04-05 23:38:52 +00:00
Jim Blandy
a0e90145a3 * cpp_err_symbols.in: Renamed from cpp_err_symbols, to avoid
make's implicit cpp_err_symbols: cpp_err_symbols.c rule.
* cpp_sig_symbols.in: Renamed from cpp_sig_symbols.
* Makefile.am (check_errnos, check_signals, cpp_sig_symbols.c,
cpp_err_symbols.c): Corresponding changes.
* Makefile.in: Regenerated.
1997-04-05 23:35:03 +00:00
Jim Blandy
2c73448330 *** empty log message *** 1997-04-05 21:53:51 +00:00
Gary Houston
19468effd0 * posix.c (scm_putenv): don't check HAVE_PUTENV.
* Makefile.am (EXTRA_libguile_la_SOURCES): add putenv.c.
* configure.in: move putenv from AC_CHECK_FUNCS to AC_REPLACE_FUNCS.
* putenv.c: new file, from sh-utils 1.12.

* posix.c (scm_environ): use malloc in place of scm_must_malloc
since allocation isn't for Scheme objects.
(scm_putenv): copy strings before placing in the environment.

* stime.c (scm_current_time): throw an error if time returns -1,
instead of returning #f.
(scm_get_internal_real_time, scm_get_internal_real_time): use
scm_long2num for return value instead of SCM_MAKINUM.

* stime.h: prototypes updated.

* stime.c (scm_time_in_msec): apparently unused, deleted.

	* configure.in: check for gettimeofday.

	* stime.c (scm_time_plus_ticks): new procedure, an scsh interface
	which may be more usefully portable than a gettimeofday interface.

	* stime.c (filltime): recovered static procedure.
	(scm_localtime, scm_gmtime, scm_mktime, scm_tzset): recovered from
	an earlier Guile.

	* posix.h: add prototype for scm_close_pipe, remove prototypes for
	scm_open_input_pipe, scm_open_output_pipe, change scm_mknod prototype.

*	* posix.c (scm_mknod): split the mode argument into type and perms
	arguments, like the extra fields returned by stat.

	* fports.c (scm_pipob): set the close, free and print procedures.
	(scm_close_pipe): new procedure.

	* posix.c (scm_open_input_pipe, scm_open_output_pipe): deleted,
	define them in boot-9.scm
1997-04-05 21:50:31 +00:00
Jim Blandy
ec8c8a5433 * Makefile.am (EXTRA_DIST): It's cpp_err_symbols, not
cpp_err_signals.
* Makefile.in: Regenerated.
1997-04-02 22:13:11 +00:00
Gary Houston
2366f4453e fix typo 1997-03-29 21:09:59 +00:00
Gary Houston
67ec36676e * ioext.c (scm_setfileno): throw a runtime error if SET_FILE_FD_FIELD
wan't defined.  Don't include fd.h.

* Previously fd.h was regenerated whenever configure was run,
forcing a couple of files to be recompiled.

* fd.h.in: deleted, SET_FILE_FD_FIELD moved to ioext.c.
* configure.in: AC_DEFINE FD_SETTER instead of HAVE_FD_SETTER.
Check for _fileno as well as _file.
Don't output fd.h.
* ioext.c: don't fd.h.
* acconfig.h: remove duplicate HAVE_FD_SETTER and change the
other to FD_SETTER.

* Change the stratigy for getting information about errno
(and now signal number) values, e.g., ENOSYS, SIGKILL.  Instead of
generating lists of symbols during the build process, which will
not always work, include comprehensive lists in the distribution.
To help keep the lists up to date, the "check_signals" and
"check_errnos" make targets can be used.

* configure.in: don't check for a command to extract errno codes.
* Makefile.am: update file lists, remove errnos.list and errnos.c
targets, add cpp_err_symbols.c, cpp_sig_symbols.c, check_signals,
check_errnos targets.
(CLEANFILES): remove errnos.c and errnos.list, add
cpp_err_symbols_here cpp_err_symbols_diff cpp_err_symbols_new
cpp_sig_symbols_here cpp_sig_symbols_diff cpp_sig_symbols_new
* errnos.default: deleted.
* cpp_signal.c: new file.
* cpp_errno.c: renamed from errnos_get.c.
* cpp_err_symbols, cpp_sig_symbols: new files.
* cpp_cnvt.awk: renamed from errnos_cnvt_awk.
* error.c (scm_init_error): #include cpp_err_symbols instead of
errnos.c.
* posix.c (scm_init_posix): don't intern signal symbols.  #include
cpp_sig_symbols.c.
* strop.c (scm_i_index): allow the lower bound to be equal to the
length of the string, so a null string doesn't always give an error.

* posix.h: new prototypes.
* posix.c (scm_status_exit_val, scm_status_term_sig,
scm_status_stop_sig): new functions, as in scsh.  They break down
process status values as returned by waitpid.
1997-03-29 18:42:43 +00:00
Gary Houston
ef12d978bb * net_db.c (scm_gethost): don't check HAVE_GETHOSTENT, since
configure doesn't know about it.
1997-03-22 18:24:31 +00:00
Mikael Djurfeldt
78f9f47bb5 * snarf.h, backtrace.c: Name change SCM_GLOBAL --> SCM_VCELL.
* snarf.h: Added new macros SCM_GLOBAL_SYMBOL and SCM_GLOBAL_VCELL
which defines C variables with global linkage.
1997-03-21 22:53:08 +00:00
Mikael Djurfeldt
d0104d7e04 * snarf.h (SCM_PROC1): Bugfix: Use (void) rather than (...) for
zero arg subrs.
1997-03-17 05:01:13 +00:00
Mikael Djurfeldt
c75e83b76e * eval.c (safe_setjmp): Temporarily use old setjmp until someone
has time to check why this doesn't work well with continuations.
1997-03-16 16:45:21 +00:00
Jim Blandy
e500ef7019 break up if if if 1997-03-16 10:20:45 +00:00
Gary Houston
a574455a13 * posix.c (scm_uname): throw an error if uname fails instead
of returning errno.

* error.h (scm_errno, scm_perror): obsolete prototypes removed.

* error.c (err_head, scm_errno, scm_perror): obsolete procedures
removed.

* async.c (scm_ints_disabled): definition moved from error.c.
1997-03-15 18:10:35 +00:00
Mikael Djurfeldt
1d80497659 Regenerated. 1997-03-15 02:54:33 +00:00
Mikael Djurfeldt
7f52af6567 Regenerated. 1997-03-15 01:15:22 +00:00
Mikael Djurfeldt
c6433b2a0d * acconfig.h: Removed PACKAGE.
* scmconfig.h.in: Regenerated.
1997-03-15 01:08:53 +00:00
Mikael Djurfeldt
dfa84eae7b * snarf.h: g++ says it's non-portable not to specify the first
argument in a varargs declaration.  I introduced the first
argument by using preprocessor conditionals.
1997-03-14 23:06:42 +00:00
Mark Galassi
3bc61059b4 little work on the tutorial 1997-03-13 23:13:56 +00:00
Gary Houston
ae2fa5bc81 * ioext.c (scm_read_delimited_x): use RO string macros for delims.
(scm_freopen): use RO string macros for filename and modes.
(scm_duplicate_port, scm_fdopen): use RO string macros for modes.

* posix.c (scm_getgrgid): simplify conversion of name to C string.
(scm_mknod): use RO string macros for path.

* socket.c (scm_fill_sockaddr, scm_send, scm_sendto):
use SCM_ROSTRINGP, SCM_ROCHARS, SCM_ROLENGTH.

* net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_getserv):
use SCM_ROSTRINGP and SCM_ROCHARS.
1997-03-13 21:54:02 +00:00