gwenhywfar 5.12.0
p_checkprogs.c File Reference
#include "gwenbuild/parser/p_checkheaders.h"
#include "gwenbuild/parser/parser.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/directory.h>
Include dependency graph for p_checkprogs.c:

Go to the source code of this file.

Functions

static int _determineNamePath (GWEN_DB_NODE *db, const char *sCmd, const char *sId, const GWEN_STRINGLIST *slPaths)
static int _determineProgPath (GWEN_DB_NODE *db, const char *sCmd, const char *sId, const GWEN_STRINGLIST *slAltNames, const GWEN_STRINGLIST *slPaths)
static int _parseChildNodes (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
static int _parseProg (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
int _parseProg (GWEN_UNUSED GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
int GWB_ParseCheckProgs (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)

Function Documentation

◆ _determineNamePath()

int _determineNamePath ( GWEN_DB_NODE * db,
const char * sCmd,
const char * sId,
const GWEN_STRINGLIST * slPaths )
static

Definition at line 187 of file p_checkprogs.c.

References DBG_DEBUG, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_Directory_FindFileInPaths(), GWEN_ERROR_NOT_FOUND, and NULL.

Referenced by _determineProgPath().

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

◆ _determineProgPath()

int _determineProgPath ( GWEN_DB_NODE * db,
const char * sCmd,
const char * sId,
const GWEN_STRINGLIST * slAltNames,
const GWEN_STRINGLIST * slPaths )
static

Definition at line 142 of file p_checkprogs.c.

References _determineNamePath(), DBG_DEBUG, DBG_INFO, GWEN_StringList_FirstEntry(), GWEN_StringListEntry_Data(), GWEN_StringListEntry_Next(), and NULL.

Referenced by _parseProg().

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

◆ _parseChildNodes()

int _parseChildNodes ( GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )
static

Definition at line 49 of file p_checkprogs.c.

References _parseProg(), DBG_DEBUG, DBG_ERROR, DBG_INFO, GWEN_LOGDOMAIN, GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), and NULL.

Referenced by GWB_ParseCheckProgs().

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

◆ _parseProg() [1/2]

int _parseProg ( GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )
static

Referenced by _parseChildNodes().

Here is the caller graph for this function:

◆ _parseProg() [2/2]

◆ GWB_ParseCheckProgs()

int GWB_ParseCheckProgs ( GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )

Definition at line 34 of file p_checkprogs.c.

References _parseChildNodes(), DBG_INFO, and NULL.

Referenced by _parseChildNodes().

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