dmd.backend.util2

Compiler implementation of the D programming language.

Members

Functions

binary
int binary(const(char)* p, const(char)** table, int high)

Binary string search. Input: p . string of characters tab array of pointers to strings n = number of pointers in the array

controlc_open
void controlc_open()

Trap control C interrupts.

err_break
void err_break()

Clean up and exit program.

err_exit
void err_exit()

Clean up and exit program.

ispow2
int ispow2(uint64_t c)

If c is a power of 2, return that power else -1.

mem_malloc2
void* mem_malloc2(uint size)
util_assert
void util_assert(const(char)* file, int line)

Alternative assert failure.

util_calloc
void* util_calloc(uint n, uint size)
util_exit
void util_exit(int exitcode)

Clean up and exit program.

util_free
void util_free(void* p)
util_progress
void util_progress()

Send progress report.

util_realloc
void* util_realloc(void* oldp, uint n, uint size)

Manifest constants

UTIL_PH
enum UTIL_PH;

Meta