WONKY



LOG | FILES | OVERVIEW


#ifndef WONKY_DEBUG_TYPE_C
#define WONKY_DEBUG_TYPE_C WONKY_DEBUG_TYPE_C
#include <debug_type.h>

_Bool is_valid_type_specifier_enum(enum Type_Specifier type_specifier)
{
	return type_specifier>=0 && type_specifier<TYPE_SPECIFIER_END;
}
_Bool is_valid_type_constraint_enum(enum Type_Constraint type_constraint)
{
	return type_constraint>=0 && type_constraint<TYPE_CONSTRAINT_END;
}
_Bool is_valid_type_signedness_enum(enum Type_Signedness type_signedness)
{
	return type_signedness>=0 && type_signedness<TYPE_SIGNEDNESS_END;
}

_Bool is_valid_type(struct Type *type)
{
	return is_valid_type_specifier_enum(type->specifier);
}

_Bool is_valid_type_error(struct Type_Error *type)
{
	return 1;
}
_Bool is_valid_type_struct(struct Type_Struct_Union *type)
{
	return 1;
}
_Bool is_valid_type_union(struct Type_Struct_Union *type)
{
	return 1;
}
_Bool is_valid_type_basic(struct Type_Basic *type)
{
	return 1;
}
_Bool is_valid_type_array(struct Type_Array *type)
{
	return 1;
}
_Bool is_valid_type_variable_length_array(struct Type_Variable_Length_Array *type)
{
	return 1;
}
_Bool is_valid_type_function(struct Type_Function *type)
{
	return 1;
}
_Bool is_valid_type_enum(struct Type_Enum *type)
{
	return 1;
}
_Bool is_valid_type_pointer(struct Type_Pointer *type)
{
	return 1;
}
_Bool is_valid_struct_union(struct Struct_Union *struct_union)
{
	return 1;
}
_Bool is_valid_enum(struct Enum *enumeration)
{
	return 1;
}


#endif