From: fennecdjay Date: Sat, 8 Jun 2019 10:29:17 +0000 (+0200) Subject: :art: Externalize types X-Git-Tag: nightly~2443^2~8 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b7688714bbae91c27893b1ac3fe00bc4d577dac1;p=gwion.git :art: Externalize types --- diff --git a/include/type.h b/include/type.h index e9cc2a34..02b4c831 100644 --- a/include/type.h +++ b/include/type.h @@ -23,7 +23,7 @@ struct Type_ { ae_flag flag; }; -Type t_void, t_int, t_bool, t_float, t_dur, t_time, t_now, t_complex, t_polar, t_vec3, t_vec4, +extern Type t_void, t_int, t_bool, t_float, t_dur, t_time, t_now, t_complex, t_polar, t_vec3, t_vec4, t_null, t_object, t_shred, t_fork, t_event, t_ugen, t_string, t_ptr, t_array, t_gack, t_function, t_fptr, t_vararg, t_lambda, t_class, t_union, t_undefined, t_auto; diff --git a/src/oo/type.c b/src/oo/type.c index 41926714..1778b122 100644 --- a/src/oo/type.c +++ b/src/oo/type.c @@ -158,3 +158,6 @@ ANN m_str get_type_name(const Env env, const m_str s, const m_uint index) { c[i] = '\0'; return strlen(c) ? s_name(insert_symbol(c)) : NULL; } +Type t_void, t_int, t_bool, t_float, t_dur, t_time, t_now, t_complex, t_polar, t_vec3, t_vec4, + t_null, t_object, t_shred, t_fork, t_event, t_ugen, t_string, t_ptr, t_array, t_gack, + t_function, t_fptr, t_vararg, t_lambda, t_class, t_union, t_undefined, t_auto;