1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00
Commit graph

20154 commits

Author SHA1 Message Date
Jim Blandy
24f93c275c Move code to initialize and search %load-path from ice-9 to C
code, so we can use the load-path to find the ice-9 boot code;
this makes it easier to run Guile without installing it.  See
corresponding changes in guile/Makefile.in.
* feature.c: Move stuff concerned with the load path to load.c.
(scm_compiled_library_path): Deleted.
Don't #include libpath.h here.
* feature.h: Don't mention scm_compiled_library_path.
* load.c: #include "libpath.h" here, as well as <sys/types.h>,
<sys/stat.h>, and <unistd.h> (if present).
(R_OK): #define if the system hasn't deigned to.
(scm_loc_load_path): New variable.
(scm_init_load_path, scm_sys_search_load_path,
scm_sys_try_load_path): New functions.
(scm_init_load): Initialize scm_loc_load_path to point to the
value cell of the Scheme %load-path variable.
* load.h: Add declarations for scm_sys_search_load_path,
scm_sys_try_load_path.
* init.c: Call scm_init_load_path.
* Makefile.in (feature.o, load.o): Dependencies updated.
1996-09-05 16:51:12 +00:00
Jim Blandy
ab1680d223 Move code to initialize and search %load-path from ice-9 to C
code, so we can use the load-path to find the ice-9 boot code;
this makes it easier to run Guile without installing it.  See
corresponding changes in guile/Makefile.in.
* feature.c: Move stuff concerned with the load path to load.c.
(scm_compiled_library_path): Deleted.
Don't #include libpath.h here.
* feature.h: Don't mention scm_compiled_library_path.
* load.c: #include "libpath.h" here, as well as <sys/types.h>,
<sys/stat.h>, and <unistd.h> (if present).
(R_OK): #define if the system hasn't deigned to.
(scm_loc_load_path): New variable.
(scm_init_load_path, scm_sys_search_load_path,
scm_sys_try_load_path): New functions.
(scm_init_load): Initialize scm_loc_load_path to point to the
value cell of the Scheme %load-path variable.
* load.h: Add declarations for scm_sys_search_load_path,
scm_sys_try_load_path.
* Makefile.in (feature.o, load.o): Dependencies updated.
1996-09-05 16:50:04 +00:00
Jim Blandy
f072db0c41 * feature.c (scm_loc_features): Make this static.
Move code to initialize and search %load-path from ice-9 to C
code, so we can use the load-path to find the ice-9 boot code;
this makes it easier to run Guile without installing it.  See
corresponding changes in guile/Makefile.in.
* feature.c: Move stuff concerned with the load path to load.c.
(scm_compiled_library_path): Deleted.
Don't #include libpath.h here.
* feature.h: Don't mention scm_compiled_library_path.
* load.c: #include "libpath.h" here, as well as <sys/types.h>,
<sys/stat.h>, and <unistd.h> (if present).
(R_OK): #define if the system hasn't deigned to.
(scm_loc_load_path): New variable.
(scm_init_load_path, scm_sys_search_load_path,
scm_sys_try_load_path): New functions.
(scm_init_load): Initialize scm_loc_load_path to point to the
value cell of the Scheme %load-path variable.
* load.h: Add declarations for scm_sys_search_load_path,
scm_sys_try_load_path.
* Makefile.in (feature.o, load.o): Dependencies updated.
1996-09-05 16:49:47 +00:00
Jim Blandy
a0f52599f3 * Makefile.in (libpath.h): Omit trailing slash from path. We
shouldn't require it of users, so why put it here?

