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

2151 commits

Author SHA1 Message Date
Jim Blandy
026065b72c *** empty log message *** 1998-10-03 17:40:44 +00:00
Jim Blandy
bdca108323 * init.c: Doc fixes. 1998-10-03 17:40:28 +00:00
Jim Blandy
6b8d19d302 * init.c (invoke_main_func): Load the startup files (boot-9.scm)
from here, not from scm_compile_shell_switches (which is a pretty
dumb place to do it).
(scm_load_startup_files): New function.
(scm_ice_9_already_loaded): Variable moved to here from script.c.
* script.c (scm_compile_shell_switches): Don't load the startup
files here.
(scm_ice_9_already_loaded): Variable moved.
* init.c (scm_load_startup_files): Prototype for new function.
* gh_init.c (gh_enter): Doc fix.
1998-10-03 17:40:08 +00:00
Jim Blandy
541716d15c *** empty log message *** 1998-10-03 14:13:08 +00:00
Jim Blandy
82a76bdfcf Some anti-warning changes from Greg Harvey.
* gh_data.c (gh_scm2doubles): Initialize m, to avoid compiler
warnings when it doesn't understand our NORETURN declarations in
error.h.
* posix.c (scm_mknod): Similar.
1998-10-03 14:12:59 +00:00
Jim Blandy
f9d12ce88b *** empty log message *** 1998-10-03 14:10:29 +00:00
Jim Blandy
20752a3415 * posix.c (scm_getpwuid): If we can't find an entry, return our
own message, instead of using scm_syserror --- the getpwMUMBLE
functions don't set `errno' to anything interesting.
1998-10-03 14:10:18 +00:00
Jim Blandy
0553d3a207 *** empty log message *** 1998-10-03 13:36:09 +00:00
Jim Blandy
c31bfb8563 * configure.in: Check for a missing `sleep' declaration.
* acconfig.h (MISSING_SLEEP_DECL): Provide some text for this.
* configure: Regenerated.
1998-10-03 13:34:32 +00:00
Jim Blandy
6d71500e94 Get rid of warnings from the cooperative threading system.
* threads.h (scm_single_thread_p, scm_yield,
scm_call_with_new_thread, scm_join_thread, scm_make_mutex,
scm_lock_mutex, scm_unlock_mutex, scm_make_condition_variable,
scm_wait_condition_variable, scm_signal_condition_variable): Add
prototypes for these Scheme-visible functions.
* coop-defs.h (coop_next_runnable_thread,
coop_wait_for_runnable_thread_now, coop_wait_for_runnable_thread):
Prototypes for these here, even though they're from iselect.c.
(coop_condition_variable_wait, coop_join): Add prototypes.
* coop-threads.c (scm_threads_free_thread, scm_threads_free_mutex,
scm_threads_free_condvar): Make these smob functions static.
* coop-threads.h (coop_init): Give this a real prototype.
* coop.c: #include <unistd.h>, if we have it, for `usleep' and `sleep'.
(coop_next_runnable_thread): No need to provide prototype; it's in
coop-defs.h.
1998-10-03 13:33:53 +00:00
Jim Blandy
7f0f3eaa5f * iselect.c, threads.c: Doc fixes. 1998-10-03 13:33:24 +00:00
Jim Blandy
d30a05f7ab * scmconfig.h.in: .detarenegeR 1998-10-03 13:32:41 +00:00
Jim Blandy
235bb3fe78 *** empty log message *** 1998-10-03 09:15:11 +00:00
Jim Blandy
0f62a9b3d9 * Makefile.in: Regenerated with a patched automake, to get
dependency generation right when using EGCS.
1998-10-03 09:14:52 +00:00
Jim Blandy
7b2d545434 * inet_aton.c (inet_aton): Add prototype, to remove compiler
warning. (Thanks to Robert Pluim.)
* inet_aton.c (inet_aton): Reassure the compiler that the
arguments to the <ctype.h> macros are all unsigned characters, not
signed characters.
1998-10-03 09:12:12 +00:00
Jim Blandy
a844424977 *** empty log message *** 1998-10-03 09:10:09 +00:00
Jim Blandy
777b022a9e * configure.in: Don't use the canonical host name to decide
whether `bzero' and `usleep' have declarations --- that's going
back to the bad old days before autoconf.  Remove the call to
AC_CANONICAL_HOST and the subsequent case statement.
(GUILE_FUNC_DECLARED): New m4 macro.  Use it to check for
declarations for `bzero', `usleep', and (new!) `strptime'.
* acconfig.h: (DECLARE_BZERO, DECLARE_USLEEP): Removed.
(MISSING_BZERO_DECL, MISSING_USLEEP_DECL, MISSING_STRPTIME_DECL):
Added.  I think this naming convention is more consistent with the
rest of autoconf; names generally describes the system, not what
the package should do to accomodate the system.
* configure: Regenerated.
1998-10-03 08:01:41 +00:00
Jim Blandy
83d1c666c3 *** empty log message *** 1998-10-03 08:01:27 +00:00
Jim Blandy
bf847dab9a * readline.c: Doc fix.
(rl_cleanup_after_signal, rl_free_line_state): Make these static.
* readline.h (scm_filename_completion_function): Add prototype.
(scm_init_readline): Make this into a prototype.
1998-10-03 08:00:39 +00:00
Jim Blandy
cff278a8c7 * readline.c: Doc fix.
(rl_cleanup_after_signal, rl_free_line_state): Make these static.
* readline.h (scm_filename_completion_function): Add prototype.
(scm_init_readline): Make this into a prototype.
* readline.c (scm_filename_completion_function): Use SCM_PROC to
declare this, instead of calling scm_make_subr manually.
1998-10-03 08:00:21 +00:00
Jim Blandy
4d3bacdd7d Getting rid of more warnings...
* iselect.c: Test for MISSING_BZERO_DECL, not DECLARE_BZERO; see
today's change to ../configure.in.
* scmsigs.c: Test for MISSING_USLEEP_DECL, not DECLARE_USLEEP.
* scmconfig.h.in: Regenertaded.de.,.__
* stime.c (strptime): Declare this, #ifdef MISSING_STRPTIME_DECL.
(scm_localtime, scm_mktime): Use a const char * to manipulate the
time zone name.
1998-10-03 08:00:05 +00:00
Jim Blandy
41d368d9b7 *** empty log message *** 1998-10-02 16:04:46 +00:00
Jim Blandy
d043e0bbf9 *** empty log message *** 1998-09-30 12:32:45 +00:00
Jim Blandy
94c0b3b855 *** empty log message *** 1998-09-30 10:17:03 +00:00
Jim Blandy
8a04c1a215 Warning fixes from Maciej Stachowiak:
* backtrace.h (scm_display_application, scm_backtrace): Add
prototypes.
* debug.c (scm_m_start_stack): Make this function static.
* fluids.h (scm_fluid_p): Add prototype.
* procprop.c (scm_i_procedure_arity): Make this function static.
* regex-posix.c (scm_regexp_error_msg): Make this function static.
* regex-posix.h (scm_init_regex_posix): Use prototype, not K&R decl.
* root.h (scm_dynamic_root): Add external prototype.
* scmsigs.h (scm_usleep): Add external prototype.
* script.h (scm_init_script): Use prototype, not K&R decl.
* stacks.h (scm_stack_id): Add external prototype.
* symbols.h (scm_sysintern0_no_module_lookup): Add external prototype.
1998-09-30 10:14:59 +00:00
Mark Galassi
dc9f6d6a7d 1998-09-30 Mark Galassi <rosalia@cygnus.com>
* gh.h: took out the definitions of vset and vref, since they are
        replaced by the proper vector routines that correspond to the R4RS
        procedures.
