ARB
Macros | Functions | Variables
readcfg.c File Reference
#include "readcfg.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>
Include dependency graph for readcfg.c:

Go to the source code of this file.

Macros

#define COMMENT   ';'
 
#define MAXLEN   2048
 

Functions

static void scanKeywords (struct S_cfgLine line[], int *lineanz, int *maxlen)
 
static void cfgReadWarning (cstr fname, int lineno)
 
int readCfg (cstr fname, struct S_cfgLine line[])
 
void setCfgError (cstr message)
 

Variables

static cstr error_message
 

Macro Definition Documentation

#define COMMENT   ';'

Definition at line 7 of file readcfg.c.

Referenced by readCfg().

#define MAXLEN   2048

Definition at line 8 of file readcfg.c.

Referenced by readCfg().

Function Documentation

static void scanKeywords ( struct S_cfgLine  line[],
int lineanz,
int maxlen 
)
static

Definition at line 14 of file readcfg.c.

References S_cfgLine::keyword.

Referenced by readCfg().

static void cfgReadWarning ( cstr  fname,
int  lineno 
)
static

Definition at line 26 of file readcfg.c.

References warningf().

Referenced by readCfg().

int readCfg ( cstr  fname,
struct S_cfgLine  line[] 
)

Definition at line 29 of file readcfg.c.

References cfgReadWarning(), COMMENT, S_cfgLine::decode, error_message, MAXLEN, scanKeywords(), warning(), and warningf().

Referenced by readSimCfg().

void setCfgError ( cstr  message)

Definition at line 150 of file readcfg.c.

References error_message, and message().

Referenced by decodeFrand(), and decodeProb().

Variable Documentation

cstr error_message
static

Definition at line 10 of file readcfg.c.

Referenced by readCfg(), and setCfgError().