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

3667 commits

Author SHA1 Message Date
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
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
38b9c0c3aa (This change is part of the group made on 1998-07-30.)
* eval.h (scm_eval_options_interface): Add external prototype for this.
* eval.c (scm_eval_options_interface): Use prototype-style def'n.
1998-09-05 16:19:28 +00:00
Mikael Djurfeldt
a9b70caf57 *** empty log message *** 1998-08-21 08:16:08 +00:00
Mikael Djurfeldt
3243d7231c * options.c (scm_options): Bugfix: Allow empty list of options! 1998-08-21 08:15:31 +00:00
Mikael Djurfeldt
066dacf85d * eval.h, eval.c: New evaluator trap flag: SCM_TRAPS_P. 1998-08-21 08:14:37 +00:00
Mikael Djurfeldt
b6d7594844 * eval.h, eval.c: New evaluator trap flag: SCM_TRAPS_P.
* eval.c (SCM_CEVAL, SCM_APPLY): Removed resetting of trap flags.
Check SCM_TRAPS_P before trapping.
1998-08-21 08:13:55 +00:00
Mikael Djurfeldt
260b141627 * debug.c, debug.h (scm_single_step): Removed.
(scm_with_traps): New procedure.  This procedure could easily be
written in Scheme but needs to be highly optimized.
1998-08-21 08:13:36 +00:00
Jim Blandy
6dd787711d *** empty log message *** 1998-07-30 15:14:11 +00:00
Jim Blandy
15e9d186da Changes to avoid signed/unsigned comparison warnings.
* gc.c (scm_mtrigger, scm_heap_size): Make these unsigned longs.
(scm_gc_sweep): Make n and j local to the blocks they're used in,
so they can have appropriate types for each application.  Make i
signed.  Use initializers in some spots.  I'll probably pay for
all this tweaking.
(scm_must_malloc, scm_must_realloc): Use scm_sizet for size args.
(scm_must_realloc): Make nm unsigned.
(init_heap_seg): Make new_seg_index and n_new_objects signed.
(scm_init_storage): Use prototype-style definition, and make the
argument unsigned.
* gc.h (scm_heap_size, scm_mtrigger, scm_must_malloc,
scm_must_realloc, scm_init_storage): Adjust prototype accordingly.
1998-07-30 14:44:28 +00:00
Jim Blandy
6a738a2516 * filesys.c (scm_readlink): Make local vars rv and size ints, to
avoid signed/unsigned comparison warnings, and because the return
value of readlink may be -1.  Don't bother casting the third
argument to readlink.
* filesys.c (scm_dirname, scm_basename): Move these to their own
page, at the end of the file.
* filesys.h (scm_dirname, scm_basename): Add prototypes for these.
1998-07-30 14:44:09 +00:00
Jim Blandy
8ecf1f1359 * eval.h (scm_eval_options_interface): Add external prototype for this.
* eval.c (scm_eval_options_interface): Use prototype-style def'n.
* eval.c (scm_lookupcar1): Make this static.
1998-07-30 14:44:01 +00:00
Jim Blandy
d5cf0efe1f * dynl.h (scm_registered_modules, scm_clear_registered_modules):
Make these prototype declarations, not K&R-style.
1998-07-30 14:43:52 +00:00
Jim Blandy
77364130ed * chars.c (scm_tables_prehistory): Add cast, to remove signed/
unsigned comparison warning.
1998-07-30 14:27:00 +00:00
Jim Blandy
5bab3ef814 * appinit.c: File removed. It had a single function in it, empty,
whose reason for existence is explained in no documentation or
comment.  I think it's there as a default for some Tcl-style
initialization, but Tcl abandoned that approach a while ago.
* Makefile.am (libguile_la_SOURCES): Remove appinit.c.
(BUILT_SOURCES): Remove appinit.x.
* Makefile.in: Regenerated.
1998-07-30 14:26:35 +00:00
Jim Blandy
0dcbc17a4e *** empty log message *** 1998-07-29 18:14:42 +00:00
Jim Blandy
3f622d2b2e * Makefile.in: Regenerated using the last public version of
automake, not the hacked Cygnus version.
1998-07-29 18:07:06 +00:00
Jim Blandy
1f5ae2fdb8 *** empty log message *** 1998-07-29 17:20:22 +00:00
Jim Blandy
9623ba323f Remove Totoro kludge.
* Makefile.in, scmconfig.h.in: Regenerated.
* init.c, readline.c: Don't check if TOTORO is #defined.
1998-07-27 23:33:12 +00:00
Jim Blandy
e99cbcd609 *** empty log message *** 1998-07-27 01:15:05 +00:00
Jim Blandy
a0e6f509ee * Makefile.am: Adjust for new thread configuration system.
(INCLUDES): Include the value of THREAD_CPPFLAGS.
(guile_LDADD, check_ldadd): THREAD_LIBS_LOCAL has been renamed from
THREAD_LIBS.
(THREAD_LIBS): Definition deleted; automake will generate such
things automatically.
* Makefile.in: Regenerated.
1998-07-27 01:07:43 +00:00
Jim Blandy
87148d9ec4 *** empty log message *** 1998-07-23 04:49:55 +00:00
Jim Blandy
dc53f02690 Simplify smob and port marking; set the mark bit in the generic
marking code, and make marker routines only responsible for
turning up outgoing pointers.
* gc.c (scm_gc_mark): Set the mark bit on ports and smobs here,
before calling the marking function.  Don't call the marking
function if it's zero.
* markers.c (scm_mark0): Just return #f.  This function isn't
necessary at all now, but it's harmless to call it.  We'll leave
it in so other folks' code doesn't croak at link time.
(scm_markcdr): Don't call SCM_SETGC8MARK.
* async.c (mark_async): Don't call SCM_SETGC8MARK.
* dynl.c (mark_dynl_obj): Same.
* root.c (mark_root): Same.
* srcprop.c (marksrcprops): Same.
* unif.c (markra): Same.
* variable.c (scm_markvar): Same.
* ports.c (scm_markstream): Same.
(void_port_ptob): Specify zero for our marking function.
* debug.c (debugobjsmob): Same.
* dynwind.c (guardsmob): Same.
* filesys.c (dir_smob): Same.
* fluids.c (fluid_smob): Same.
* fports.c (scm_fptob, scm_pipob): Same.
* mallocs.c (mallocsmob): Same.
* regex-posix.c (regex_t_smob): Same.
* smob.c (freecell, flob, bigob): Same.
* threads.c (thread_smob, mutex_smob, condvar_smob): Same.
* throw.c (jbsmob, lazy_catch_funs): Same.
1998-07-23 04:47:56 +00:00