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

Go to the source code of this file.

Functions

static int _checkHeader (GWB_PROJECT *project, GWB_CONTEXT *currentContext, const char *header)
 
static void _replacePointWithUnderscore (char *ptr)
 
static void _setDefineHeaderExists (GWB_PROJECT *project, const char *header)
 
static void _setVarHeaderExists (GWEN_DB_NODE *db, const char *header, int exists)
 
static void _toUpperAndReplacePointWithUnderscore (char *ptr)
 
int GWB_ParseCheckHeaders (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
 

Function Documentation

◆ _checkHeader()

int _checkHeader ( GWB_PROJECT project,
GWB_CONTEXT currentContext,
const char *  header 
)
static

Definition at line 75 of file p_checkheaders.c.

References _setDefineHeaderExists(), _setVarHeaderExists(), DBG_INFO, GWB_Context_GetVars(), GWB_Tools_TryCompile(), GWEN_Buffer_AppendArgs(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), and NULL.

Referenced by GWB_ParseCheckHeaders().

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_checkheaders.c.

Referenced by _setVarHeaderExists().

Here is the caller graph for this function:

◆ _setDefineHeaderExists()

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

Definition at line 116 of file p_checkheaders.c.

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

Referenced by _checkHeader().

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

◆ _setVarHeaderExists()

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

Definition at line 99 of file p_checkheaders.c.

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

Referenced by _checkHeader().

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_checkheaders.c.

Referenced by _setDefineHeaderExists().

Here is the caller graph for this function:

◆ GWB_ParseCheckHeaders()

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