This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can the Guile library be reentrant


strubin@rulabinsky.com (Steven Rubin) writes:

> Is there an alternate to "gh_enter" which does some initialization and then
> returns, so that the C program can then re-enter when it needs to do
> evaluations?

You can look at the scwm code -- we have our main event loop written in
C, just doing scheme callbacks as appropriate.  See:

http://web.mit.edu/mstachow/www/scwm.html

for the distribution. scwm.c contains the startup code, and in
particular scwm_gh_enter and scwm_gh_launch_pad.

Good luck!

Greg