[Top][All Lists]

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

why gh_enter()?

From: bajcik
Subject: why gh_enter()?
Date: Fri, 10 Jan 2003 21:49:01 +0100
User-agent: Mutt/1.4i


Why libguile needs this function? I use few script languages, each in
another plugin. This function made me to do use this solution:

Plugin with guile sets special variable to GUILE_main(). After plugins
initialisation main will call GUILE_main(), and - later - will be called
again to do it's job.

over gdb:

#0  main (argc=2, argv=0xbffff8b4) at main.c:146
#1  0x004b82b2 in GUILE_main_inner () from 
#2  0x004f5327 in gh_call3 () from /usr/lib/
#3  0x004f8cfb in scm_boot_guile () from /usr/lib/
#4  0x0051ddb5 in scm_internal_lazy_catch () from /usr/lib/
#5  0x004f8ca9 in scm_boot_guile () from /usr/lib/
#6  0x004f89a0 in scm_boot_guile () from /usr/lib/
#7  0x004f535f in gh_enter () from /usr/lib/
#8  0x004b82d7 in GUILE_main () from /home/bajcik/.duskc/plugins/
#9  0x0806f0b6 in main (argc=2, argv=0xbffff8b4) at main.c:149
#10 0x00398a06 in __libc_start_main () from /lib/

I can't return from main() via "return" or exit() (This time plugin with
guile is dlclose()d ); I use _exit() to avoid seg-fault

Is gh_enter() nesesary?

.----- Krzysztof Garus ----- --.
| - proszę o krytykę :)  |

reply via email to

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