From b7688714bbae91c27893b1ac3fe00bc4d577dac1 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 8 Jun 2019 12:29:17 +0200 Subject: [PATCH] :art: Externalize types --- include/type.h | 2 +- src/oo/type.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.43.0