1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00
Commit graph

263 commits

Author SHA1 Message Date
Thien-Thi Nguyen
7199029717 *** empty log message *** 2002-03-14 07:57:42 +00:00
Thien-Thi Nguyen
6a9a7bf27a (snarfcppopts): New var.
(.c.x): Use $(snarfcppopts). Rework guile-snarf usage.
2002-03-14 07:55:34 +00:00
Stefan Jahn
edb810bb84 2002-02-27 Stefan Jahn <stefan@lkcc.org>
* Makefile.am (SUBDIRS): Added the `am' directory.

2002-02-27  Stefan Jahn  <stefan@lkcc.org>

        * gh.texi (scm transition summary): Documented some more
        gh equivalents and removed appropriate FIXME's.

2002-02-27  Stefan Jahn  <stefan@lkcc.org>

        * Makefile.am (EXTRA_DIST): Added the `LIBGUILEREADLINE-VERSION'
        file.

2002-02-27  Stefan Jahn  <stefan@lkcc.org>

        * convert.i.c, convert.c: Better range checking.

        * inet_aton.c, fports.c: Commented the inclusion of <winsock2.h>.

        * deprecation.c (vsnprintf): Define to `_vsnprintf' for
        Windows (MinGW).
2002-02-27 15:41:01 +00:00
Thien-Thi Nguyen
f99b18faa6 *** empty log message *** 2002-02-26 07:18:32 +00:00
Thien-Thi Nguyen
88a1ce4c0e (LIBGUILEREADLINE-VERSION): Use this file from $srcdir. 2002-02-26 07:16:12 +00:00
Rob Browning
8794fdcad0 *** empty log message *** 2002-02-25 04:59:49 +00:00
Rob Browning
cbab485527 * configure.in: source ./LIBGUILEREADLINE-VERSION for version info
and then AC_SUBST the resulting variables:
LIBGUILEREADLINE_INTERFACE_CURRENT,
LIBGUILEREADLINE_INTERFACE_REVISION,
LIBGUILEREADLINE_INTERFACE_AGE, and
LIBGUILEREADLINE_INTERFACE.
2002-02-25 04:59:01 +00:00
Rob Browning
0bb2ba7ac1 * Makefile.am (libguilereadline_la_LDFLAGS): use
@LIBGUILEREADLINE_INTERFACE@ for version information.
2002-02-25 04:58:48 +00:00
Rob Browning
c5a4c0e6f2 * LIBGUILEREADLINE-VERSION: new file containing shared lib
versioning information.
2002-02-25 04:56:04 +00:00
Thien-Thi Nguyen
88ac59a9e6 *** empty log message *** 2002-02-13 04:20:03 +00:00
Thien-Thi Nguyen
cd68fcc170 (AUTOMAKE_OPTIONS): Replace "gnu" with "foreign".
This undoes 1.14, reverting to 1.13.
2002-02-13 04:17:51 +00:00
Thien-Thi Nguyen
51477c02e0 *** empty log message *** 2002-02-09 05:44:39 +00:00
Thien-Thi Nguyen
cc4c7bd4dc (AUTOMAKE_OPTIONS): Replace "foreign" with "gnu". 2002-02-09 05:43:48 +00:00
Neil Jerram
bbd26b5ae5 * Rename call-with-readline-completion-function' to with-readline-completion-function'.
* More tests for Elisp nil value.
* Development work on Elisp translator.
2002-01-30 00:03:40 +00:00
Neil Jerram
ee148ae7b9 * Add ETAGS_ARGS decls so that more stuff gets tagged. 2001-12-01 15:55:54 +00:00
Stefan Jahn
8f99e3f38b 2001-11-04 Stefan Jahn <stefan@lkcc.org>
* NEWS: Corrected remarks about SCM_API.

        * configure.in: Defining USE_DLL_IMPORT definition to indicate
        usage of DLL import macros in `libguile/__scm.h'.
        (LIBOBJS): Removed `fileblocks.o' from the list of object files.
        Somehow Jim Blandy's patch from 1997 did not survive.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * configure.in (EXTRA_DEFS): Follow-up patch.  Using SCM_IMPORT
        instead of __SCM_IMPORT__.

        * readline.c (scm_readline_init_ports): Disable input/output
        stream redirection for Win32.  The readline package for Win32
        does not support this.  The guile-readline library works fine
        for command line editing.

        * readline.h (SCM_RL_API): Renamed __FOO__ macros into FOO.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * Makefile.am (libguile_la_LIBADD): Added $(THREAD_LIBS_LOCAL)
        here (was at guile_LDADD) which describes the dependency
        correctly and allows a clean build on Win32.

        * __scm.h (SCM_API): Follow-up patch.  Renamed __FOO__ macros
        into FOO.

        * __scm.h: USE_DLL_IMPORT indicates the usage of the DLL
        import macros for external libraries (libcrypt, libqthreads,
        libreadline and libregex).

        * coop-defs.h: Include <winsock2.h> for `struct timeval'.

        * posix.c (flock): Added support for flock() in M$-Windows.

        * guile.c (SCM_IMPORT): Follow-up patch.  Use SCM_IMPORT instead
        of __SCM_IMPORT__.

        * fports.c (getflags): Differentiate reading and writing pipes
        descriptors.

        * filesys.c (S_IS*): Redefine all of the S_IS*() macros for
        M$-Windows.

        * coop.c (coop_condition_variable_timed_wait_mutex): Use
        conditionalized error code if `ETIMEDOUT' is not available.
        (scm_thread_usleep): Remove bogus declaration of `struct timeval
        timeout'.

        * numbers.c (PTRDIFF_MIN): Moved this definition where it actually
        belongs.  That is because NO_PREPRO_MAGIC gets undefined after
        each inclusion of `num2integral.i.c'.
        (SIZE_MAX): Define NO_PREPRO_MAGIC if SIZE_MAX is undefined.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * md/Makefile.am (EXTRA_DIST): Added `i386.asm'.

        * md/i386.asm: New file.  Contains the Intel syntax version for
        nasm/tasm/masm of the file `i386.s'.

        * qt.h.in: Definition of QT_API, QT_IMPORT and QT_EXPORT.
        Prefixed each symbols which is meant to go into a DLL.

        * Makefile.am (libqthreads_la_LDFLAGS):  Put `-no-undefined'
        into LDFLAGS to support linkers which do not allow unresolved
        symbols inside shared libraries.
        (EXTRA_DIST): Add `libqthreads.def', which is an export file
        definition for M$-Windows.  It defines exported symbols.  This is
        necessary because the M$VC linker does not know how to export
        assembler symbols into a DLL.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * srfi-13.h, srfi-14.h, srfi-4.h: Follow-up patch.  Renamed
        __FOO__ macros into FOO.

2001-11-04  Stefan Jahn  <stefan@lkcc.org>

        * tests/ports.test: Run (close-port) before (delete-file) if
        necessary/advisory.
2001-11-04 15:52:30 +00:00
Marius Vollmer
257b6d408d *** empty log message *** 2001-11-02 00:06:57 +00:00
Marius Vollmer
7500c31618 Defintion of SCM_RL_API. Prefixed each exported
symbol with SCM_RL_API.
2001-11-02 00:06:49 +00:00
Marius Vollmer
5e90b6ac04 Include io.h' and exclude sys/time.h' for MinGW. 2001-11-02 00:06:34 +00:00
Marius Vollmer
78f8126600 Define AC_LIBTOOL_WIN32_DLL to build clean dlls
on Win32 platforms.
Define extra compiler flags necessary to build clean dlls.
2001-11-02 00:06:26 +00:00
Marius Vollmer
7ed1380067 Put `-export-dynamic -no-undefined' into LDFLAGS
and add the library `libguile.la' to support linkers which do not
allow unresolved symbols inside shared libraries.
2001-11-02 00:06:18 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Dirk Herrmann
fbd5c45215 * Using provided?´ instead of feature?´. 2001-08-31 09:21:03 +00:00
Marius Vollmer
fada26b27e *** empty log message *** 2001-08-26 21:54:33 +00:00
Marius Vollmer
7e8ef316ad Use load-extension instead of explicit dynamic-link/dynamic-call.
Removed ".so" extension from library name.
2001-08-26 21:52:33 +00:00
Neil Jerram
0aa7a7ceba * Removed texinfo.tex - it is supplied by Automake.
* Added some entries to .cvsignore files.
2001-08-24 11:06:33 +00:00
Neil Jerram
ee03460326 * Added `call-with-readline-completion-function'. 2001-08-02 19:45:07 +00:00
Martin Grabmüller
9cc64c3ea3 * Makefile.am, readline.scm: Updated copyright notice. 2001-07-19 20:23:03 +00:00
Thien-Thi Nguyen
dbb640bd08 *** empty log message *** 2001-07-09 07:43:48 +00:00
Thien-Thi Nguyen
a06e3a75b2 Remove "face-lift" comment. 2001-07-09 07:36:48 +00:00
Dirk Herrmann
5b2a7b5906 * Don't use SCM_LISTn any more. 2001-06-30 19:28:26 +00:00
Marius Vollmer
b629af45cb *** empty log message *** 2001-06-14 19:52:35 +00:00
Marius Vollmer
593be5d260 Replace "scm_*_t" with "scm_t_*". 2001-06-14 19:51:54 +00:00
Marius Vollmer
4ff9f8254e *** empty log message *** 2001-06-14 17:43:39 +00:00
Marius Vollmer
dcb17187c3 * configure.in: Check for rl_filename_completion_function.
* readline.c (s_scm_filename_completion_function): Use
rl_filename_completion_function instead of
filename_completion_function, if we have it.
(scm_init_readline): Use rl_compentry_func_t instead if Function
when _RL_FUNCTION_TYPEDEF is defined.
2001-06-14 17:42:45 +00:00
Marius Vollmer
2e7d963d97 * readline.h (scm_clear_history): New prototype. 2001-06-14 17:41:51 +00:00
Dirk Herrmann
e81d98ec2d * Introduce SCM_UNUSED and mark unused function parameters.
* Introduce SCM_DEBUG_PAIR_ACCESSES.
* Extend the possibilities of SCM_DEBUG_CELL_ACCESSES.
2001-06-07 21:12:19 +00:00
Marius Vollmer
c794483cc0 *** empty log message *** 2001-06-03 01:07:06 +00:00
Marius Vollmer
691f5a4d2d Added AC_PREREQ(2.50) and minimally changed for
autoconf 2.50.  This is mostly so that the `transparent autoconf
wrapper' on Debian picks the right version of autoconf.
2001-06-03 00:59:23 +00:00
Michael Livshin
305bf93c22 * Makefile.am (libguilereadline_la_SOURCES): removed readline.x
from here (not needed).
(CLEANFILES): added *.x (and removed from DISTCLEANFILES).
(MKDEP): copied from libguile/Makefile.am.  not that it matters
now, but it will if we stop using BUILT_SOURCES for some reason.
2001-05-31 12:45:07 +00:00
Martin Grabmüller
90d892e32e Make it compile with --disable-deprecated.
* readline.h: scm_option->scm_option_t.

	* readline.c (stream_from_fport): scm_fport->scm_fport_t;
	scm_option->scm_option_t.
2001-05-24 06:51:42 +00:00
Michael Livshin
1be6b49ccb * validate.h
(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-24 00:50:51 +00:00
Marius Vollmer
f3f9dcbc5d *** empty log message *** 2001-05-15 15:00:31 +00:00
Marius Vollmer
296ff5e78b Merged from mvo-vcell-cleanup-1-branch. 2001-05-15 14:59:42 +00:00
Marius Vollmer
1e177a8f62 *** empty log message *** 2001-04-10 23:51:13 +00:00
Marius Vollmer
8ed35a15e8 * readline.c (scm_clear_history): New function.
* readline.scm (readline-port): Call clear-history on exit.
Thanks to Utz-Uwe Haus.
2001-04-10 23:48:27 +00:00
Keisuke Nishida
ffdeebc3a9 * readline.c: Add #include <stdio.h> 2001-03-09 23:31:55 +00:00
Neil Jerram
9155e458e0 * New module (ice-9 buffered-input); use it in (ice-9 readline). 2001-03-05 23:12:57 +00:00
Marius Vollmer
d42b03fd66 *** empty log message *** 2001-01-28 17:56:46 +00:00
Marius Vollmer
539fdb77e0 * readline.scm (make-readline-port): PROMPT becomes PROMPT2 as
soon as GET-CHARACTER returns any character at all that was
previously read.  This makes the continuation prompt appear
properly for partial expressions.  Thanks to Neil Jerram!
2001-01-28 17:56:34 +00:00