doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
cmdlib.cpp File Reference
#include "../../idlib/precompiled.h"
#include "qe3.h"
#include "cmdlib.h"

Go to the source code of this file.

Macros

#define PATHSEPERATOR   '/'
 

Functions

void Error (const char *pFormat,...)
 
void Printf (const char *pFormat,...)
 
void ErrorNum (int nErr, const char *pFormat,...)
 
void PrintfNum (int nErr, const char *pFormat,...)
 
void SetErrorHandler (PFN_ERR pe)
 
void SetPrintfHandler (PFN_PRINTF pe)
 
void SetErrorHandlerNum (PFN_ERR_NUM pe)
 
void SetPrintfHandler (PFN_PRINTF_NUM pe)
 
int Q_filelength (FILE *f)
 
int LoadFile (const char *filename, void **bufferptr)
 
void DefaultExtension (char *path, char *extension)
 
void DefaultPath (char *path, char *basepath)
 
void StripFilename (char *path)
 
void StripExtension (char *path)
 

Variables

PFN_ERRg_pfnError = NULL
 
PFN_PRINTFg_pfnPrintf = NULL
 
PFN_ERR_NUMg_pfnErrorNum = NULL
 
PFN_PRINTF_NUMg_pfnPrintfNum = NULL
 

Macro Definition Documentation

#define PATHSEPERATOR   '/'

Definition at line 35 of file cmdlib.cpp.

Function Documentation

void DefaultExtension ( char *  path,
char *  extension 
)

Definition at line 166 of file cmdlib.cpp.

void DefaultPath ( char *  path,
char *  basepath 
)

Definition at line 190 of file cmdlib.cpp.

void Error ( const char *  pFormat,
  ... 
)

Definition at line 45 of file cmdlib.cpp.

void ErrorNum ( int  nErr,
const char *  pFormat,
  ... 
)

Definition at line 67 of file cmdlib.cpp.

int LoadFile ( const char *  filename,
void **  bufferptr 
)

Definition at line 133 of file cmdlib.cpp.

void Printf ( const char *  pFormat,
  ... 
)

Definition at line 56 of file cmdlib.cpp.

void PrintfNum ( int  nErr,
const char *  pFormat,
  ... 
)

Definition at line 78 of file cmdlib.cpp.

int Q_filelength ( FILE *  f)

Definition at line 115 of file cmdlib.cpp.

void SetErrorHandler ( PFN_ERR  pe)

Definition at line 89 of file cmdlib.cpp.

void SetErrorHandlerNum ( PFN_ERR_NUM  pe)

Definition at line 99 of file cmdlib.cpp.

void SetPrintfHandler ( PFN_PRINTF  pe)

Definition at line 94 of file cmdlib.cpp.

void SetPrintfHandler ( PFN_PRINTF_NUM  pe)

Definition at line 104 of file cmdlib.cpp.

void StripExtension ( char *  path)

Definition at line 222 of file cmdlib.cpp.

void StripFilename ( char *  path)

Definition at line 206 of file cmdlib.cpp.

Variable Documentation

PFN_ERR* g_pfnError = NULL

Definition at line 39 of file cmdlib.cpp.

PFN_ERR_NUM* g_pfnErrorNum = NULL

Definition at line 41 of file cmdlib.cpp.

PFN_PRINTF* g_pfnPrintf = NULL

Definition at line 40 of file cmdlib.cpp.

PFN_PRINTF_NUM* g_pfnPrintfNum = NULL

Definition at line 42 of file cmdlib.cpp.