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

3053 commits

Author SHA1 Message Date
Marius Vollmer
253081cf6a *** empty log message *** 2001-04-24 23:51:05 +00:00
Marius Vollmer
55000e5f40 * modules.c (scm_module_type): New.
(scm_post_boot_init_modules): Initialize from Scheme value.
(the_module, scm_current_module, scm_init_modules): the_module is
now a C only fluid.
(scm_current_module): Export to Scheme.
(scm_set_current_module): Do not call out to Scheme, do all the
work in C.  Export procedure to Scheme.  Only accept modules, `#f'
is no longer valid as the current module.  Only set
scm_top_level_lookup_closure_var and scm_system_transformer when
they are not deprecated.
(scm_module_transformer, scm_current_module_transformer): New.

* modules.h (scm_module_index_transformer, SCM_MODULE_TRANSFORMER,
scm_current_module_transformer, scm_module_transformer): New.
2001-04-24 23:40:18 +00:00
Marius Vollmer
f2c4aa2a16 * eval.h, eval.c (scm_system_transformer): Deprecated by moving it
into the conditionally compiled sections.
* eval.c (scm_primitive_eval_x, scm_primitive_eval): Use
scm_current_module_transformer instead of scm_system_transformer.
* init.c (start_stack): Move initialization of
scm_system_transformer to the deprecated section.
2001-04-24 23:31:38 +00:00
Marius Vollmer
07de6c4737 * gh_data.c: Removed FIXME comment about gh_lookup returning
SCM_UNDEFINED.  That's the right thing to do.
2001-04-24 23:28:36 +00:00
Marius Vollmer
bcdab802c9 * eval.h, eval.c (scm_system_transformer): Deprecated by moving it
into the conditionally compiled sections.
* eval.c (scm_primitive_eval_x, scm_primitive_eval): Use
scm_current_module_transformer instead of scm_system_transformer.
2001-04-24 23:27:13 +00:00
Neil Jerram
1f7f9ed41d * Correct docstring for `throw'. 2001-04-22 22:16:07 +00:00
Gary Houston
eefae53898 * socket.c: attempted to improve the docstrings slightly. 2001-04-22 19:52:41 +00:00
Gary Houston
66c73b7654 * net_db.c: remove bogus "close" declaration.
(inet_aton declaration, scm_inet_aton, scm_inet_ntoa,
	scm_inet_netof, scm_lnaof, scm_inet_makeaddr, INADDR_ANY etc.):
	moved to socket.c.
	* net_db.h: declarations moved too.

	* socket.c (scm_htonl, scm_ntohl): use uint32_t instead of unsigned
	long.
	(ipv6_net_to_num, ipv6_num_to_net): new static procedures.
	(VALIDATE_INET6): new macro.
	(scm_inet_pton, scm_inet_ntop): new procedures, implementing
	inet-pton and inet-ntop.
	(scm_fill_sockaddr): use VALIDATE_INET6 and ipv6_num_to_net.
	(scm_addr_vector): use ipv6_net_to_num.
2001-04-22 16:05:21 +00:00
Dirk Herrmann
7a7f7c5314 * Made creation of new smob types thread safe.
* Minor cleanups to smob usage.
2001-04-21 21:50:08 +00:00
Gary Houston
e1368a8d44 * socket.c (FLIP_NET_HOST_128): new macro.
(scm_fill_sockaddr): use new macro.
	(scm_addr_vector): completed IPv6 address support.  added const
	to the address parameter.
2001-04-21 19:10:15 +00:00
Gary Houston
5a525b8441 * socket.c (scm_fill_sockaddr): call htons for sin6_port.
Don't assign sin6_scope_id in structure unless HAVE_SIN6_SCOPE_ID
	is defined.
	(scm_addr_vector): use a switch instead of multiple if statements.
	Add support for IPv6 (incomplete) .
	MAX_ADDR_SIZE: increase to size of struct sockaddr_in if needed.
2001-04-20 19:22:47 +00:00
Dirk Herrmann
1a55163887 * Removed an application of SCM_C[AD]R to non pairs. 2001-04-20 07:55:19 +00:00
Mikael Djurfeldt
a9d861e3b2 * unif.h (SCM_ARRAY_CONTIGUOUS): Reintroduced as deprecated.
* RELEASE: Added deprecated macro SCM_ARRAY_CONTIGUOUS
2001-04-19 22:10:29 +00:00
Mikael Djurfeldt
c07b3fefa5 * __scm.h (SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n): Inserted required
parentheses in order to get the correct associativity.
2001-04-19 21:10:52 +00:00
Dirk Herrmann
af7546ebe2 * Allow to convert an array of bytes to a list. Thanks to Masao Uebayashi. 2001-04-19 16:27:01 +00:00
Dirk Herrmann
4daecfeecc * Some simplification, basically a postscriptum to the previous patch. 2001-04-19 15:20:27 +00:00
Dirk Herrmann
726d810a75 * Fixed scm_thunk_p's results when applied to closures.
* Extracted macro printing code from print.c to macros.c.
* Minor cleanups.
2001-04-19 14:46:01 +00:00
Dirk Herrmann
e038c04203 * Eliminate some further applications of SCM_C[AD]R to non pair cells. 2001-04-19 09:38:37 +00:00
Gary Houston
3453619bd3 * some initial support for IPv6:
* socket.c (scm_fill_sockaddr): improve the argument validation.
	don't allocate memory until all args are checked.  instead of
	unconditional memset of soka, try setting sin_len to 0 if
	SIN_LEN is defined.  add support for AF_INET6.  define FUNC_NAME.
	(scm_socket, scm_connect): extend docstrings for IPv6.
	(scm_init_socket): intern AF_INET6 and PF_INET6.
