Commit bd1ff565 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add default float for Pd's "quit" method (useful for automated build tests)

parent e1a70bcf
......@@ -5416,7 +5416,7 @@ void glob_verifyquit(void *dummy, t_floatarg f)
else
{
post("Quitting Pd...");
glob_quit(0);
glob_quit(0, 0);
}
}
......
......@@ -103,7 +103,8 @@ void glob_init(void)
gensym("filename"), A_SYMBOL, A_SYMBOL, 0);
class_addmethod(glob_pdobject, (t_method)glob_evalfile, gensym("open"),
A_SYMBOL, A_SYMBOL, 0);
class_addmethod(glob_pdobject, (t_method)glob_quit, gensym("quit"), 0);
class_addmethod(glob_pdobject, (t_method)glob_quit, gensym("quit"),
A_DEFFLOAT, 0);
class_addmethod(glob_pdobject, (t_method)glob_verifyquit,
gensym("verifyquit"), A_DEFFLOAT, 0);
class_addmethod(glob_pdobject, (t_method)glob_foo, gensym("foo"), A_GIMME, 0);
......
......@@ -104,6 +104,6 @@ EXTERN int obj_sigoutletindex(t_object *x, int m);
/* misc */
EXTERN void glob_evalfile(t_pd *ignore, t_symbol *name, t_symbol *dir);
EXTERN void glob_initfromgui(void *dummy, t_symbol *s, int argc, t_atom *argv);
EXTERN void glob_quit(void *dummy);
EXTERN void glob_quit(void *dummy, t_floatarg status);
#define __m_imp_h_
#endif /* __m_imp_h_ */
......@@ -1632,7 +1632,7 @@ extern void glob_closeall(void *dummy, t_floatarg fforce);
extern int do_not_redraw;
void glob_quit(void *dummy)
void glob_quit(void *dummy, t_floatarg status)
{
/* If we're going to try to cleanly close everything here, we should
do the same for all open patches and that is currently not the case,
......@@ -1654,6 +1654,6 @@ void glob_quit(void *dummy)
sys_closesocket(sys_guisock);
sys_rmpollfn(sys_guisock);
}
sys_bail(0);
sys_bail(status);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment