summaryrefslogtreecommitdiff
path: root/libguile/gh.h
AgeCommit message (Collapse)AuthorFilesLines
2008-09-28Remove GH and its traces.Han-Wen Nienhuys1-243/+0
2006-04-17merge from 1.8 branchKevin Ryde1-1/+1
2005-06-12Deprecated everything.Marius Vollmer1-0/+4
2005-05-23The FSF has a new address.Marius Vollmer1-1/+1
2005-04-24Critical section reviewNeil Jerram1-1/+1
2005-03-30Critical section review.Neil Jerram1-1/+1
2005-03-02See ChangeLog from 2005-03-02.Marius Vollmer1-2/+2
2005-02-27Bugfix: Include <libguile.h> outside of the extern "C"Mikael Djurfeldt1-3/+5
block.
2005-01-02Use new vector elements API or simple vector API, as appropriate.Marius Vollmer1-2/+0
Removed SCM_HAVE_ARRAYS ifdefery. Replaced all uses of SCM_HASHTABLE_BUCKETS with SCM_HASHTABLE_BUCKET.
2004-08-19(gh_set_substr): Made src const.Marius Vollmer1-1/+1
* strings.h, strings.c: (scm_i_string_chars, scm_i_string_length, scm_i_string_writable_chars, scm_i_string_stop_writing): New, to replace SCM_I_STRING_CHARS and SCM_I_STRING_LENGTH. Updated all uses. (scm_i_make_string, scm_c_make_string): New, to replace scm_allocate_string. Updated all uses. (SCM_STRINGP, SCM_STRING_CHARS, SCM_STRING_UCHARS, SCM_STRING_LENGTH): Deprecated. (scm_allocate_string, scm_take_str, scm_take0str, scm_mem2string, scm_str2string, scm_makfrom0str, scm_makfrom0str_opt): Discouraged. Replaced all uses with scm_from_locale_string or similar, as appropriate. (scm_c_string_length, scm_c_string_ref, scm_c_string_set_x, scm_c_substring, scm_c_substring_shared, scm_c_substring_copy, scm_substring_shared, scm_substring_copy): New. * symbols.c, symbols.h (SCM_SYMBOLP, SCM_SYMBOL_FUNC, SCM_SET_SYMBOL_FUNC, SCM_SYMBOL_PROPS, SCM_SET_SYMBOL_PROPS, SCM_SYMBOL_HASH, SCM_SYMBOL_INTERNED_P, scm_mem2symbol, scm_str2symbol, scm_mem2uninterned_symbol): Discouraged. (SCM_SYMBOL_LENGTH, SCM_SYMBOL_CHARS, scm_c_symbol2str): Deprecated. (SCM_MAKE_SYMBOL_TAG, SCM_SET_SYMBOL_LENGTH, SCM_SET_SYMBOL_CHARS, SCM_PROP_SLOTS, SCM_SET_PROP_SLOTS): Removed. (scm_is_symbol, scm_from_locale_symbol, scm_from_locale_symboln): New, to replace scm_str2symbol and scm_mem2symbol, respectively. Updated all uses. (scm_gensym): Generate only the number suffix in the buffer, just string-append the prefix.
2003-04-05Changed license terms to the plain LGPL thru-out.Marius Vollmer1-36/+12
2003-03-27* gh.h: fix various preprocessor usages of new publicRob Browning1-1/+1
symbols to expect 0 or 1 values rather than 1 or undefined. i.e. change #ifdef to #if, etc.
2003-03-25* gh.h: rename usage of HAVE_ARRAYS to SCM_HAVE_ARRAYS.Rob Browning1-1/+1
2002-07-202002-07-20 Han-Wen <hanwen@cs.uu.nl>Han-Wen Nienhuys1-1/+1
* *.c: add space after commas everywhere. * *.c: use SCM_VECTOR_SET everywhere, where a vector is written. Document cases where SCM_WRITABLE_VELTS() is used. * vectors.h (SCM_VELTS): prepare for write barrier, and let SCM_VELTS() return a const pointer (SCM_VECTOR_SET): add macro. * autogen.sh (mscripts): find and check version number of autoconf. Complain if 2.53 is not found.
2001-11-02Prefixed each each exported symbol with SCM_API.Marius Vollmer1-113/+115
2001-06-28 * list.h (scm_list_1, scm_list_2, scm_list_3, scm_list_4, scm_list_5,Keisuke Nishida1-1/+1
scm_list_n): New functions. (SCM_LIST0, SCM_LIST1, SCM_LIST2, SCM_LIST3, SCM_LIST4, SCM_LIST5, SCM_LIST6, SCM_LIST7, SCM_LIST8, SCM_LIST9, scm_listify): Deprecated. (lots of files): Use the new functions. * goops.c (CALL_GF1, CALL_GF2, CALL_GF3, CALL_GF4): Use scm_call_N. * strings.c: #include "libguile/deprecation.h".
2001-06-14replace "scm_*_t" with "scm_t_*".Marius Vollmer1-4/+4
2001-05-26revert the ill-considered part of the 2001-05-24 changesMichael Livshin1-13/+13
2001-05-24* validate.hMichael Livshin1-16/+16
(SCM_NUM2{SIZE,PTRDIFF,SHORT,USHORT,BITS,UBITS,INT,UINT}[_DEF]): new macros. * unif.h: type renaming: scm_array -> scm_array_t scm_array_dim -> scm_array_dim_t the old names are deprecated, all in-Guile uses changed. * tags.h (scm_ubits_t): new typedef, representing unsigned scm_bits_t. * stacks.h: type renaming: scm_info_frame -> scm_info_frame_t scm_stack -> scm_stack_t the old names are deprecated, all in-Guile uses changed. * srcprop.h: type renaming: scm_srcprops -> scm_srcprops_t scm_srcprops_chunk -> scm_srcprops_chunk_t the old names are deprecated, all in-Guile uses changed. * gsubr.c, procs.c, print.c, ports.c, read.c, rdelim.c, ramap.c, rw.c, smob.c, sort.c, srcprop.c, stacks.c, strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c, unif.c, values.c, vectors.c, vports.c, weaks.c: various int/size_t -> size_t/scm_bits_t changes. * random.h: type renaming: scm_rstate -> scm_rstate_t scm_rng -> scm_rng_t scm_i_rstate -> scm_i_rstate_t the old names are deprecated, all in-Guile uses changed. * procs.h: type renaming: scm_subr_entry -> scm_subr_entry_t the old name is deprecated, all in-Guile uses changed. * options.h (scm_option_t.val): unsigned long -> scm_bits_t. type renaming: scm_option -> scm_option_t the old name is deprecated, all in-Guile uses changed. * objects.c: various long -> scm_bits_t changes. (scm_i_make_class_object): flags: unsigned long -> scm_ubits_t * numbers.h (SCM_FIXNUM_BIT): deprecated, renamed to SCM_I_FIXNUM_BIT. * num2integral.i.c: new file, multiply included by numbers.c, used to "templatize" the various integral <-> num conversion routines. * numbers.c (scm_mkbig, scm_big2num, scm_adjbig, scm_normbig, scm_copybig, scm_2ulong2big, scm_dbl2big, scm_big2dbl): deprecated. (scm_i_mkbig, scm_i_big2inum, scm_i_adjbig, scm_i_normbig, scm_i_copybig, scm_i_short2big, scm_i_ushort2big, scm_i_int2big, scm_i_uint2big, scm_i_long2big, scm_i_ulong2big, scm_i_bits2big, scm_i_ubits2big, scm_i_size2big, scm_i_ptrdiff2big, scm_i_long_long2big, scm_i_ulong_long2big, scm_i_dbl2big, scm_i_big2dbl, scm_short2num, scm_ushort2num, scm_int2num, scm_uint2num, scm_bits2num, scm_ubits2num, scm_size2num, scm_ptrdiff2num, scm_num2short, scm_num2ushort, scm_num2int, scm_num2uint, scm_num2bits, scm_num2ubits, scm_num2ptrdiff, scm_num2size): new functions. * modules.c (scm_module_reverse_lookup): i, n: int -> scm_bits_t.x * load.c: change int -> size_t in various places (where the variable is used to store a string length). (search-path): call scm_done_free, not scm_done_malloc. * list.c (scm_ilength): return a scm_bits_t, not long. some other {int,long} -> scm_bits_t changes. * hashtab.c: various [u]int -> scm_bits_t changes. scm_ihashx_closure -> scm_ihashx_closure_t (and made a typedef). (scm_ihashx): n: uint -> scm_bits_t use scm_bits2num instead of scm_ulong2num. * gsubr.c: various int -> scm_bits_t changes. * gh_data.c (gh_scm2double): no loss of precision any more. * gh.h (gh_str2scm): len: int -> size_t (gh_{get,set}_substr): start: int -> scm_bits_t, len: int -> size_t (gh_<num>2scm): n: int -> scm_bits_t (gh_*vector_length): return scm_[u]size_t, not unsigned long. (gh_length): return scm_bits_t, not unsigned long. * fports.h: type renaming: scm_fport -> scm_fport_t the old name is deprecated, all in-Guile uses changed. * fports.c (fport_fill_input): count: int -> scm_bits_t (fport_flush): init_size, remaining, count: int -> scm_bits_t * debug.h (scm_lookup_cstr, scm_lookup_soft, scm_evstr): removed those prototypes, as the functions they prototype don't exist. * fports.c (default_buffer_size): int -> size_t (scm_fport_buffer_add): read_size, write_size: int -> scm_bits_t default_size: int -> size_t (scm_setvbuf): csize: int -> scm_bits_t * fluids.c (n_fluids): int -> scm_bits_t (grow_fluids): old_length, i: int -> scm_bits_t (next_fluid_num, scm_fluid_ref, scm_fluid_set_x): n: int -> scm_bits_t (scm_c_with_fluids): flen, vlen: int -> scm_bits_t * filesys.c (s_scm_open_fdes): changed calls to SCM_NUM2LONG to the new and shiny SCM_NUM2INT. * extensions.c: extension -> extension_t (and made a typedef). * eval.h (SCM_IFRAME): cast to scm_bits_t, not int. just so there are no nasty surprises if/when the various deeply magic tag bits move somewhere else. * eval.c: changed the locals used to store results of SCM_IFRAME, scm_ilength and such to be of type scm_bits_t (and not int/long). (iqq): depth, edepth: int -> scm_bits_t (scm_eval_stack): int -> scm_bits_t (SCM_CEVAL): various vars are not scm_bits_t instead of int. (check_map_args, scm_map, scm_for_each): len: long -> scm_bits_t i: int -> scm_bits_t * environments.c: changed the many calls to scm_ulong2num to scm_ubits2num. (import_environment_fold): proc_as_ul: ulong -> scm_ubits_t * dynwind.c (scm_dowinds): delta: long -> scm_bits_t * debug.h: type renaming: scm_debug_info -> scm_debug_info_t scm_debug_frame -> scm_debug_frame_t the old names are deprecated, all in-Guile uses changed. (scm_debug_eframe_size): int -> scm_bits_t * debug.c (scm_init_debug): use scm_c_define instead of the deprecated scm_define. * continuations.h: type renaming: scm_contregs -> scm_contregs_t the old name is deprecated, all in-Guile uses changed. (scm_contregs_t.num_stack_items): size_t -> scm_bits_t (scm_contregs_t.num_stack_items): ulong -> scm_ubits_t * continuations.c (scm_make_continuation): change the type of stack_size form long to scm_bits_t. * ports.h: type renaming: scm_port_rw_active -> scm_port_rw_active_t (and made a typedef) scm_port -> scm_port_t scm_ptob_descriptor -> scm_ptob_descriptor_t the old names are deprecated, all in-Guile uses changed. (scm_port_t.entry): int -> scm_bits_t. (scm_port_t.line_number): int -> long. (scm_port_t.putback_buf_size): int -> size_t. * __scm.h (long_long, ulong_long): deprecated (they pollute the global namespace and have little value besides that). (SCM_BITS_LENGTH): new, is the bit size of scm_bits_t (i.e. of an SCM handle). (ifdef spaghetti): include sys/types.h and sys/stdtypes.h, if they exist (for size_t & ptrdiff_t) (scm_sizet): deprecated. * Makefile.am (noinst_HEADERS): add num2integral.i.c
2001-05-07(gh_lookup): Call gh_module_lookup withMarius Vollmer1-1/+1
`scm_current_module ()', not `#f'. (gh_module_lookup): Expect a module instead of an obarray as first argument and do lookup in that module.
2001-05-02* gh.h (gh_init_guile, gh_make_string, gh_string_length,Marius Vollmer1-0/+10
gh_string_ref, gh_string_set_x, gh_substring, gh_string_append): New.
2001-04-28* gh.h (gh_int2scmb): deprecation expired - removed.Rob Browning1-8/+0
2001-03-15* Use const specifier in function signature of gh_ints2scm.Dirk Herrmann1-2/+2
2000-07-06* Don't include <stdio.h> in gh.h. Thanks to Han-Wen Nienhuys.Dirk Herrmann1-2/+0
2000-05-18* Where possible, accept const pointers as parameters.Dirk Herrmann1-24/+31
2000-03-19 * *.[hc]: add Emacs magic at the end of file, to ensure GNUMichael Livshin1-0/+6
indentation style.
2000-03-14*** empty log message ***Mikael Djurfeldt1-5/+1
2000-01-11* dynl.c, error.c, eval.c, feature.c, filesys.c, fports.c, list.c, load.c,Greg J. Badros1-1/+1
net_db.c, read.c, socket.c: Update error messages to use ~A for %s, ~S for %S to work with new `simple-format' format and be standardized better. * print.h, print.c (scm_simple_format): Added `simple-format' primitive. It's the old scm_display_error, with ARGS now a rest parameter, and the destination first instead of last (and a couple new capabilities inspired by `format' -- #t as destination means current-output-port, #f means return the formatted text as a string. * gh.h, gh_data.c, ports.h, ports.c: Added some missing const specifications. * backtrace.c (scm_display_error_message): Rewrote to use scm_simple_format() procedure. * __scm.h: Added commented-out #define of GUILE_DEBUG_FREELIST
1999-12-10*** empty log message ***Greg J. Badros1-8/+8
1999-11-19 * acconfig.h: add HAVE_ARRAYS.Gary Houston1-1/+4
* configure.in: add --disable-arrays option, probably temporary. * the following changes allow guile to be built with the array "module" omitted. some of this stuff is just tc7 type support, which wouldn't be needed if uniform array types were converted to smobs. * tag.c (scm_utag_bvect ... scm_utag_cvect): don't define unless HAVE_ARRAYS. (scm_tag): don't check array types unless HAVE_ARRAYS. * sort.c (scm_restricted_vector_sort_x, scm_sorted_p): remove the unused array types. * (scm_stable_sort, scm_sort): don't support vectors if not HAVE_ARRAYS. a bit excessive. * random.c (vector_scale, vector_sum_squares, scm_random_solid_sphere_x, scm_random_hollow_sphere_x, scm_random_normal_vector_x): don't define unless HAVE_ARRAYS. * gh_data.c (makvect, gh_chars2byvect, gh_shorts2svect, gh_longs2ivect, gh_ulongs2uvect, gh_floats2fvect, gh_doubles2dvect, gh_uniform_vector_length, gh_uniform_vector_ref): don't define unless HAVE_ARRAYS. (gh_scm2chars, gh_scm2shorts, gh_scm2longs, gh_scm2floats, gh_scm2doubles): don't check vector types if not HAVE_ARRAYS. * eq.c (scm_equal_p), eval.c (SCM_CEVAL), print.c (scm_iprin1), gc.c (scm_gc_mark, scm_gc_sweep), objects.c (scm_class_of): don't support the array types unless HAVE_ARRAYS is defined. * tags.h: make nine tc7 types conditional on HAVE_ARRAYS. * read.c (scm_lreadr): don't check for #* unless HAVE_ARRAYS is defined (this should use read-hash-extend). * ramap.c, unif.c: don't check whether ARRAYS is defined. * vectors.c (scm_vector_set_length_x): moved here from unif.c. call scm_uniform_element_size if HAVE_ARRAYS. vectors.h: prototype too. * unif.c (scm_uniform_element_size): new procedure. * init.c (scm_boot_guile_1): don't call scm_init_ramap or scm_init_unif unless HAVE_ARRAYS is defined. * __scm.h: don't define ARRAYS. * Makefile.am (EXTRA_libguile_la_SOURCES): unif.c and ramap.c moved here from libguile_la_SOURCES. * Makefile.am (ice9_sources): add arrays.scm. * boot-9.scm: load arrays.scm if 'array is provided. * arrays.scm: new file with stuff from boot-9.scm.
1999-10-261999-10-26 Mark Galassi <rosalia@lanl.gov>Mark Galassi1-1/+1
* gh.h, gh_data.c (gh_symbol2scm): changed gh_symbol2scm() to take a const char * argument, upon suggestion from Lynn Winebarger.
1999-08-17* gh.h (gh_vector_to_list): Bugfix. (Thanks to Frank Cieslok.)Mikael Djurfeldt1-1/+1
1998-10-26* numbers.c (num2long): As a software archeologist, I'm proud ofMikael Djurfeldt1-1/+10
this finding! :) Preliminary dating suggests an almost 4 year old remnant from the SCM ancestor. The sample has been removed from the finding site and is now safely stored in the repository. * numbers.h: Removed prototype for num2long. * unif.c (scm_array_set_x): Use scm_num2long instead of num2long. * gh_data.c (gh_scm2doubles): Make it possible to pass result array as second arg. (gh_chars2byvect, gh_shorts2svect, gh_floats2fvect, gh_scm2chars, gh_scm2shorts, gh_scm2longs, gh_scm2floats): New functions. * gh.h: Updated and added prototypes. * gh_data.c (gh_ints2scm): Handle integers outside INUM limits.
1998-10-24* gh.h (gh_enter, gh_new_procedure0_0, gh_new_procedure0_1,Jim Blandy1-13/+13
gh_new_procedure0_2, gh_new_procedure1_0, gh_new_procedure1_1, gh_new_procedure1_2, gh_new_procedure2_0, gh_new_procedure2_1, gh_new_procedure2_2, gh_new_procedure3_0, gh_new_procedure4_0, gh_new_procedure5_0): Specify argument types, to appease C++ compilers. (Thanks to Brad Bowman.)
1998-10-19* __scm.h, alist.c, async.c, async.h, backtrace.h, chars.c,Jim Blandy1-1/+1
continuations.c, debug.c, debug.h, dynl-dl.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, error.c, error.h, eval.c, eval.h, feature.c, filesys.c, filesys.h, fports.c, fports.h, gc.c, gc.h, genio.c, genio.h, gh.h, gh_data.c, gsubr.c, gsubr.h, hash.c, hashtab.c, init.c, init.h, ioext.c, ioext.h, kw.c, libguile.h, list.c, list.h, load.c, load.h, mallocs.c, markers.c, mit-pthreads.c, net_db.c, numbers.c, numbers.h, options.c, ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c, procprop.h, procs.c, procs.h, ramap.c, ramap.h, regex-posix.c, regex-posix.h, root.c, root.h, scmsigs.c, scmsigs.h, script.c, script.h, simpos.c, simpos.h, smob.c, smob.h, snarf.h, socket.c, srcprop.c, stackchk.c, stackchk.h, stacks.c, stime.c, stime.h, strings.c, strings.h, strports.c, struct.c, struct.h, symbols.c, symbols.h, tags.h, threads.c, throw.h, unif.c, variable.c, vectors.c, vectors.h, version.h, vports.c, weaks.c: Update copyright years.
1998-09-301998-09-30 Mark Galassi <rosalia@cygnus.com>Mark Galassi1-2/+0
* 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-05* gh.h (gh_int2scmb, gh_uniform_vector_length,Jim Blandy1-1/+4
gh_uniform_vector_ref): Added prototypes.
1998-07-16* gh_data.c, gh.h (gh_ints2scm, gh_longs2ivect,Mikael Djurfeldt1-0/+3
gh_ulongs2uvect): New procedures. (Complements gh_doubles2scm and gh_doubles2dvect.)
1998-06-09* gh.h (gh_memv, gh_member): Fixed typos in macro definitions.Mikael Djurfeldt1-2/+3
(gh_write): Added declaration. (Thanks to Eiichi Takamori.)
1998-03-01minor: remove some commented out old codeMark Galassi1-7/+0
1998-01-20* gh.h, gh_data.c (gh_doubles2scm, gh_doubles2dvect,Mikael Djurfeldt1-0/+5
gh_doubles2scm): New functions.
1997-11-26gh bug fixAnthony Green1-0/+7
1997-11-25completing changes to gh_repl and uniform array stuffMark Galassi1-1/+1
1997-10-20a couple of name changes for consistency with ! -> _xMark Galassi1-1/+1
1997-10-20implemented several missing gh_ functions, mostly related to lists and pairsMark Galassi1-0/+21
1997-10-13 * gh_test_repl.c (c_vector_test): same as gh_test_c.cMark Galassi1-1/+12
* gh_test_c.c (c_vector_test): some improvements on the vector routines test. * gh.h (gh_vector): this used to exist but do the wrong thing. Now it (almost) does the right thing, though it takes a list instead of the individual arguments. I need to see how it could be done right. (gh_list_to_vector): added this function as a macro. Corresponds to Scheme's (list->vector ...). (gh_vector_to_list): added this function as a macro. Corresponds to Scheme's (vector->list ...). * gh_data.c (gh_vector_ref): renamed from gh_vref to gh_vector_ref, so that it resembles the Scheme routines more. (gh_vector_set): renamed from gh_vset to gh_vector_set, so that it resembles the Scheme routines more. (gh_make_vector): this used to be (stupidly) called gh_vector(). This is the right name, since it does the same thing as the Scheme (make-vector ...) procedure.
1997-09-15* list.h (SCM_LISTn): New macros. Make list creation in C codeMikael Djurfeldt1-1/+1
prettier. The idea comes from STk. * sequences.h, sequences.c, append.h, append.c: Removed. These files implemented non-R4RS operations which would encourage non-portable programming style and less easy-to-read code. * Makefile.am (sequences.h, sequences.c, append.h, append.c): Removed. * libguile.h, eval.c, init.c, stime.c, unif.c: Removed #include sequences.h, #include append.h. * gh.h, gh_list.c: Renamed gh_list_length --> gh_length. * list.h, list.c: Renamed scm_list_length --> scm_length, scm
1997-05-26* Lots of files: New address for FSF.Jim Blandy1-3/+3
1997-04-24Functions for finding variable bindings, grace à Tim Pierce.Jim Blandy1-0/+3
* gh_data.c (gh_lookup, gh_module_lookup): New functions. * gh.h (gh_lookup, gh_module_lookup): New prototypes.
1997-04-14* gh_init.c (gh_standard_handler): Return SCM_BOOL_F, not garbage.Jim Blandy1-0/+195
Merge GH interface library into libguile. * gh.h, gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c, gh_test_c, gh_test_c.c, gh_test_repl, gh_test_repl.c: New files. * Makefile.am (libguile_la_SOURCES): Add gh_data.c, gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c, gh_predicates.c. Move _scm.h to ... (EXTRA_libguile_la_SOURCES): ... here. (pkginclude_HEADERS): Add variable, to get gh.h installed. (THREAD_LIBS, check_ldadd, check_PROGRAMS, gh_test_c_SOURCES, gh_test_c_LDADD, gh_test_repl_SOURCES, gh_test_repl_LDADD): New variables, describing how to build the gh test programs. * configure.in: Check for -lm, -lsocket, -lnsl; we need this to build the test programs, and we probably should have been linking libguile.la against them all along, to support AIX shared libs. Add cflags for threads to CFLAGS; add libs for threads to new variable THREAD_LIBS, used in Makefile.am. * ChangeLog-gh: log from old `gh' subdirectory. * Makefile.in, configure, scmconfig.h.in: Rebuilt.