libpulsar
A modular compiler for the pulsar programming language
Loading...
Searching...
No Matches
Macros | Functions
mangle.c File Reference
#include <string.h>
#include "mangle.h"
#include "util/itoa.h"
#include "enum/make.h"
#include "frontend/analyzer/type_type.h"

Go to the source code of this file.

Macros

#define ENUM   TO_STRING2
 

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.
 

Macro Definition Documentation

◆ ENUM

#define ENUM   TO_STRING2

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.