bpt/guile.git
19 years ago* fports.h, fports.c (scm_i_fdes_to_port): New, like
Marius Vollmer [Thu, 12 Aug 2004 17:03:36 +0000 (17:03 +0000)]
* fports.h, fports.c (scm_i_fdes_to_port): New, like
scm_fdes_to_port, but take mode bits directly instead of as a C
string.
(scm_i_fdes_to_port): Implement using above.
(scm_open_file): Use scm_i_fdes_to_port together with
scm_i_mode_bits to avoid accessing internals of SCM string from C.
* vports.c (scm_make_soft_port): Use scm_i_fdes_to_port together
with scm_i_mode_bits to avoid accessing internals of SCM string
from C.

* ports.h (scm_i_mode_bits): New, same as scm_mode_bits but with a
SCM string as argument.

* ports.c (scm_i_void_port): New, like scm_void_port but take mode
bits directly instead of C string.
(scm_void_port): Implement using above.
(scm_sys_make_void_port): Use scm_i_void_port together with
scm_i_mode_bits to avoid accessing internals of SCM string.

* convert.i.c, backtrace.c, strop.c, strorder.c, strports.c,
struct.c, unif.c, ports.c: Use SCM_I_STRING_CHARS,
SCM_I_STRING_UCHARS, and SCM_I_STRING_LENGTH instead of
SCM_STRING_CHARS, SCM_STRING_UCHARS, and SCM_STRING_LENGTH,
respectively.  Also, replaced scm_return_first with more explicit
scm_remember_upto_here_1, etc, or introduced them in the first
place.

19 years ago(scm_primitive_load_path): Do not check for absolute filenames when
Marius Vollmer [Thu, 12 Aug 2004 11:57:42 +0000 (11:57 +0000)]
(scm_primitive_load_path): Do not check for absolute filenames when
scm_sys_search_load_path returns false, which will return absolute
filenames unchanged.

19 years ago*** empty log message ***
Marius Vollmer [Wed, 11 Aug 2004 19:39:44 +0000 (19:39 +0000)]
*** empty log message ***

19 years ago(scm_init_storage, scm_stand_in_procs, scm_stand_in_proc): Use a
Marius Vollmer [Wed, 11 Aug 2004 19:38:58 +0000 (19:38 +0000)]
(scm_init_storage, scm_stand_in_procs, scm_stand_in_proc): Use a
hastable for scm_stand_in_procs instead of an alist.  Thanks to
Matthias Koeppe!

19 years ago(scm_c_round, scm_c_truncate): Docs for'em.
Marius Vollmer [Wed, 11 Aug 2004 19:36:55 +0000 (19:36 +0000)]
(scm_c_round, scm_c_truncate): Docs for'em.

19 years agoRemoved commented out debugging fprintfs.
Marius Vollmer [Tue, 10 Aug 2004 15:59:31 +0000 (15:59 +0000)]
Removed commented out debugging fprintfs.

19 years agoTypos.
Marius Vollmer [Tue, 10 Aug 2004 15:58:57 +0000 (15:58 +0000)]
Typos.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 15:45:58 +0000 (15:45 +0000)]
*** empty log message ***

19 years ago(test_locale_strings): New.
Marius Vollmer [Tue, 10 Aug 2004 15:45:49 +0000 (15:45 +0000)]
(test_locale_strings): New.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 14:16:46 +0000 (14:16 +0000)]
*** empty log message ***

19 years agoUpdated example to use scm_to_locale_string
Marius Vollmer [Tue, 10 Aug 2004 14:16:34 +0000 (14:16 +0000)]
Updated example to use scm_to_locale_string
instead of roll-your-own scm_to_string.  Also showcase
scm_frame_free.

19 years agoDocs for scm_is_string, scm_to_locale_string*, and
Marius Vollmer [Tue, 10 Aug 2004 14:15:33 +0000 (14:15 +0000)]
Docs for scm_is_string, scm_to_locale_string*, and
scm_from_locale_string*.

