Commit 4de72424 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add terminating 0 to arg types

parent 2bce172b
......@@ -81,8 +81,8 @@ void ENV_setup(void)
ENV_class = class_new(gensym("ENV"), (t_newmethod)ENV_new, 0,
sizeof(t_ENV), 0, 0);
class_addmethod(ENV_class, (t_method)ENV_RAND_MAX, gensym("RAND_MAX"), 0);
class_addmethod(ENV_class, (t_method)ENV_getenv, gensym("getenv"), A_SYMBOL);
class_addmethod(ENV_class, (t_method)ENV_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL);
class_addmethod(ENV_class, (t_method)ENV_getenv, gensym("getenv"), A_SYMBOL, 0);
class_addmethod(ENV_class, (t_method)ENV_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL, 0);
class_addfloat(ENV_class, ENV_float);
}
......@@ -213,10 +213,10 @@ void proc_setup(void)
proc_class = class_new(gensym("proc"), (t_newmethod)proc_new, 0,
sizeof(t_proc), 0, 0);
class_addmethod(proc_class, (t_method)proc_cpuinfo, gensym("cpuinfo"), 0);
class_addmethod(proc_class, (t_method)proc_proc, gensym("proc"), A_SYMBOL);
class_addmethod(proc_class, (t_method)proc_proc, gensym("proc"), A_SYMBOL, 0);
//class_addmethod(proc_class, (t_method)proc_RAND_MAX, gensym("RAND_MAX"), 0);
//class_addmethod(proc_class, (t_method)proc_getenv, gensym("getenv"), A_SYMBOL);
//class_addmethod(proc_class, (t_method)proc_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL);
//class_addmethod(proc_class, (t_method)proc_getenv, gensym("getenv"), A_SYMBOL, 0);
//class_addmethod(proc_class, (t_method)proc_setenv, gensym("setenv"), A_SYMBOL, A_SYMBOL, 0);
class_addfloat(proc_class, proc_float);
}
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