8static STR ps_types_mangle[] = {
29 for (
usize i = 0; i < tuple->length; i++) {
34 case PS_TYPE_STRUCT: {
49 case PS_TYPE_UNRESOLVED: {
#define PS_NO_IMPL()
Aborts the program due to a function taking a path not yet implemented.
#define ps_dynstr_append(dstrptr, str)
Appends a string str to the struct ps_dynstr string pointed to by dstrptr.
STR ps_ztoa(usize v)
Returns a read-only string of the digits of v.
Conversion from integers to strings.
Retrieval of associated data from custom enum (see enum.h).
void ps_mangle_id(struct ps_dynstr **dstr, STR str)
Appends the mangled version of the given string str to dstr.
void ps_mangle_type(struct ps_dynstr **dstr, struct ps_type *type)
Appends the mangled version of the given type type to dstr.
Name mangling and demangling.
struct ps_type_enum enum_
struct ps_type_struct struct_
struct ps_type_tuple * tuple
struct ps_token * unresolved
bool ps_type_is_prim(enum ps_type_type type)
Returns whether type represents a primitive type.