Tag
Hash :
1baea400
Author :
Thomas de Grivel
Date :
2023-06-16T13:46:25
/* c3
* Copyright 2022,2023 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
/**
* @file type.h
* @brief C3 types.
*
* Structure to manipulate C3 type.
*/
#ifndef TYPE_H
#define TYPE_H
#include "types.h"
/* Stack allocation compatible functions, call type_clean after use. */
void type_clean (s_type *t);
s_type * type_init (s_type *t, const s_ident *ident);
/* Observers */
s_type * type_copy (const s_type *t, s_type *dest);
sw type_size (const s_type *t);
bool type_to_tag_type (const s_type *t, e_tag_type *tag_type);
#endif /* TYPE_H */