19 years agoDocs for scm_frame_free.
Marius Vollmer [Tue, 10 Aug 2004 14:14:46 +0000 (14:14 +0000)]
Docs for scm_frame_free.

19 years ago* stime.c, socket.c, simpos.c, procs.c, posix.c, ports.c,
Marius Vollmer [Tue, 10 Aug 2004 14:08:02 +0000 (14:08 +0000)]
* stime.c, socket.c, simpos.c, procs.c, posix.c, ports.c,
net_db.c, fports.c, filesys.c, eval.c, deprecation.c, dynl.c:
Replaced uses of SCM_STRING_CHARS with proper uses of
scm_to_locale_string.  Replaced SCM_STRINGP with scm_is_string.
Replaced scm_mem2string with scm_from_locale_string.

* simpos.c, posix.c (allocate_string_pointers, environ_list_to_c):
Removed, replaced all uses with scm_i_allocate_string_pointers.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 14:07:35 +0000 (14:07 +0000)]
*** empty log message ***

19 years ago(scm_mkstrport): Use SCM_I_STRING_UCHARS instead of SCM_STRING_UCHARS.
Marius Vollmer [Tue, 10 Aug 2004 14:06:59 +0000 (14:06 +0000)]
(scm_mkstrport): Use SCM_I_STRING_UCHARS instead of SCM_STRING_UCHARS.
Use SCM_I_STRINGP instead of SCM_STRINGP.

19 years ago(scm_i_index): Replaced SCM_STRINGP, SCM_STRING_CHARS, and
Marius Vollmer [Tue, 10 Aug 2004 14:05:14 +0000 (14:05 +0000)]
(scm_i_index): Replaced SCM_STRINGP, SCM_STRING_CHARS, and
SCM_STRING_LENGTH with SCM_I_STRINGP, SCM_I_STRING_CHARS, and
SCM_I_STRING_LENGTH, respectively.  Pass string object directly, not
as a pointer.  Use scm_remember_upto_here_1 to protect it.

19 years ago* procs.c, posix.c, ports.c, net_db.c, fports.c, filesys.c,
Marius Vollmer [Tue, 10 Aug 2004 13:54:16 +0000 (13:54 +0000)]
* procs.c, posix.c, ports.c, net_db.c, fports.c, filesys.c,
eval.c, deprecation.c, dynl.c: Replaced uses of SCM_STRING_CHARS
with proper uses of scm_to_locale_string.  Replaced SCM_STRINGP
with scm_is_string.

* posix.c (allocate_string_pointers, environ_list_to_c): Removed,
replaced all uses with scm_i_allocate_string_pointers.

19 years ago(scm_input_error): Use a SCM value for 'fn', not a C string. This
Marius Vollmer [Tue, 10 Aug 2004 13:54:01 +0000 (13:54 +0000)]
(scm_input_error): Use a SCM value for 'fn', not a C string.  This
avoids a conversion round-trip.

19 years agoReplaced SCM_STRINGP, SCM_STRING_CHARS, and
Marius Vollmer [Tue, 10 Aug 2004 13:43:55 +0000 (13:43 +0000)]
Replaced SCM_STRINGP, SCM_STRING_CHARS, and
SCM_STRING_LENGTH with SCM_I_STRINGP, SCM_I_STRING_CHARS, and
SCM_I_STRING_LENGTH, respectively.
(gh_scm2newstr): Implement in terms of scm_to_locale_string.

19 years ago(scm_error_scm): Throw directly instead of calling
Marius Vollmer [Tue, 10 Aug 2004 13:37:11 +0000 (13:37 +0000)]
(scm_error_scm): Throw directly instead of calling
scm_error, this avoids the back and forth conversion of SUBR and
MESSAGE and also plugs a memory leak.
(scm_error): Call scm_error_scm.

19 years agoInstead calling scm_puts on the SCM_STRING_CHARS of a string, call
Marius Vollmer [Tue, 10 Aug 2004 13:36:45 +0000 (13:36 +0000)]
Instead calling scm_puts on the SCM_STRING_CHARS of a string, call
scm_display on the string itself.

