libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Functions
mangle.h File Reference

Name mangling and demangling. More...

#include "def.h"
#include "util/dynstr.h"
#include "frontend/analyzer/type.h"

Go to the source code of this file.

Functions

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.
 

Detailed Description

Name mangling and demangling.

Author
Ethan Uppal

Definition in file mangle.h.

Function Documentation

◆ 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 at line 14 of file mangle.c.

◆ 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 at line 19 of file mangle.c.