gwenhywfar 5.10.1
Functions
p_checkfunctions.c File Reference
#include "gwenbuild/parser/p_checkfunctions.h"
#include "gwenbuild/parser/parser.h"
#include "gwenbuild/tools/trylink.h"
#include <gwenhywfar/debug.h>
#include <ctype.h>
Include dependency graph for p_checkfunctions.c:

Go to the source code of this file.

Functions

static int _checkFunction (GWB_PROJECT *project, GWB_CONTEXT *currentContext, const char *fnName)
 
static void _replacePointWithUnderscore (char *ptr)
 
static void _setDefineFunctionExists (GWB_PROJECT *project, const char *header)
 
static void _setVarFunctionExists (GWEN_DB_NODE *db, const char *header, int exists)
 
static void _toUpperAndReplacePointWithUnderscore (char *ptr)
 
int GWB_ParseCheckFunctions (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
 

Function Documentation

◆ _checkFunction()

int _checkFunction ( GWB_PROJECT project,
GWB_CONTEXT currentContext,
const char *  fnName 
)
static

Definition at line 75 of file p_checkfunctions.c.

References _setDefineFunctionExists(), _setVarFunctionExists(), DBG_INFO, GWB_Context_GetVars(), GWB_Tools_TryLink(), GWEN_Buffer_AppendArgs(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), and NULL.

Referenced by GWB_ParseCheckFunctions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _replacePointWithUnderscore()

void _replacePointWithUnderscore ( char *  ptr)
static

Definition at line 146 of file p_checkfunctions.c.

Referenced by _setVarFunctionExists().

Here is the caller graph for this function:

◆ _setDefineFunctionExists()

void _setDefineFunctionExists ( GWB_PROJECT project,
const char *  header 
)
static

Definition at line 116 of file p_checkfunctions.c.

References _toUpperAndReplacePointWithUnderscore(), GWB_Project_SetDefine(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), and GWEN_Buffer_new().

Referenced by _checkFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _setVarFunctionExists()

void _setVarFunctionExists ( GWEN_DB_NODE db,
const char *  header,
int  exists 
)
static

Definition at line 99 of file p_checkfunctions.c.

References _replacePointWithUnderscore(), GWB_Parser_SetItemValue(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), and GWEN_Buffer_new().

Referenced by _checkFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _toUpperAndReplacePointWithUnderscore()

void _toUpperAndReplacePointWithUnderscore ( char *  ptr)
static

Definition at line 131 of file p_checkfunctions.c.

Referenced by _setDefineFunctionExists().

Here is the caller graph for this function:

◆ GWB_ParseCheckFunctions()

int GWB_ParseCheckFunctions ( GWB_PROJECT project,
GWB_CONTEXT currentContext,
GWEN_XMLNODE xmlNode 
)