G:/ScriptBasic/source/confpile.c File Reference

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include "conftree.h"
#include "lsp.h"
#include "confpile.h"

Go to the source code of this file.

Defines

#define ALLOC(X)   (pCT->memory_allocating_function((X),pCT->pMemorySegment))
#define FREE(X)   (pCT->memory_releasing_function((X),pCT->pMemorySegment))

Functions

static int BuildSubTree (ptConfigTree pCT, tLspObject *pLSP, CFT_NODE *plNindex, long *plSindex, LVAL q)
static void RemoveNil (ptConfigTree pCT, tLspObject *pLSP, LVAL *q)
static int CountSubTree (ptConfigTree pCT, tLspObject *pLSP, long *plNodeCounter, long *plStringCounter, LVAL q)
int cft_ReadTextConfig (ptConfigTree pCT, char *pszFileName)
static int DumpTree (ptConfigTree pCT, FILE *fp, CFT_NODE hNode, int offset)
int cft_DumpConfig (ptConfigTree pCT, char *pszFileName)
int cft_DumbConfig (ptConfigTree pCT, char *pszFileName)

Variables

int GlobalDebugDisplayFlag


Define Documentation

#define ALLOC  )     (pCT->memory_allocating_function((X),pCT->pMemorySegment))
 

Definition at line 27 of file confpile.c.

Referenced by allocate_MatchSets(), c_StrDup(), cft_GetConfigFileName(), cft_ReadConfig(), cft_ReadTextConfig(), cft_start(), cgi_FillSymbolAndFile(), cgi_GetGetParameters(), cgi_GetMultipartParameters(), cgi_GetPostParameters(), cgi_ReadHttpRequest(), cgi_ResizeBuffer(), cgi_ResizeThisBuffer(), collect_dirs_r(), COMMAND_EXTERNAL(), COMMAND_EXTERNAM(), execute_CopyCommandTable(), if(), init(), initdir(), initialize_like(), log_printf(), modu_LoadModule(), ReadFileLine(), ReadSocketLine(), store_file_name(), storech(), and while().

#define FREE  )     (pCT->memory_releasing_function((X),pCT->pMemorySegment))
 

Definition at line 28 of file confpile.c.

Referenced by c_freelist(), cft_DropConfig(), cft_ReadConfig(), cft_ReadTextConfig(), cgi_GetMultipartParameters(), cgi_ResizeBuffer(), cgi_ResizeThisBuffer(), close_directory_list(), collect_dirs_r(), if(), log_printf(), log_thread(), modu_UnloadAllModules(), ReadFileLine(), ReadSocketLine(), store_file_name(), storech(), and while().


Function Documentation

static int BuildSubTree ptConfigTree  pCT,
tLspObject *  pLSP,
CFT_NODE *  plNindex,
long *  plSindex,
LVAL  q
[static]
 

Definition at line 47 of file confpile.c.

References prev, r, and strcpy().

Referenced by cft_ReadTextConfig().

int cft_DumbConfig ptConfigTree  pCT,
char *  pszFileName
 

Definition at line 390 of file confpile.c.

References fp, i, and NULL.

int cft_DumpConfig ptConfigTree  pCT,
char *  pszFileName
 

Definition at line 360 of file confpile.c.

References DumpTree(), fp, iError, and NULL.

Referenced by main().

int cft_ReadTextConfig ptConfigTree  pCT,
char *  pszFileName
 

Definition at line 230 of file confpile.c.

References ALLOC, BuildSubTree(), CountSubTree(), fp, FREE, iError, lsp_init(), NULL, q, and RemoveNil().

Referenced by main().

static int CountSubTree ptConfigTree  pCT,
tLspObject *  pLSP,
long *  plNodeCounter,
long *  plStringCounter,
LVAL  q
[static]
 

Definition at line 174 of file confpile.c.

References GlobalDebugDisplayFlag, iError, and r.

Referenced by cft_ReadTextConfig().

static int DumpTree ptConfigTree  pCT,
FILE *  fp,
CFT_NODE  hNode,
int  offset
[static]
 

Definition at line 299 of file confpile.c.

References cft_EnumFirst(), cft_EnumNext(), and s.

Referenced by cft_DumpConfig().

static void RemoveNil ptConfigTree  pCT,
tLspObject *  pLSP,
LVAL *  q
[static]
 

Definition at line 137 of file confpile.c.

References NULL, p, and r.

Referenced by cft_ReadTextConfig().


Variable Documentation

int GlobalDebugDisplayFlag
 

Definition at line 57 of file dynlolib.c.

Referenced by CountSubTree(), dynlolib_GetFunctionByName(), dynlolib_LoadLibrary(), main(), modu_LoadModule(), and stndlone().


Generated on Sun Mar 12 23:56:34 2006 for ScriptBasic by  doxygen 1.4.6-NO