Mike Gran writes:
> I find that the backtrace output in the REPL is too constrained
> my verbose code. The attached patch would let one set the
> width of the backtrace and locals meta-commands.
> index d4b3e4a..40d720d 100644
> --- a/module/system/repl/command.scm
> +++ b/module/system/repl/co
I wrote:
> It seems to me that *width* should not be a global variable, but rather
> a per-repl setting. It probably belongs in the options field of the
> record, no? See "repl-default-options" in repl/common.scm.
Better yet, maybe it should be an optional attribute of the output port,
which wo
Hi Guilers!
I agree with your suggestions.
I think ‘stable-2.0’ should only get changes that preserve the C ABI and
Scheme interface.
Additions of new public functions/procedures or modules are generally
welcome though they should discussed on a case-by-case basis IMO.
Thanks,
Ludo’.
Hi!
"Andy Wingo" writes:
> fix a couple leaks in ports.c. thanks valgrind!
>
> * libguile/ports.c (scm_i_remove_port): Fix a case in which ports
> explictly closed via close-port would leak their iconv_t data.
> (scm_set_port_encoding_x): scm_i_set_port_encoding_x strdu
On Mon 21 Feb 2011 21:50, l...@gnu.org (Ludovic Courtès) writes:
>> --- a/libguile/ports.c
>> +++ b/libguile/ports.c
>> @@ -661,6 +661,19 @@ scm_i_remove_port (SCM port)
>>scm_port_non_buffer (p);
>>p->putback_buf = NULL;
>>p->putback_buf_size = 0;
>> +
>> + if (p->input_cd != (iconv_
> From:Mark H Weaver
>
> Mark wrote:
> > It seems to me that *width* should not be a global variable, but rather
> > a per-repl setting. It probably belongs in the options field of the
> > record, no? See "repl-default-options" in
> repl/common.scm.
For my personal case, when I run the REPL
hi all.
I found SCM_BOOL_T will convert to #nil in the Guile.
If we write c-function like this:
SCM_DEFINE(scm_my_init, "my-init", 1, 0, 0,
(SCM flags),
"Initializes my env.")
#define FUNC_NAME s_scm_my_init
{
SCM_ASSERT(scm_is_integer(flags)