diff --git a/tools/qfcc/include/class.h b/tools/qfcc/include/class.h index 045b16b20..e0285a7ca 100644 --- a/tools/qfcc/include/class.h +++ b/tools/qfcc/include/class.h @@ -107,6 +107,8 @@ struct expr_s; struct method_s; struct symbol_s; +int is_id (const struct type_s *type); + class_t *extract_class (class_type_t *class_type); const char *get_class_name (class_type_t *class_type, int pretty); struct symbol_s *class_symbol (class_type_t *class_type, int external); diff --git a/tools/qfcc/include/type.h b/tools/qfcc/include/type.h index f0e581e2f..2e08ffa5e 100644 --- a/tools/qfcc/include/type.h +++ b/tools/qfcc/include/type.h @@ -155,7 +155,6 @@ int is_float (const type_t *type); int is_scalar (const type_t *type); int is_math (const type_t *type); int is_struct (const type_t *type); -int is_id (const type_t *type); int is_class (const type_t *type); int is_array (const type_t *type); int type_assignable (const type_t *dst, const type_t *src); diff --git a/tools/qfcc/source/class.c b/tools/qfcc/source/class.c index 98599301c..d4a713b2d 100644 --- a/tools/qfcc/source/class.c +++ b/tools/qfcc/source/class.c @@ -173,6 +173,18 @@ static struct_def_t object_struct[] = { {0, 0} }; +int +is_id (const type_t *type) +{ + if (type == &type_id) + return 1; + // type may be a qualified id + if (type->type == ev_pointer + && type->t.fldptr.type == type_id.t.fldptr.type) + return 1; + return 0; +} + static const char * class_get_key (const void *class, void *unused) { diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index 3c1b8387c..3a26701bf 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -694,18 +694,6 @@ is_struct (const type_t *type) return 0; } -int -is_id (const type_t *type) -{ - if (type == &type_id) - return 1; - // type may be a qualified id - if (type->type == ev_pointer - && type->t.fldptr.type == type_id.t.fldptr.type) - return 1; - return 0; -} - int is_class (const type_t *type) {