libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
src
backend
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
12
#include "
frontend/analyzer/type.h
"
13
17
void
ps_mangle_id
(
struct
ps_dynstr** dstr,
STR
str);
18
22
void
ps_mangle_type
(
struct
ps_dynstr** dstr,
struct
ps_type
* type);
23
24
// struct ps_type* ps_demangle(STR mangled);
def.h
Base definitions.
STR
#define STR
Definition
def.h:40
dynstr.h
Defines a dynamically-allocated string.
ps_mangle_id
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
ps_mangle_type
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
ps_type
Definition
type.h:66
type.h
Generated by
1.9.8