2001-04-17 23:03:07 +00:00
Dirk Herrmann
216eedfcae * Incorporated fixes to interrupt deferring/allowing from Niibe.
* Added SCM_DEBUG_INTERRUPTS as a debugging option.
2001-04-17 09:15:39 +00:00
Marius Vollmer
ac16426b15 Removed out-of-date comment. 2001-04-17 00:43:18 +00:00
Keisuke Nishida
f22ed5a028 Use memset instead of bzero. 2001-04-12 01:40:21 +00:00
Mikael Djurfeldt
a087ba812e * init.c, goops.c, goops.h: Reverted change of 2001-03-29. (The
goops module should be registered in order to work for an
application which uses libguile statically linked.)
2001-04-11 02:12:35 +00:00
Mikael Djurfeldt
508ded1cdb * init.c, goops.c: Reverted change of 2001-03-29. (The goops
module should be registered in order to work for an application
which uses libguile statically linked.)
2001-04-11 02:09:35 +00:00
Dirk Herrmann
e4b265d817 * Avoid redundant casting of argument numbers to char* and vice versa. 2001-04-10 07:57:05 +00:00
Neil Jerram
40f83c3e1b * Clarify docstring for scm_make_shared_substring. 2001-04-09 21:46:44 +00:00
Neil Jerram
89d04205b4 * Clean up doc and docstring for shared substrings and read only strings. 2001-04-09 21:44:06 +00:00
Martin Grabmüller
4d66be5456 * hooks.c (scm_make_hook, scm_make_hook_with_name),
(scm_hook_p, scm_hook_empty_p, scm_run_hook): Docstring
	improvements.
2001-04-09 16:07:15 +00:00
Martin Grabmüller
1e6808ea20 Correct, update, improve and clean up a lot of docstrings in order to make
the documentation much more consistent.
2001-04-03 13:19:05 +00:00
Dirk Herrmann
9a6976cd27 * Re-introduce a cheap sanity test for non debug mode. 2001-03-31 22:55:27 +00:00
Michael Livshin
463b2219df * backtrace.c (display_backtrace_body): since the `print_state'
variable is not used (instead its data field is used directly as
`pstate'), protect it from the hungry compiler optimizations.
thanks to Bill Schottstaedt for the report.
2001-03-31 21:19:50 +00:00
Dirk Herrmann
6104519023 * Made SCM_DEBUG_CELL_ACCESSES working again. 2001-03-30 17:01:28 +00:00
Dirk Herrmann
85d6df6aa3 * Ehrm... The Changelog entry for the last submission... 2001-03-30 15:08:22 +00:00
Dirk Herrmann
22a52da14d * Replaced a lot of calls to SCM_C[AD]R with more appropriate macros.
* Minor cleanups to hashtable implementation.
* Minor code beautifications.
2001-03-30 15:03:23 +00:00
Keisuke Nishida
1b27e91a9b * goops.c, goops.h (scm_init_oop_goops_goopscore_module): Deprecated.
* init.c (scm_init_guile_1): Don't init goopscore module.
2001-03-30 02:50:38 +00:00
Marius Vollmer
16c634ec15 *** empty log message *** 2001-03-29 22:38:16 +00:00
Marius Vollmer
90cd76d9d8 * eval.c (SCM_APPLY): Check that arg1 is bound for scm_tc7_cxr. 2001-03-29 22:38:00 +00:00
Martin Grabmüller
91344cebe0 * strop.c (scm_string_to_list): Fixed docstring markup.
(scm_string_upcase_x, scm_string_upcase, scm_string_downcase_x),
	(scm_string_downcase, scm_string_capitalize_x),
	(scm_string_capitalize): Rewrote and corrected docstrings.
	(scm_string_ci_to_symbol): Made docstring more explicit.
2001-03-27 15:40:18 +00:00
Marius Vollmer
0757681299 *** empty log message *** 2001-03-26 22:43:50 +00:00
Marius Vollmer
752af22794 * values.h (scm_values_vtable, SCM_VALUESP): Moved here so that
eval.c can use it.
(scm_call_with_values): Removed.
* values.c (values_vtable, scm_values_vtable): Added "scm_" prefix
so that it can be exported.
(scm_call_with_values): Removed.
2001-03-26 22:43:23 +00:00
Marius Vollmer
a513ead308 * tags.h (SCM_IM_CALL_WITH_VALUES): New isym.
* eval.c: Include "libguile/values.h"
(scm_m_at_call_with_values, scm_sym_at_call_with_values):
New.
(unmemocopy, scm_ceval, scm_deval): Handle new isym.
* eval.h (scm_sym_at_call_with_values, scm_m_at_call_with_values):
New delcarations to support above change.