Move code to initialize and search %load-path from ice-9 to C
code, so we can use the load-path to find the ice-9 boot code;
this makes it easier to run Guile without installing it.  See
corresponding changes in guile/Makefile.in.
* feature.c: Move stuff concerned with the load path to load.c.
(scm_compiled_library_path): Deleted.
Don't #include libpath.h here.
* feature.h: Don't mention scm_compiled_library_path.
* load.c: #include "libpath.h" here, as well as <sys/types.h>,
<sys/stat.h>, and <unistd.h> (if present).
(R_OK): #define if the system hasn't deigned to.
(scm_loc_load_path): New variable.
(scm_init_load_path, scm_sys_search_load_path,
scm_sys_try_load_path): New functions.
(scm_init_load): Initialize scm_loc_load_path to point to the
value cell of the Scheme %load-path variable.
* load.h: Add declarations for scm_sys_search_load_path,
scm_sys_try_load_path.
* Makefile.in (feature.o, load.o): Dependencies updated.
1996-09-05 16:49:23 +00:00
Jim Blandy
3cab839236 * boot-9.scm: %load-path is initialized in C code now.
(implementation-vicinity, parse-path): Deleted, along with code to
initialize %load-path.

* boot-9.scm (in-vicinity): If the vicinity doesn't end with a
"/", use one to separate it from the file.
1996-09-05 16:33:42 +00:00
Jim Blandy
1325feea48 Describe gtcltk-lib. 1996-09-05 14:57:24 +00:00
Mikael Djurfeldt
bb82c5ffb5 *** empty log message *** 1996-09-05 00:00:41 +00:00
Mikael Djurfeldt
f7c66ee8b3 * Makefile.in: Added gdb_interface.h, gdbint.[hc].
Added -I.. to INCLUDE_CFLAGS (otherwise the include files won't be
found if object files and source are kept separate).
1996-09-05 00:00:04 +00:00
Mikael Djurfeldt
2e11a5778a * gc.c (scm_cellp): New function: C predicate to determine if an
SCM value can be regarded as a pointer to a cell on the heap.
1996-09-04 23:59:46 +00:00
Mikael Djurfeldt
7f907b02be * gc.h: Added declaration of scm_cellp. 1996-09-04 23:59:35 +00:00
Mikael Djurfeldt
504388eb86 * gdb_interface.h: New file: The GDB interface header from the GDB
distribution.
1996-09-04 23:59:26 +00:00
Mikael Djurfeldt
4907ff5a5c * gdbint.c: New file: GDB interface. 1996-09-04 23:59:11 +00:00
Mikael Djurfeldt
0ea7e48032 * gdbint.h: New file: GDB interface. 1996-09-04 23:58:56 +00:00
Mikael Djurfeldt
68cd9c7181 * init.c (scm_boot_guile): Added scm_init_gdbint. 1996-09-04 23:58:40 +00:00
Mikael Djurfeldt
3a5aa67b54 * libguile.h: Added #include <libguile/gdbint.h>. 1996-09-04 23:58:27 +00:00
Jim Blandy
d881a38f5f * feature.h, feature.c: Use PROTO macro, instead of #if __STDC__. 1996-09-04 19:33:49 +00:00
Jim Blandy
7444090349 . 1996-09-04 07:07:43 +00:00
Jim Blandy
8da0ab70f8 Rebuilt using autoconf. 1996-09-04 06:49:52 +00:00
Jim Blandy
d35bbe1aeb *** empty log message *** 1996-09-04 06:34:50 +00:00
Jim Blandy
d909851682 * configure.in: Don't substitute the values of TCL_SRC_DIR and
TK_SRC_DIR; they're not relevant any more.

* Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
* configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
1996-09-04 06:34:23 +00:00
Jim Blandy
398609a5a8 * posix.c: Doc fixes. 1996-09-04 06:34:02 +00:00
Jim Blandy
1c9610334e * Makefile.in (CC): Don't list -Wall here; it's a GCC-specific flag.
* configure.in: Instead, put it in CFLAGS here, iff we're using GCC.
1996-09-04 06:33:08 +00:00
Jim Blandy
818a980daf *** empty log message *** 1996-09-04 06:24:25 +00:00
Jim Blandy
cd4f61de2f Don't install the unwashed masses of Guile header files in the
main #include path; put most of them in a subdirectory called
'libguile'.  This avoids naming conflicts between Guile header
files and system header files (of which there were a few).
* Makefile.in (pkgincludedir): Deleted.
(innerincludedir): New variable; this and $(includedir) are enough.
(INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
(installed_h_files): Divide this up.  Now this variable lists
those header files which should go into $(includedir) (i.e. appear
directly in the #include path), and ...
(inner_h_files): ... this new variable says which files appear in
a subdirectory, and are referred to as <libguile/mumble.h>.
(h_files): List them both.
(install): Create innerincludedir, not pkgincludedir.  Put
the installed_h_files and inner_h_files in their proper places.
(uninstall): Corresponding changes.
* alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
vports.h, weaks.h: Find __scm.h in its new location.
* __scm.h: Find scmconfig.h and tags.h in their new locations
(they're both "inner" files).
1996-09-04 06:21:08 +00:00
Jim Blandy
60704a735b * Makefile.in (ancillary): List aclocal.m4, for 'make dist'.
* Makefile.in (ALL_CFLAGS): Don't mention CFLAGS here; it's
implicit in the .c.o rule.
(.c.x): Don't mention ALL_CFLAGS here; its value is included in
$(CC) already.

Put the library path in a header file, instead of passing it on
the command line in every compilation.
* Makefile.in (libpath.h): New target.
(feature.o): Depend on libpath.h.
(clean): Delete libpath.h.
(ALL_CFLAGS): Don't use -DLIBRARY_PATH here.  Instead ...
* feature.c: ... #include "libpath.h" here.
* .cvsignore: Ignore libpath.h.

Don't install the unwashed masses of Guile header files in the
main #include path; put most of them in a subdirectory called
'libguile'.  This avoids naming conflicts between Guile header
files and system header files (of which there were a few).
* Makefile.in (pkgincludedir): Deleted.
(innerincludedir): New variable; this and $(includedir) are enough.
(INCLUDE_CFLAGS): Search for headers in "-I$(srcdir)/..".
(installed_h_files): Divide this up.  Now this variable lists
those header files which should go into $(includedir) (i.e. appear
directly in the #include path), and ...
(inner_h_files): ... this new variable says which files appear in
a subdirectory, and are referred to as <libguile/mumble.h>.
(h_files): List them both.
(install): Create innerincludedir, not pkgincludedir.  Put
the installed_h_files and inner_h_files in their proper places.
(uninstall): Corresponding changes.
* alist.h, append.h, arbiters.h, async.h, boolean.h, chars.h,
continuations.h, debug.h, dynwind.h, error.h, eval.h, fdsocket.h,
feature.h, fports.h, gc.h, genio.h, gsubr.h, hash.h, init.h,
ioext.h, kw.h, libguile.h, list.h, markers.h, marksweep.h,
mbstrings.h, numbers.h, options.h, pairs.h, ports.h, posix.h,
print.h, procprop.h, procs.h, ramap.h, read.h, root.h,
sequences.h, smob.h, socket.h, srcprop.h, stackchk.h, stime.h,
strings.h, strop.h, strorder.h, strports.h, struct.h, symbols.h,
tag.h, throw.h, unif.h, variable.h, vectors.h, version.h,
vports.h, weaks.h: Find __scm.h in its new location.
* __scm.h: Find scmconfig.h and tags.h in their new locations
(they're both "inner" files).
1996-09-04 06:16:37 +00:00
Jim Blandy
78bbef0de7 Put the library path in a header file, instead of passing it on
the command line in every compilation.
* Makefile.in (libpath.h): New target.
(feature.o): Depend on libpath.h.
(clean): Delete libpath.h.
(ALL_CFLAGS): Don't use -DLIBRARY_PATH here.  Instead ...
* feature.c: ... #include "libpath.h" here.
* .cvsignore: Ignore libpath.h.
1996-09-04 06:16:00 +00:00
Jim Blandy
e2cac61bd5 Put the library path in a header file, instead of passing it on
the command line in every compilation.
* Makefile.in (libpath.h): New target.
(features.o): Depend on libpath.h.
(clean): Delete libpath.h.
(ALL_CFLAGS): Don't use -DLIBRARY_PATH here.  Instead ...
* features.c: ... #include "libpath.h" here.
* .cvsignore: Ignore libpath.h.
1996-09-04 06:15:25 +00:00
Jim Blandy
228ada6301 *** empty log message *** 1996-09-03 05:09:24 +00:00
Jim Blandy
ddc2af8608 * Makefile.in (TAGS): Produce a single tags file for all of Guile. 1996-09-03 05:07:54 +00:00
Jim Blandy
9e6758ee8c *** empty log message *** 1996-09-03 04:49:00 +00:00
Jim Blandy
2420229da7 On NextStep, <utime.h> doesn't define struct utime, unless we
#define _POSIX_SOURCE before #including it.
* aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
* acconfig.h: New comment text for above CPP symbol.
* configure.in: Call it.
* posix.c: #define _POSIX_SOURCE if it seems necessary.
1996-09-03 04:48:42 +00:00
Jim Blandy
5bc433f5fd * socket.c: Don't include a prototype for inet_aton; just use a
K&R style declaration, to avoid warnings but minimize the chance
of conflicts with the system.
1996-09-03 04:44:48 +00:00
Jim Blandy
bab0f4e553 On NextStep, <utime.h> doesn't define struct utime, unless we
#define _POSIX_SOURCE before #including it.
* aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
* acconfig.h: New comment text for above CPP symbol.
* configure.in: Call it.
* posix.c: #define _POSIX_SOURCE if it seems necessary.

* configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
in the list.
* posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
testing for __EMX__.

* posix.c: #include <libc.h>, if it exists.

* posix.c: Cast the return result to GETGROUPS_T, not gid_t; we
don't even know if the latter exists.

* posix.c (s_sys_setpgid, s_sys_setsid, s_sys_ctermid,
s_sys_tcgetpgrp, s_sys_tcsetpgrp): Renamed from s_setpgid,
s_setsid, s_ctermid, s_tcgetpgrp, s_tcsetpgrp, for consistency.

* posix.c (R_OK, W_OK, X_OK, F_OK): #define these if the system's
header files don't.
(scm_init_posix): Use them when initializing the Scheme constants
of the same name.
1996-09-03 04:43:15 +00:00
Jim Blandy
2170fce3df On NextStep, <utime.h> doesn't define struct utime, unless we
#define _POSIX_SOURCE before #including it.
* aclocal.m4 (GUILE_STRUCT_UTIMBUF): New test.
* acconfig.h: New comment text for above CPP symbol.
* configure.in: Call it.
* posix.c: #define _POSIX_SOURCE if it seems necessary.

* configure.in (AC_CHECK_HEADERS): Include sys/utime.h and utime.h
in the list.
* posix.c: Check HAVE_SYS_UTIME_H and HAVE_UTIME_H, instead of
testing for __EMX__.
1996-09-03 04:42:59 +00:00
Jim Blandy
087d2a6f98 *** empty log message *** 1996-09-03 04:41:38 +00:00
Jim Blandy
3eee6dad76 . 1996-08-30 21:27:24 +00:00
Jim Blandy
e4ef46d43c *** empty log message *** 1996-08-30 21:15:31 +00:00
Jim Blandy
a2086f6fcd * Makefile.in (libdir, includedir, bindir): Use the
autoconf-supplied values, instead of deriving them ourselves.
(pkgincludedir, datadir, pkgdatadir): New variables.
(install, uninstall): Put the header files in a special
subdirectory, not in the main search path.

* Makefile.in (IMPLPATH): Deleted; never used.

* Makefile.in (TCL_SRC_DIR, TK_SRC_DIR): Deleted; we don't depend
on the Tcl/Tk source any more.
(INCLUDE_CFLAGS): Remove references to the above.

* Makefile.in (version.o): Corrected dependencies.
1996-08-30 21:12:30 +00:00
Jim Blandy
02ceadb86c * boot-9.scm (%load-path): Add the site directory.
Add the directory named after the version number.
Prepend the version number to the other directories in the path.
Simplify by mapping the common prefix onto each item.
* Makefile.in (datadir, pkgdatadir, pkgverdatadir, subpkgdatadir,
sitedatadir): New definitions.
(libparent, libdir, install_path): Replaced by above.
(install): Create the above directories.
Put the source files into subpkgdatadir.
(uninstall): Remove the above directories.
1996-08-30 21:09:23 +00:00
Jim Blandy
e9b367a54b *** empty log message *** 1996-08-30 04:35:06 +00:00
Jim Blandy
9d7e1edf20 * libguile.h: #include "version.h"
* init.c (scm_boot_guile): Call scm_init_version.
* gscm.c (gscm_run_scm): Call scm_init_version.

* configure.in (GUILE_MAJOR_VERSION, GUILE_MINOR_VERSION,
GUILE_VERSION): AC_DEFINE these.
(acconfig.h): #undef the above symbols.

* Makefile.in (libobjs): Add version.o.
(installed_h_files): Add version.h.
(c_files): Add version.c.
(gen_c_files): Add version.x.
(version.o): New rule.
(alist.o, append.o, appinit.o, arbiters.o, async.o, boolean.o,
chars.o, continuations.o, dynwind.o, eq.o, error.o, eval.o,
fdsocket.o, feature.o, files.o, filesys.o, fports.o, gc.o,
genio.o, gsubr.o, hash.o, hashtab.o, init.o, kw.o, list.o, load.o,
mallocs.o, markers.o, marksweep.o, mbstrings.o, numbers.o,
objprop.o, pairs.o, ports.o, posix.o, print.o, procprop.o,
procs.o, ramap.o, read.o, root.o, scmsigs.o, sequences.o,
simpos.o, smob.o, socket.o, stackchk.o, stime.o, strings.o,
strop.o, strorder.o, strports.o, struct.o, symbols.o, tag.o,
throw.o, unif.o, variable.o, vectors.o, version.o, vports.o,
weaks.o): Add version.h to dependency lists.
(markers.o): Remove duplicate rule.

* version.h: New file.

* version.c: New file.
1996-08-30 04:34:43 +00:00
Jim Blandy
a585a27d24 *** empty log message *** 1996-08-30 03:36:49 +00:00
Jim Blandy
566011b96d * symbols.c (scm_strhash): scm_downcase is now a function, not an
array; use it appropriately.  Since GCC is quite happy to
subscript functions, it never warned us about this; we should use
-Wpointer-arith in the future.  I guess we never tested
case-insensitivity.
1996-08-30 03:36:29 +00:00
Jim Blandy
866679103b * socket.c: Doc and copyright fixes. 1996-08-30 03:35:46 +00:00
Jim Blandy
00312aa376 *** empty log message *** 1996-08-30 03:13:07 +00:00
Jim Blandy
fa6ffa2f29 Don't use the PLUGIN system to gather information for the
Makefile's distribution and installation targets; just put it all
in the Makefile directly.
* PLUGIN/this.configure (scm_files, aux_files): Remove sections
for these.
* configure.in: Remove code that gets and substitutes scm_files and
aux_files.
* Makefile.in (scm_files, aux_files): Write out the list of files
here, where people expect to find them.
1996-08-30 03:12:46 +00:00
Mikael Djurfeldt
1f3f68bffe *** empty log message *** 1996-08-24 03:31:29 +00:00
Mikael Djurfeldt
e090924c2e * debug.c: Fixed and improved gdb support. 1996-08-24 03:30:52 +00:00
Mikael Djurfeldt
23858ad18b * stime.c: Added declaration of ftime. (This is missing in
Solaris 2 headers.)
1996-08-23 16:18:50 +00:00
Mikael Djurfeldt
82ddea4e8a * socket.c: Added declaration of inet_aton to avoid compiler
warning.  (Hope this solution is correct.)
1996-08-23 16:18:38 +00:00