octave-maintainers
[Top][All Lists]
Advanced

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

Re: Patch to Octave shutdown procedures


From: Jaroslav Hajek
Subject: Re: Patch to Octave shutdown procedures
Date: Tue, 19 May 2009 21:21:23 +0200

On Tue, May 19, 2009 at 5:17 PM, John Swensen <address@hidden> wrote:
>
> On May 19, 2009, at 11:00 AM, Jaroslav Hajek wrote:
>
>>
>> Aren't you calling octave_main with the embedded flag? If not, why?
>>
>>
> I am not calling octave_main with the embedded flag.  If you look at the
> source for octave_main, you will see that the embedded flag causes
> octave_main to return before main_loop is ever called.  With my IDE, I am
> running the full Octave interpreter inside of the GTK VTE terminal emulator
> widget.  I, in fact, want the main_loop to be called.
>
> I think the embedded flag is more for people who want to embed a
> non-interactive session of Octave within their own program.
>
> John Swensen
>

But why don't you call octave_main with embedded = true and just call
main_loop afterwards?

octave_main (argc, argv, true);

// possibly call install_signal_handlers () and adjust the handlers

main_loop ();

// cleanup
do_octave_atexit ();
sysdep_cleanup ();

what's the problem with this scheme?


-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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