libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
mangle.h
Go to the documentation of this file.
1
8#pragma once
9
10#include "def.h"
11#include "util/dynstr.h" // struct ps_dynstr
13
17void ps_mangle_id(struct ps_dynstr** dstr, STR str);
18
22void ps_mangle_type(struct ps_dynstr** dstr, struct ps_type* type);
23
24// struct ps_type* ps_demangle(STR mangled);
Base definitions.
#define STR
Definition def.h:40
Defines a dynamically-allocated string.
void ps_mangle_id(struct ps_dynstr **dstr, STR str)
Appends the mangled version of the given string str to dstr.
Definition mangle.c:14
void ps_mangle_type(struct ps_dynstr **dstr, struct ps_type *type)
Appends the mangled version of the given type type to dstr.
Definition mangle.c:19
Definition type.h:66