guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help needed on strange random error (Guile 2.0.9)


From: Sun Yijiang
Subject: Re: Help needed on strange random error (Guile 2.0.9)
Date: Fri, 13 Dec 2013 13:52:05 +0800

It prints #<directory (guile-user) ........>

However, I cannot reproduce this problem any more.


Steve

2013/12/10 Ludovic Courtès <address@hidden>:
> Sun Yijiang <address@hidden> skribis:
>
>> static void _main(void *data, int argc, char* argv[]) {
>>     // smob definitions
>>     DEFINE_SMOB(....)
>>     ...
>>
>>     scm_c_define_module("builtin", init_builtins, NULL);
>>     scm_c_eval_string(
>>         "(current-warning-port (%make-void-port \"w\"))"
>>         "(read-set! keywords 'prefix)"
>>         "(add-to-load-path \"/my/scm/path\")"
>>         "(use-modules (builtin) (ice-9 readline)) (activate-readline)"
>>         );
>>     scm_shell(argc, argv);
>> }
>
> Could you add this line right after the ‘scm_c_define_module’ line:
>
>   scm_write (scm_current_module (), scm_current_error_port ());
>
> What does it print?
>
> Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]