19 years ago(scm_frame_free): New.
Marius Vollmer [Tue, 10 Aug 2004 13:35:28 +0000 (13:35 +0000)]
(scm_frame_free): New.

19 years ago* backtrace.c: Replaced SCM_STRINGP with scm_is_string.
Marius Vollmer [Tue, 10 Aug 2004 13:31:22 +0000 (13:31 +0000)]
* backtrace.c: Replaced SCM_STRINGP with scm_is_string.
(display_header): Print FNAME when it is true, not
merely when it is a string.

19 years ago(scm_internal_parse_path): Removed.
Marius Vollmer [Tue, 10 Aug 2004 13:30:12 +0000 (13:30 +0000)]
(scm_internal_parse_path): Removed.
(scm_parse_path): Use scm_string_split to do the work.
(scm_init_load_path): Use scm_parse_path instead of
scm_internal_parse_path.
(scm_search_path): Rewritten string handling part of the code in
terms of scm_to_locale_stringbuf and so that it is thread safe.

19 years ago* strings.h, deprecated.h (SCM_STRING_COERCE_0TERMINATION_X):
Marius Vollmer [Tue, 10 Aug 2004 13:20:59 +0000 (13:20 +0000)]
* strings.h, deprecated.h (SCM_STRING_COERCE_0TERMINATION_X):
Moved from string.h to deprecated.h.

* deprecated.c, deprecated.h (SCM_CHARS, SCM_LENGTH): Removed.

* strings.h, strings.c (SCM_MAKE_STRING_TAG): Rename dto
SCM_I_MAKE_STRING_TAG, changed all uses.
(SCM_STRING_CHARS, SCM_STRING_UCHARS, SCM_STRING_LENGTH): Renamed
to SCM_I_STRING_CHARS, SCM_I_STRING_UCHARS, and SCM_I_LENGTH
respectively.  For a short time, the old names are still there as
aliases.  Not all uses have been changed yet, but the ones in
strings.c have.
(SCM_STRING_MAX_LEN): Do not hardcode to 24 bits, compute from
SCM_T_BITS_MAX.
(scm_is_string, scm_from_locale_string, scm_from_locale_stringn,
scm_take_locale_string, scm_take_locale_stringn,
scm_to_locale_string, scm_to_locale_stringn,
scm_to_locale_stringbuf): New.
(scm_c_string2str, scm_c_substring2str): Deprecated by moving to
deprecated.[hc]. Implemented in terms of the new functions above.
(scm_take_str, scm_take0str, scm_mem2string, scm_str2string,
scm_makfrom0str): Reimplemented in terms of the new functions from
above.  They will be discouraged shortly.
(scm_substring): Do not use scm_mem2string.
(scm_i_allocate_string_pointers, scm_i_free_string_pointers): New,
to replace similar code from posix.c, simpos.c, and dynl.c.
(scm_string_append): Use memcpy instead of explicit loop.  Do not
use register keyword.  Use plain 'char' instead of 'unsigned
char'.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 10 Aug 2004 12:20:02 +0000 (12:20 +0000)]
*** empty log message ***

19 years agoReplaced all uses of scm_round with scm_c_round.
Marius Vollmer [Tue, 10 Aug 2004 12:19:49 +0000 (12:19 +0000)]
Replaced all uses of scm_round with scm_c_round.

19 years agoMore of: New file.
Kevin Ryde [Tue, 10 Aug 2004 00:52:50 +0000 (00:52 +0000)]
More of: New file.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 9 Aug 2004 23:33:27 +0000 (23:33 +0000)]
*** empty log message ***

19 years ago(scm_round, scm_truncate): Renamed to scm_c_round and scm_c_truncate;
Marius Vollmer [Mon, 9 Aug 2004 23:32:14 +0000 (23:32 +0000)]
(scm_round, scm_truncate): Renamed to scm_c_round and scm_c_truncate;
deprecated versions installed in deprecated.h and deprecated.c.
Changed all uses.