* eval.c (scm_primitive_eval_x, scm_primitive_eval): Fix syntax
errors with last change.

* eval.c (scm_primitive_eval_x, scm_primitive_eval, scm_i_eval_x,
scm_i_eval): Moved the application of the system transformer from
scm_i_eval to scm_primitive_eval.
2001-03-26 22:39:35 +00:00
Marius Vollmer
baeda60023 * tags.h (SCM_IM_CALL_WITH_VALUES): New isym.
* eval.c (scm_m_at_call_with_values, scm_sym_at_call_with_values):
New.
(unmemocopy, scm_ceval, scm_deval): Handle new isym.
* eval.h (scm_sym_at_call_with_values, scm_m_at_call_with_values):
New delcarations to support above change.
2001-03-26 22:36:56 +00:00
Neil Jerram
a6be01a45e * Minor docstring updates. 2001-03-23 17:24:28 +00:00
Neil Jerram
a17bb5fdc2 * Fix docstring typos. 2001-03-23 16:14:47 +00:00
Dirk Herrmann
be54b15d85 * Replace function scm_makstr with new function scm_allocate_string. 2001-03-22 12:52:03 +00:00
Gary Houston
6d163216bd * posix.c (scm_tmpnam): check that return value from tmpnam is not
NULL.  rewrote the docstring.
	(scm_mkstemp): new procedure implementing "mkstemp!".
	* posix.h: declare scm_mkstemp.

	* net_db.c: declare h_errno if configure didn't define HAVE_H_ERRNO.
	normally it would be found in netdb.h.
2001-03-18 20:29:58 +00:00
Gary Houston
789ecc0581 * net_db.c: define h_errno if configure didn't define HAVE_H_ERRNO.
normally it would be found in netdb.h.
2001-03-18 11:54:25 +00:00
Gary Houston
e9e225e5ac * configure.in: don't append threads.doc to EXTRA_DOT_DOC_FILES,
since EXTRA_DOT_DOC_FILES is redefined later.  define
	EXTRA_DOT_X_FILES and hand it to AC_SUBST.
	* sort.c (scm_sort): move sortvec variable to avoid a compiler
	warning	when HAVE_ARRAYS is not defined.  move len too.
	* Makefile.am (DOT_X_FILES): remove net_db.x, posix.x, socket.x.
	(EXTRA_DOT_X_FILES): let configure set the value.
	(DOT_DOC_FILES): remove net_db.doc, posix.doc, socket.doc.
2001-03-17 21:20:20 +00:00
Gary Houston
c6c79933b5 * gc.c (scm_must_malloc): changed the comment explaining when
scm_must variants of malloc/free etc., should be used, based on
	explanation from Dirk Herrmann.
	* fports.c (scm_fport_buffer_add): use FUNC_NAME instead of a local
	string with procedure name.  use scm_must_malloc instead of malloc.
	(scm_setvbuf, scm_fdes_to_port, fport_close): use scm_must variants
	of malloc/free.
	* ports.c (scm_add_to_port_table, scm_remove_from_port_table,
	scm_ungetc): use scm_must variants of malloc/realloc/free.
	(scm_add_to_port_table, scm_ungetc): define FUNC_NAME.
2001-03-17 16:59:48 +00:00
Dirk Herrmann
b3fcac341b * __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,
SCM_WTA_DISPATCH_2, SCM_WTA_DISPATCH_n):  Don't call scm_wta, call
scm_wrong_type_arg instead.

(SCM_WNA):  Deprecated.

* error.[ch] (scm_wta):  Deprecated.

* numbers.c (s_i_log):  Minor comment fix.

* read.c (scm_lreadr), unif.c (scm_aind, scm_shap2ra,
scm_make_shared_array, scm_transpose_array, scm_enclose_array,
scm_array_in_bounds_p): Don't use SCM_ASSERT to check for
wrong-num-args or misc errors.

* unif.c (scm_make_shared_array, scm_transpose_array,
scm_enclose_array, scm_array_in_bounds_p, scm_array_set_x):
Validate the rest argument (note: this is only done when guile is
built with SCM_DEBUG_REST_ARGUMENT=1)

(scm_array_in_bounds_p, scm_uniform_vector_ref, scm_array_set_x):
Replace calls to scm_wrong_num_args by SCM_WRONG_NUM_ARGS.

* validate.h (SCM_FUNC_NAME, SCM_VALIDATE_NUMBER_COPY,
SCM_VALIDATE_NUMBER_DEF_COPY):  Deprecated.
2001-03-17 13:34:21 +00:00