summaryrefslogtreecommitdiff
path: root/libguile/unif.c
AgeCommit message (Collapse)AuthorFilesLines
2001-03-17* __scm.h (SCM_ASSERT, SCM_WTA_DISPATCH_0, SCM_WTA_DISPATCH_1,Dirk Herrmann1-35/+53
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-10* _scm.h: Removed #include <errno.h>.Mikael Djurfeldt1-0/+2
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of errno variable (can be a macro on some systems, for example when using linux libc with threads). * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c, posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c, socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added #include <errno.h> in these 20 out of 100 files.
2001-03-09Remove #include <stdio.h>. Add #include <string.h>.Keisuke Nishida1-0/+1
2001-03-04* Eliminate another couple of calls to scm_wta.Dirk Herrmann1-22/+18
2001-03-04* Eliminate some calls to scm_wta.Dirk Herrmann1-1/+4
2001-02-17(scm_bit_count, scm_bit_set_star_x): Added texinfo markup.Martin Grabmüller1-10/+12
2001-02-02New functions: scm_c_make_vector, scm_c_make_hash_table.Keisuke Nishida1-2/+2
2001-01-31* unif.c (rapr1): Don't apply scm_uniform_vector_length on arrays.Mikael Djurfeldt1-2/+4
2000-12-08Smob-related creanup.Keisuke Nishida1-8/+8
2000-12-08* Use scm_mem2symbol or scm_str2symbol to create symbol objects.Dirk Herrmann1-2/+2
2000-11-23* Deprecated SCM_LENGTH_MAX.Dirk Herrmann1-12/+6
2000-11-23* SCM_SETCHARS deprecated.Dirk Herrmann1-3/+3
2000-11-23* Deprecated SCM_SETLENGTH.Dirk Herrmann1-4/+15
2000-11-17* alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,Marius Vollmer1-0/+2
continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c, environments.c, eq.c, error.c, eval.c, evalext.c, feature.c, filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c, hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c, list.c, load.c, macros.c, modules.c, net_db.c, numbers.c, objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c, print.c, procprop.c, procs.c, properties.c, ramap.c, random.c, read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c, socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c, strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c, tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c, version.c, vports.c, weaks.c: Makes sure the snarfer output inclusion is disabled when the snarfer is run on the file. Thanks to Lars J. Aas! * Makefile.am: Install guile-procedures.txt in version-specific directory to enable multiple installed guile versions. Suggested by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
2000-10-30* Remove the code that implemented the SCM_HUGE_LENGTH trick.Dirk Herrmann1-57/+32
2000-10-11* Replaced some calls to SCM_LENGTH.Dirk Herrmann1-193/+196
* Use scm_uniform_vector_length to determine lengths generically. * Eliminate some dummy type dispatch code. * Fix an array access but in scm_ra2contig.
2000-09-26* Eliminated all calls to SCM_UCHARS.Dirk Herrmann1-5/+5
2000-09-26* Eliminated all remaining calls to SCM_CHARS.Dirk Herrmann1-12/+24
2000-09-22* Replaced SCM_CHARS with SCM_STRING_CHARS or SCM_SYMBOL_CHARS.Dirk Herrmann1-3/+3
2000-09-02* Docstring updates for scm_uniform_vector_ref and scm_array_set_x.Neil Jerram1-0/+2
2000-06-30* Eliminated use of SCM_ASSERT to check for range errors.Dirk Herrmann1-11/+15
* Fix some error reporting code in list.c * Added some test cases.
2000-06-05* Removed SCM_TRUE_P since it may get confused with !SCM_FALSEP.Dirk Herrmann1-7/+7
2000-05-20* Fixed some parameter checks. Thanks to Dale P. Smith.Dirk Herrmann1-27/+29
2000-05-18* Unified some rest argument checking and handling.Dirk Herrmann1-24/+15
2000-05-10More distinguished handling of real and complex values.Dirk Herrmann1-6/+11
2000-05-02* numbers.c (scm_logtest, scm_division): Reordered dispatch sequence.Dirk Herrmann1-2/+2
* removed calls to deprecated scm_makdbl.
2000-04-21* Makefile.am (DEFS): Added. automake adds -I options to DEFS,Mikael Djurfeldt1-15/+15
and we don't want that. (INCLUDES): Removed all -I options except for the root source directory and the root build directory. * *.*: Change includes so that they always use the "prefixes" libguile/, qt/, guile-readline/, or libltdl/. (Thanks to Tim Mooney.)
2000-04-18Fixed a stupid bug introduced with the last patch. Sorry.Dirk Herrmann1-0/+1
2000-04-18Fixed some SCM/scm_bits_t mixups.Dirk Herrmann1-14/+13
2000-04-13* unif.c, unif.h (shared-array-root, shared-array-offset,Mikael Djurfeldt1-3/+46
shared-array-increments): New primitives.
2000-04-04Lots of fixes with respect to strict typing.Dirk Herrmann1-43/+43
2000-03-19 * *.[hc]: add Emacs magic at the end of file, to ensure GNUMichael Livshin1-0/+6
indentation style.
2000-03-18Only include root.h where it is actually needed.Dirk Herrmann1-0/+1
2000-03-17Only include strings.h where it is actually needed.Dirk Herrmann1-0/+1
2000-03-17Only include vectors.h in those files, where it is actually needed.Dirk Herrmann1-0/+1
2000-03-14* __scm.h eq.c, eval.c, gc.c, hc.h, gh_data, hash.c, numbers.c,Mikael Djurfeldt1-147/+58
numbers.h, objects.c, ramap.c, random.c, unif.c, unif.h: Extensive rewrite of handling of real and complex numbers. (SCM_FLOATS, SCM_SINGLES): These #ifdef conditionals have been removed along with the support for floats. (Float vectors are still supported.) * unif.c (scm_makflo): Removed.
2000-03-12*** empty log message ***Mikael Djurfeldt1-20/+20
2000-03-12* stacks.c, stacks.h, struct.c, tags.h, unif.c (scm_bits_t):Mikael Djurfeldt1-1/+1
Renamed from SCMWORD.
2000-03-12* async.c, boolean.h, debug.c, dynl.c, dynwind.c, eval.c, eval.h,Mikael Djurfeldt1-20/+20
feature.h, filesys.h, fluids.h, fports.c, fports.h, gc.c, gc.h, hash.c, keywords.h, macros.c, numbers.c, numbers.h, objects.c, objects.h, options.c, pairs.h, ports.c, ports.h, print.c, procs.h, ramap.c, read.c, smob.c, smob.h, srcprop.h, stacks.c, stacks.h, strports.c, struct.c, struct.h, tag.c, tags.h, throw.c, unif.c, unif.h, variable.h, vectors.h, weaks.c, weaks.h (SCM_SCM, SCM_BITS, SCM_CARBITS): Renamed from SCM_ASSCM, SCM_ASWORD, SCM_CARW).
2000-03-09* vectors.h (SCM_VELTS_AS_STACKITEMS): Added this macro to help inGreg J. Badros1-3/+4
eliminating some warnings. * unif.c, strports.c, print.c, options.c: Fix some warnings on mis-use of SCM/long * gc.c, gc.h: Added scm_return_first_int(), and added comment re: what the scm_return_first* functions do.
2000-03-09*.[ch]: make a distinction between SCM as a genericGreg J. Badros1-80/+110
name for a Scheme object (now a void*), and SCM as 32 bit word for storing tags and immediates (now a long int). Introduced SCM_ASWORD and SCM_ASSCM for conversion. Fixed various dubious code in the process: arbiter.c (use macros), unif.c (scm_array_p),
2000-03-03* error.h, error.c: Added `scm_wrong_type_arg_msg' to supportGreg J. Badros1-1/+1
displaying the expected type. Use SCM_LISTn in a couple places instead of scm_cons-ing by hand. * __scm.h: Added SCM_ASSERT_TYPE macro. * validate.h, scm_validate.h: Added the former, as a renamed version of the latter with SCM_ASSERT_TYPE used in SCM_MAKE_VALIDATE (instead of just SCM_ASSERT) * Makefile.am: Rename scm_validate.h to validate.h. * *.c, *.h: Include validate.h, not scm_validate.h (old name's prefix was superfluous).
2000-03-02* list.c: Moved append docs to append! Thanks Dirk Hermann. Also,Greg J. Badros1-15/+15
added append docs from R4RS. * strings.c: Docstring typo fix, + eliminate unneeded IMP tests. Thanks Dirk Hermann! * chars.h: Provide SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR and deprecate SCM_ICHRP, SCM_ICHR, SCM_MAKICHR. Thanks Dirk Hermann! * *.h, *.c: Use SCM_CHARP, SCM_CHAR, SCM_MAKE_CHAR throughout. Drop use of SCM_P for function prototypes... assume an ANSI C compiler. Thanks Dirk Hermann!
2000-01-18* alist.c, chars.c, debug.c, dynl.c, dynwind.c, error.c, eval.c,Mikael Djurfeldt1-141/+128
evalext.c, filesys.c, gc.c, hash.c, hashtab.c, ioext.c, keywords.c, list.c, load.c, macros.c, net_db.c, numbers.c, objprop.c, ports.c, posix.c, print.c, procprop.c, procs.c, ramap.c, regex-posix.c, root.c, scmsigs.c, simpos.c, socket.c, stacks.c, stime.c, strings.c, strop.c, strports.c, struct.c, symbols.c, throw.c, unif.c, vectors.c, version.c, vports.c, weaks.c: Converted docstrings to ANSI C format.
2000-01-11* dynl.c, feature.c, filesys.c, fports.c, list.c, load.c,Greg J. Badros1-4/+2
net_db.c, sort.c, stacks.c, unif.c: Use SCM_WTA, SCM_MISC_ERROR where possible. * symbols.c (scm_sysintern0): Fixed the function name in a scm_misc_error invocation. * print.c (scm_simple_format): Do not need SCM_COERCE_SUBSTR, and use scm_return_first to ward off latent GC bug that Mikael caught. * async.c: Use SCM_VALIDATE_ASYNC_COPY one place where it wasn't used before but should've been.
2000-01-05* *.[ch]: Whitespace changes -- added space after SCM_VALIDATE_*Greg J. Badros1-29/+29
macros and SCM_DEFINE macros to match GNU coding standards.
2000-01-05*.[ch]: Replace GUILE_PROC w/ SCM_DEFINE.Greg J. Badros1-22/+22
2000-01-05* *.[ch]: Replace SCM_VALIDATE_INT w/ SCM_VALIDATE_INUM forGreg J. Badros1-5/+5
better consistency with the names of other SCM_VALIDATE_ macros and better conformance to guile naming policy.
2000-01-05* unif.c, symbols.c, strings.c, stacks.c, random.c, print.c,Greg J. Badros1-4/+2
posix.c: Eliminated a bunch of SCM_NIMP(..)s that are now redundant with the safer macros. Patch from Dirk Hermann applied by hand. Thanks Dirk! * scm_validate.h: Added SCM_VALIDATE_VECTOR_OR_DVECTOR for some uses in random.c. * ramap.c: whitespace change.
1999-12-18* alist.c, chars.c, dynl.c, net_db.c, numbers.c, unif.c: UseGreg J. Badros1-5/+5
SCM_NUM2ULONG instead of scm_num2ulong; SCM_NUM2LONG instead of scm_num2long; SCM_WTA instead of scm_wta. Only done for when FUNC_NAME was used as an argument of the macro and the formal argument name was the explicit argument in the old function call. These were just missed in my first pass of changes.