19 years agoRemoved caveat that pretty-print uses its own 'write' implementation.
Marius Vollmer [Mon, 9 Aug 2004 21:58:14 +0000 (21:58 +0000)]
Removed caveat that pretty-print uses its own 'write' implementation.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 9 Aug 2004 21:56:19 +0000 (21:56 +0000)]
*** empty log message ***

19 years ago(generic-write): In the local procedure `wr', use object->string to
Marius Vollmer [Mon, 9 Aug 2004 21:56:00 +0000 (21:56 +0000)]
(generic-write): In the local procedure `wr', use object->string to
print all data (except for the reader macros), rather than
implementing an own printer.  The user-visible difference is that
procedures and control characters like #\tab are now printed in the
same way as by `write'.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 9 Aug 2004 01:33:36 +0000 (01:33 +0000)]
*** empty log message ***

19 years agoIn open-file, split a paragraph for clarity.
Kevin Ryde [Mon, 9 Aug 2004 01:33:03 +0000 (01:33 +0000)]
In open-file, split a paragraph for clarity.

19 years ago(File Ports): In open-file, describe the "b" binary flag.
Kevin Ryde [Mon, 9 Aug 2004 01:32:22 +0000 (01:32 +0000)]
(File Ports): In open-file, describe the "b" binary flag.

19 years ago(SLIB): Add notes on delete-file, provided? and open-file
Kevin Ryde [Mon, 9 Aug 2004 01:29:52 +0000 (01:29 +0000)]
(SLIB): Add notes on delete-file, provided? and open-file
overridden by ice-9 slib module.

19 years ago * tests/slib.test: New file.
Kevin Ryde [Mon, 9 Aug 2004 01:28:23 +0000 (01:28 +0000)]
* tests/slib.test: New file.
* Makefile.am (SCM_TESTS): Add it.

19 years agoNew file.
Kevin Ryde [Mon, 9 Aug 2004 01:23:03 +0000 (01:23 +0000)]
New file.

19 years ago*** empty log message ***
Kevin Ryde [Mon, 9 Aug 2004 01:21:32 +0000 (01:21 +0000)]
*** empty log message ***

19 years ago(*features*): Remove array and array-for-each, core
Kevin Ryde [Mon, 9 Aug 2004 01:20:47 +0000 (01:20 +0000)]
(*features*): Remove array and array-for-each, core
definitions are insufficient for latest slib.
(t, nil): New constants slib says are supposed to exist.
(call-with-open-ports, browse-url): New functions for latest slib.
Implementations taken from Template.scm (public domain).
(open-file): Extend core definition to accept symbols for the mode,
required by latest slib.
(delete-file): Replace core definition with version returning #t/#f as
per slib spec.
(system): Mark as #:replace to suppress override warning, use new
style "(@ (guile) system)" to call core function.

19 years ago(scm_resolv_error): don't cause an exception while
Rob Browning [Sat, 7 Aug 2004 03:48:17 +0000 (03:48 +0000)]
(scm_resolv_error): don't cause an exception while
trying to throw an exception -- call scm_misc_error with correct
arguments.  The previous arguments needed a format escape that
wasn't in any of the format strings.

19 years ago*** empty log message ***
Rob Browning [Sat, 7 Aug 2004 03:48:03 +0000 (03:48 +0000)]
*** empty log message ***

19 years agoAmend #if and comments for cmp_d and get_d about unreleased gmp, don't
Kevin Ryde [Fri, 6 Aug 2004 01:26:26 +0000 (01:26 +0000)]
Amend #if and comments for cmp_d and get_d about unreleased gmp, don't
know when or as what version number it will come out.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 01:08:37 +0000 (01:08 +0000)]
*** empty log message ***

19 years ago(array-fill!): Exercise byte range and type checks.
Kevin Ryde [Fri, 6 Aug 2004 01:08:12 +0000 (01:08 +0000)]
(array-fill!): Exercise byte range and type checks.

19 years ago(scm_array_fill_x): For byvect char fill, force signed char
Kevin Ryde [Fri, 6 Aug 2004 01:04:05 +0000 (01:04 +0000)]
(scm_array_fill_x): For byvect char fill, force signed char
so as not to depend on signedness of plain char.  For byvect range
check, throw out-of-range rather than wrong-type-arg.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 00:29:13 +0000 (00:29 +0000)]
*** empty log message ***

19 years ago(uniform-vector-ref): Exercise byte returns.
Kevin Ryde [Fri, 6 Aug 2004 00:27:31 +0000 (00:27 +0000)]
(uniform-vector-ref): Exercise byte returns.

19 years ago(scm_uniform_vector_ref, scm_array_set_x): For byvect, force
Kevin Ryde [Fri, 6 Aug 2004 00:21:13 +0000 (00:21 +0000)]
(scm_uniform_vector_ref, scm_array_set_x): For byvect, force
signed byte range checks by using scm_to_schar and scm_from_schar,
don't want to depend on signedness of C char.

19 years ago(array-set!): Exercise byte array range checks.
Kevin Ryde [Fri, 6 Aug 2004 00:17:12 +0000 (00:17 +0000)]
(array-set!): Exercise byte array range checks.

19 years ago*** empty log message ***
Kevin Ryde [Fri, 6 Aug 2004 00:04:14 +0000 (00:04 +0000)]
*** empty log message ***

19 years ago(parse-message): Correction to header
Kevin Ryde [Fri, 6 Aug 2004 00:03:11 +0000 (00:03 +0000)]
(parse-message): Correction to header
continuation, loop with read-line not cdr lines.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 01:19:35 +0000 (01:19 +0000)]
*** empty log message ***

19 years ago(scm_copy_file): Use fstat on the input fd rather than
Kevin Ryde [Thu, 5 Aug 2004 01:02:58 +0000 (01:02 +0000)]
(scm_copy_file): Use fstat on the input fd rather than
stat on the filename, to be certain a file rename can't mean we get
info on one filesystem object but open another.  This fstat usage is
similar to Emacs copy-file.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 00:46:34 +0000 (00:46 +0000)]
*** empty log message ***

19 years agoUpdate docstrings per doc/ref/api-scheduling.texi.
Kevin Ryde [Thu, 5 Aug 2004 00:40:26 +0000 (00:40 +0000)]
Update docstrings per doc/ref/api-scheduling.texi.

19 years ago(Arbiters): Tweak wording for clarity, note any
Kevin Ryde [Thu, 5 Aug 2004 00:38:13 +0000 (00:38 +0000)]
(Arbiters): Tweak wording for clarity, note any
thread can unlock not just the one which locked.

19 years ago(scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
Kevin Ryde [Thu, 5 Aug 2004 00:33:58 +0000 (00:33 +0000)]
(scm_system_star): Use scm_from_int on SIGINT and SIGQUIT,
since that's what those values are.

19 years ago(scm_try_arbiter): Use scm_i_misc_mutex instead of
Kevin Ryde [Thu, 5 Aug 2004 00:20:13 +0000 (00:20 +0000)]
(scm_try_arbiter): Use scm_i_misc_mutex instead of
SCM_DEFER_INTS.
(scm_release_arbiter): Use scm_i_misc_mutex so return value can be
guaranteed if multiple threads compete to unlock.

19 years ago(scm_setgroups): Enhance docstring, per doc/ref/posix.texi.
Kevin Ryde [Thu, 5 Aug 2004 00:19:14 +0000 (00:19 +0000)]
(scm_setgroups): Enhance docstring, per doc/ref/posix.texi.

19 years ago(Processes): Add setgroups.
Kevin Ryde [Thu, 5 Aug 2004 00:17:39 +0000 (00:17 +0000)]
(Processes): Add setgroups.

19 years ago*** empty log message ***
Kevin Ryde [Thu, 5 Aug 2004 00:13:24 +0000 (00:13 +0000)]
*** empty log message ***

19 years ago(scm_string_any, scm_string_every): Enhance docstrings as
Kevin Ryde [Thu, 5 Aug 2004 00:12:59 +0000 (00:12 +0000)]
(scm_string_any, scm_string_every): Enhance docstrings as
per doc/ref/srfi-modules.texi.

19 years ago(SRFI-13 Predicates): Tweak wording for clarity.
Kevin Ryde [Thu, 5 Aug 2004 00:10:22 +0000 (00:10 +0000)]
(SRFI-13 Predicates): Tweak wording for clarity.
For string-every, note return is #t when no characters.  For
string-any and string-every, note last pred call is not currently a
tail call, contrary to SRFI-13 spec.

19 years ago(Conventions): Describe system-error args, use @defun for
Kevin Ryde [Thu, 5 Aug 2004 00:02:23 +0000 (00:02 +0000)]
(Conventions): Describe system-error args, use @defun for
system-error-errno instead of just words.

19 years ago*** empty log message ***
Kevin Ryde [Wed, 4 Aug 2004 23:49:30 +0000 (23:49 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 17:24:44 +0000 (17:24 +0000)]
*** empty log message ***

19 years ago* num2integral.i.c, num2float.i.c: Removed.
Marius Vollmer [Tue, 3 Aug 2004 17:24:28 +0000 (17:24 +0000)]
* num2integral.i.c, num2float.i.c: Removed.
* Makefile.am (noinst_HEADERS): Updated.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 17:16:29 +0000 (17:16 +0000)]
*** empty log message ***

19 years agoAdded scm_is_complex, scm_is_number, scm_c_make_rectangular,
Marius Vollmer [Tue, 3 Aug 2004 17:15:51 +0000 (17:15 +0000)]
Added scm_is_complex, scm_is_number, scm_c_make_rectangular,
scm_c_make_polar, scm_c_rela_part, scm_c_imag_part, scm_c_magnitude,
and scm_c_angle.

19 years ago(scm_make_complex): Discouraged by moving to discouraged.h and
Marius Vollmer [Tue, 3 Aug 2004 17:13:16 +0000 (17:13 +0000)]
(scm_make_complex): Discouraged by moving to discouraged.h and
discouraged.c.  Replaced all uses with scm_c_make_rectangular.

19 years ago(scm_complex_p): New, export as "complex?" to Scheme.
Marius Vollmer [Tue, 3 Aug 2004 17:12:14 +0000 (17:12 +0000)]
(scm_complex_p): New, export as "complex?" to Scheme.
(scm_number_p): Export as "number?" to Scheme.
(scm_is_complex, scm_is_number): New.
(scm_c_make_rectangular, scm_c_make_polar): New.
(scm_make_rectangular, scm_make_polar): Use above.
(scm_c_real_part, scm_c_imag_part, scm_c_magnitude, scm_c_angle):
New.
(scm_make_complex): Discouraged by moving to discouraged.h and
discouraged.c.  Replaced all uses with scm_c_make_rectangular.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 15:56:49 +0000 (15:56 +0000)]
*** empty log message ***

19 years ago* numbers.h. numbers.c (scm_make_ratio): Renamed to
Marius Vollmer [Tue, 3 Aug 2004 15:55:42 +0000 (15:55 +0000)]
* numbers.h. numbers.c (scm_make_ratio): Renamed to
scm_i_make_ratio and made static, replaced uses with scm_divide.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 15:07:37 +0000 (15:07 +0000)]
*** empty log message ***

19 years agoOnly perform the tests when the disabled features are enabled.
Marius Vollmer [Tue, 3 Aug 2004 15:07:23 +0000 (15:07 +0000)]
Only perform the tests when the disabled features are enabled.

19 years ago(test_to_double, test_from_double): New tests.
Marius Vollmer [Tue, 3 Aug 2004 15:06:51 +0000 (15:06 +0000)]
(test_to_double, test_from_double): New tests.

19 years ago(scm_make_real, scm_num2dbl, scm_float2num, scm_double2num):
Marius Vollmer [Tue, 3 Aug 2004 15:06:12 +0000 (15:06 +0000)]
(scm_make_real, scm_num2dbl, scm_float2num, scm_double2num):
Discouraged by moving to discouraged.h and discouraged.c.
Replaced all uses with scm_from_double.
(scm_num2float, scm_num2double): Discouraged by moving prototype
to discouraged.h and rewriting in terms of scm_to_double.
Replaced all uses with scm_to_double.

19 years ago(scm_init_guile_1): Call scm_i_init_discouraged.
Marius Vollmer [Tue, 3 Aug 2004 15:04:48 +0000 (15:04 +0000)]
(scm_init_guile_1): Call scm_i_init_discouraged.

19 years ago(scm_is_rational): New.
Marius Vollmer [Tue, 3 Aug 2004 15:03:35 +0000 (15:03 +0000)]
(scm_is_rational): New.
(scm_i_short2big, scm_i_int2big, scm_i_uint2big, scm_i_size2big,
scm_i_ptrdiff2big, scm_i_long_long2big, scm_i_ulong_long2big):
Removed prototypes.
(scm_make_real, scm_num2dbl, scm_float2num, scm_double2num):
Discouraged by moving to discouraged.h and discouraged.c.
Replaced all uses with scm_from_double.
(scm_num2float, scm_num2double): Discouraged by moving prototype
to discouraged.h and rewriting in terms of scm_to_double.
Replaced all uses with scm_to_double.
(scm_to_double): Do not implement in terms of scm_num2dbl, use
explicit code.
(scm_from_double): Do not implement in terms of scm_make_real, use
explicit code.

19 years ago*** empty log message ***
Marius Vollmer [Tue, 3 Aug 2004 14:55:42 +0000 (14:55 +0000)]
*** empty log message ***

19 years agoAdded scm_is_real, scm_is_rational, scm_to_double, scm_from_double,
Marius Vollmer [Tue, 3 Aug 2004 14:55:20 +0000 (14:55 +0000)]
Added scm_is_real, scm_is_rational, scm_to_double, scm_from_double,
numerator, and denominator.

19 years agoTypos and a small addition.
Marius Vollmer [Tue, 3 Aug 2004 14:54:17 +0000 (14:54 +0000)]
Typos and a small addition.

19 years ago* api-deprecated.texi: Removed.
Marius Vollmer [Mon, 2 Aug 2004 16:29:37 +0000 (16:29 +0000)]
* api-deprecated.texi: Removed.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 16:26:50 +0000 (16:26 +0000)]
*** empty log message ***

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 16:20:03 +0000 (16:20 +0000)]
*** empty log message ***

19 years agoReplaced scm_num2* and scm_*2num with scm_to_* and
Marius Vollmer [Mon, 2 Aug 2004 16:19:53 +0000 (16:19 +0000)]
Replaced scm_num2* and scm_*2num with scm_to_* and
scm_from_*, respectively.
(print_int64, print_uint64): Rewritten by just calling scm_iprin1
on a SCM.

19 years ago* numbers.h, numbers.c, discouraged.h, discouraged.c (scm_short2num,
Marius Vollmer [Mon, 2 Aug 2004 16:14:04 +0000 (16:14 +0000)]
* numbers.h, numbers.c, discouraged.h, discouraged.c (scm_short2num,
scm_ushort2num, scm_int2num, scm_uint2num, scm_long2num,
scm_ulong2num, scm_size2num, scm_ptrdiff2num, scm_num2short,
scm_num2ushort, scm_num2int, scm_num2uint, scm_num2long,
scm_num2ulong, scm_num2size, scm_num2ptrdiff, scm_long_long2num,
scm_ulong_long2num, scm_num2long_long, scm_num2ulong_long):
Discouraged by moving to discouraged.h and discouraged.c and
reimplementing in terms of scm_from_* and scm_to_*.  Changed all uses
to the new scm_from_* and scm_to_* functions.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 16:13:29 +0000 (16:13 +0000)]
*** empty log message ***

19 years ago* gen-scmconfig.h.in (SCM_I_GSC_ENABLE_DISCOURAGED): New.
Marius Vollmer [Mon, 2 Aug 2004 16:10:17 +0000 (16:10 +0000)]
* gen-scmconfig.h.in (SCM_I_GSC_ENABLE_DISCOURAGED): New.
* gen-scmconfig.c (SCM_ENABLE_DISCOURAGED): Emit based on above.

19 years agoInclude libguile/discouraged.h.
Marius Vollmer [Mon, 2 Aug 2004 16:09:06 +0000 (16:09 +0000)]
Include libguile/discouraged.h.

19 years agoDocument the new --disable-discouraged option.
Marius Vollmer [Mon, 2 Aug 2004 16:08:19 +0000 (16:08 +0000)]
Document the new --disable-discouraged option.

19 years ago(SCM_I_GSC_ENABLE_DISCOURAGED): New, for the new --enable-discouraged
Marius Vollmer [Mon, 2 Aug 2004 16:07:34 +0000 (16:07 +0000)]
(SCM_I_GSC_ENABLE_DISCOURAGED): New, for the new --enable-discouraged
option.

19 years ago* discouraged.h, discouraged.c: New files.
Marius Vollmer [Mon, 2 Aug 2004 15:57:31 +0000 (15:57 +0000)]
* discouraged.h, discouraged.c: New files.

19 years ago* discouraged.h, discouraged.c: New files.
Marius Vollmer [Mon, 2 Aug 2004 15:57:04 +0000 (15:57 +0000)]
* discouraged.h, discouraged.c: New files.

* deprecated.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOLP, SCM_EQ_P,
SCM_NEGATE_BOOL, SCM_BOOL, SCM_BOOT_NOT): Promoted from being
deprecated to being discouraged by moving to discouraged.h.

* numbers.h, numbers.c, discouraged.h, discouraged.c
(scm_short2num, scm_ushort2num, scm_int2num, scm_uint2num,
scm_long2num, scm_ulong2num, scm_size2num, scm_ptrdiff2num,
scm_num2short, scm_num2ushort, scm_num2int, scm_num2uint,
scm_num2long, scm_num2ulong, scm_num2size, scm_num2ptrdiff,
scm_long_long2num, scm_ulong_long2num, scm_num2long_long,
scm_num2ulong_long): Discouraged by moving to discouraged.h and
discouraged.c and reimplementing in terms of scm_from_* and
scm_to_*.

* numbers.h, numbers.c: Removed GUILE_DEBUG code.
(scm_i_short2big, scm_i_ushort2big, scm_i_int2big, scm_i_uint2big,
scm_i_size2big, scm_i_ptrdiff2big): Removed.
(scm_i_long2big, scm_i_ulong2big): New, explicit definitions.
* conv-integer.i.c, conv-uinteger.i.c: Use them instead of
explicit code.

19 years ago(SCM_EVALIM, SCM_EVALIM2, SCM_XEVAL, SCM_XEVALCAR): Renamed to SCM_I_*
Marius Vollmer [Mon, 2 Aug 2004 15:48:58 +0000 (15:48 +0000)]
(SCM_EVALIM, SCM_EVALIM2, SCM_XEVAL, SCM_XEVALCAR): Renamed to SCM_I_*
in order to avoid collisions with the versions defined in
deprecated.h.

19 years ago*** empty log message ***
Marius Vollmer [Mon, 2 Aug 2004 15:15:45 +0000 (15:15 +0000)]
*** empty log message ***

19 years ago* api-deprecated.texi: Removed.
Marius Vollmer [Mon, 2 Aug 2004 15:15:31 +0000 (15:15 +0000)]
* api-deprecated.texi: Removed.
* intro.texi (Discouraged and Deprecated): General information
about deprecation, etc.