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

9141 commits

Author SHA1 Message Date
Jim Blandy
d68fee4833 Utterly needless cleanups to hopelessly messy code.
* ports.c: Doc fixes.
(scm_fflush): Moved to ...
* genio.c (scm_fflush): ... here, amongst all the other port
method invocation functions.
* genio.h, ports.h: The prototype moves too.
1998-10-05 21:04:15 +00:00
Jim Blandy
8b49142f60 *** empty log message *** 1998-10-04 16:44:53 +00:00
Jim Blandy
a88a4c8a6f * backtrace.c (display_error_body): The current frame does not
always have a parent frame; consider a function called directly
from the MAIN_FUNC passed to scm_boot_guile.  (Thanks to Maciej
Stachowiak.)
1998-10-04 16:44:34 +00:00
Jim Blandy
533149475d *** empty log message *** 1998-10-04 12:59:56 +00:00
Jim Blandy
f122e56eda * alloca.c (alloca): Undo yesterday's changes, and simply call
malloc directly for storage, and abort if we don't get what we
want.  The situation is much simpler --- just call malloc.  Emacs
has bizarre/evil requirements (signal handlers might malloc unless
you set this global flag, so you have to set the flag around all
calls to malloc) which we are certainly not going to conform to,
so we can do the simple and obvious thing.
1998-10-04 12:59:41 +00:00
Jim Blandy
9086fa7771 * coop.c (coop_condition_variable_wait): Make this function
static.  It's only useful internally --- you should never just
wait on a condition variable.
* coop-defs.h (coop_condition_variable_wait): Delete prototype.
1998-10-04 12:10:11 +00:00
Jim Blandy
7265de7033 *** empty log message *** 1998-10-03 20:08:58 +00:00
Jim Blandy
f69575032d * unif.c (scm_array_set_x): Accept any kind of number as an
element for a uniform vector of doubles.  This is more consistent
with Scheme's view of numbers.  (Thanks to Miroslav Silovic.)
1998-10-03 20:08:45 +00:00
Jim Blandy
a9fe62cba3 *** empty log message *** 1998-10-03 19:51:24 +00:00
Jim Blandy
ce6ed4bae6 * alloca.c: Use scm_must_malloc to obtain storage. Hopefully this
works; I can't conveniently test it myself.  (Thanks to Dvid
Tillman for the bug report.)
1998-10-03 19:51:05 +00:00
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
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
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
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
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