Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

appconf.cpp File Reference

#include "Core/precomp.h"
#include <fcntl.h>
#include <sys/types.h>
#include <iostream>
#include <fstream.h>
#include <string.h>
#include <cctype>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include "appconf.h"

Include dependency graph for appconf.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  std

helper functions

char* ExpandEnvVars (const char *psz)

Defines

#define _(x)    (x)
#define LogInfo   LogError
#define LogWarning   LogError
#define SIZE(array)   (sizeof(array)/sizeof(array[0]))
#define COMPONENTS_INITIAL   (10)

Functions

void LogError (const char *pszFormat,...)
size_t Strlen (const char *pc)
Bool IsValid (char c)
Bool IsCSym (char c)
size_t Min (size_t n1, size_t n2)

Variables

return s_szBuf


Define Documentation

#define COMPONENTS_INITIAL   (10)
 

#define LogInfo   LogError
 

Definition at line 101 of file appconf.cpp.

#define LogWarning   LogError
 

Definition at line 106 of file appconf.cpp.

#define SIZE( array )   (sizeof(array)/sizeof(array[0]))
 

Definition at line 163 of file appconf.cpp.

#define _( x )   (x)
 

Definition at line 91 of file appconf.cpp.


Function Documentation

char * ExpandEnvVars ( const char * psz )
 

Replace environment variables ($SOMETHING) with their values. The format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric characters and '_' only. '$' must be escaped ('$') in order to be taken literally.

Parameters:
pointer   to the string possibly contianing $VAR and/or ${VAR}
Returns:
the resulting string, caller must 'delete []' it @memo Performs environment variable substitution.

Definition at line 181 of file appconf.cpp.

Bool IsCSym ( char c ) [inline]
 

Definition at line 160 of file appconf.cpp.

Bool IsValid ( char c ) [inline]
 

Definition at line 159 of file appconf.cpp.

void LogError ( const char * pszFormat,
... )
 

Definition at line 111 of file appconf.cpp.

size_t Min ( size_t n1,
size_t n2 ) [inline]
 

Definition at line 161 of file appconf.cpp.

size_t Strlen ( const char * pc ) [inline]
 

Definition at line 158 of file appconf.cpp.


Variable Documentation

return s_szBuf
 

Definition at line 1395 of file appconf.cpp.


Generated at Wed Apr 4 19:54:05 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001