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] |
>> Looking at the SCWM source it seems to depend on having main >> call a gh_enter that doesn't return. I'm really thinking about >> adding guile to an application where I can't easily capture the >> main. Greg> But you can always capture main in C code: Greg> main -> renamed to new_main Greg> introduce new main that calls gh_enter and returns control Greg> to new_main. Greg> I think Maciej's patch for Guile may handle this more Greg> elegantly, but in principle it shouldn't make a difference. We've been through this many times. It makes a big difference, because other applications may not put up with the main() being captured. Many examples have been posted to this list.