1998-09-30 06:34:09 +00:00
Jim Blandy
61a9ba4862 *** empty log message *** 1998-09-29 19:59:22 +00:00
Jim Blandy
4a1c172e69 * stp.h (stp_create): Doc fix. 1998-09-29 19:58:10 +00:00
Jim Blandy
2fd3e6a304 * version.h (scm_libguile_config_stamp): Add prototype.
(From Maciej Stachowiak.)
1998-09-29 19:57:35 +00:00
Jim Blandy
2e07d03336 * snarf.h: Add SCM_VCELL_INIT and SCM_GLOBAL_VCELL_INIT macros;
these are analogous to SCM_VCELL and SCM_GLOBAL_VCELL but take a
third argument, a C expression that should result in a SCM value,
which is used to initialize the variable. Reimplemented
SCM_CONST_LONG in terms of SCM_VCELL_INIT.  (Thanks to Maciej
Stachowiak.)
1998-09-29 19:57:22 +00:00
Jim Blandy
9a3c114901 *** empty log message *** 1998-09-26 09:57:49 +00:00
Jim Blandy
eed6e03e7e * eval.c (scm_force): Assert that x is SCM_NIMP to fix segv when
(force 9) is tried.  (Thanks to Karl M. Hegbloom.)
1998-09-26 09:57:37 +00:00
Jim Blandy
6925bc4ed9 *** empty log message *** 1998-09-06 18:57:39 +00:00
Jim Blandy
5ca6dc3947 * print.c (scm_iprin1): Rather than having one i, and using it in
several places, declare a fresh i local to each block where it is
used, and give it a signedness appropriate to its use in each case.
(scm_iprlist): Same.
* print.c (scm_iprin1): Add cast to avoid unsigned/signed
comparison warnings.
* print.c (ENTER_NESTED_DATA): Make i an unsigned long, to avoid
signed/unsigned clashes.
1998-09-06 18:57:16 +00:00
Jim Blandy
522158de92 * posix.h (scm_tmpnam): Added prototype. 1998-09-06 18:57:07 +00:00
Jim Blandy
52591c8068 *** empty log message *** 1998-09-06 18:16:40 +00:00
Jim Blandy
2d5881d5fe * objects.h (scm_set_object_procedure_x, scm_make_class_object,
scm_make_subclass_object): Add external prototypes.
1998-09-06 18:16:08 +00:00
Jim Blandy
2bf746cc9f * numbers.c (scm_mkbig): Add cast, and note that signed/unsigned
comparison is okay here.
* numbers.c (scm_istr2int): Add cast; len is known to be positive.
* numbers.c (scm_bigcomp): Clarify logic, and avoid relying on the
(true, but confusing) fact that -1 == ((unsigned) 0 - 1).
* numbers.c (scm_adjbig): Make nsiz an scm_sizet, to avoid mixing
signed/unsigned.
1998-09-06 18:15:59 +00:00
Jim Blandy
c7023c693a * load.c (swap_port): Make this function static.
* load.c (scm_search_path): Make max_path_len and max_ext_len
unsigned, since they're compared against string sizes.
* load.c (init_build_info): Make i unsigned.
1998-09-06 18:15:49 +00:00
Jim Blandy
fec5693499 * ioext.h (scm_read_line): Add prototype. 1998-09-06 18:15:40 +00:00
Jim Blandy
a085c2b43a * hashtab.c (scm_hash_fn_get_handle, scm_hash_fn_create_handle_x,
scm_hash_fn_remove_x): Make hash bucket index local variable k
unsigned.  Use scm_ulong2num to pass it to SCM_ASSERT as
accurately as possible.
1998-09-06 18:15:27 +00:00
Jim Blandy
fd88bd7cc2 * gh_data.c (gh_set_substr): Add casts to avoid signed/unsigned
comparisons, and range checking to make sure those casts are
harmless.
1998-09-06 18:15:19 +00:00
Jim Blandy
2d2c87e1e1 *** empty log message *** 1998-09-05 16:51:17 +00:00
Jim Blandy
574f95b63d * stackchk.h (SCM_STACK_OVERFLOW_P): Change definition to avoid
signed/unsigned comparisons.
1998-09-05 16:50:40 +00:00
Jim Blandy
4e6e211987 * smob.c (scm_numsmob): Make this an int, not an scm_sizet, to
avoid signed/unsigned comparisons.
* smob.h (scm_numsmob): Change extern declaration to match.
1998-09-05 16:50:33 +00:00
Jim Blandy
a1c95c454b * ports.c (scm_numptob): Make this an int, not an scm_sizet, to
avoid signed/unsigned comparisons.
* ports.h (scm_numptob): Change extern declaration to match.
(scm_current_load_port, scm_set_port_line_x,
scm_set_port_column_x): New prototypes.
1998-09-05 16:50:24 +00:00
Jim Blandy
952bedad0c * gsubr.c (GSUBR_TEST): Don't #define this. Nobody's using the
test code, and it causes warnings.
1998-09-05 16:50:11 +00:00
Jim Blandy
8804002146 * gh.h (gh_int2scmb, gh_uniform_vector_length,
gh_uniform_vector_ref): Added prototypes.
1998-09-05 16:50:03 +00:00
Jim Blandy
11afb1d3ab * Makefile.am (libguile_la_SOURCES): Include Scheme-level
debugging support unconditionally.  That's backtrace.c, stack.c,
debug.c, and srcprop.c.
(EXTRA_libguile_la_SOURCES): Omit those from here.
* Makefile.in: Regenerated.
1998-09-05 16:49:51 +00:00
Jim Blandy
c176b92b54 * configure.in: Remove --disable-debug option. The debugging
support is pretty stable now, and it's confusing people.
* configure: Regenerated.
1998-09-05 16:48:23 +00:00