ddmd.utils

Compiler implementation of the D programming language. Utility functions for DMD.

This modules defines some utility functions for DMD.

Members

Functions

ensurePathToNameExists
void ensurePathToNameExists(Loc loc, const(char)* name)

Ensure the root path (the path minus the name) of the provided path exists, and terminate the process if it doesn't.

escapePath
void escapePath(OutBuffer* buf, const(char)* fname)

Takes a path, and escapes '(', ')' and backslashes

readFile
void readFile(Loc loc, File* f)

Reads a file, terminate the program on error

toWinPath
const(char)* toWinPath(const(char)* src)

Normalize path by turning forward slashes into backslashes

writeFile
void writeFile(Loc loc, File* f)

Writes a file, terminate the program on error

Meta

Source

See Source File
$(DMDSRC _utils.d)