|
gwenhywfar 5.10.1
|
#include "gwenbuild/parser/p_options.h"#include "gwenbuild/parser/parser.h"#include "gwenbuild/types/option.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>#include <ctype.h>
Go to the source code of this file.
Functions | |
| int | _checkAgainstGivenOption (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWB_OPTION *option) |
| int | _checkStringListOption (GWB_PROJECT *project, GWB_OPTION *option, GWB_CONTEXT *currentContext, const char *givenValue) |
| int | _checkStringOption (GWB_OPTION *option, GWB_CONTEXT *currentContext, const char *givenValue) |
| int | GWB_ParseOption (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode) |
| int _checkAgainstGivenOption | ( | GWB_PROJECT * | project, |
| GWB_CONTEXT * | currentContext, | ||
| GWB_OPTION * | option | ||
| ) |
Definition at line 115 of file p_options.c.
References _checkStringListOption(), _checkStringOption(), DBG_ERROR, GWB_KeyValuePair_free(), GWB_KeyValuePair_GetValue(), GWB_KeyValuePair_List_GetFirstByKey(), GWB_Option_GetDefaultValue(), GWB_Option_GetId(), GWB_Option_GetOptionType(), GWB_OptionType_None, GWB_OptionType_String, GWB_OptionType_StringList, GWB_OptionType_Unknown, GWB_Project_GetGivenOptionList(), GWEN_ERROR_GENERIC, and NULL.
Referenced by GWB_ParseOption().


| int _checkStringListOption | ( | GWB_PROJECT * | project, |
| GWB_OPTION * | option, | ||
| GWB_CONTEXT * | currentContext, | ||
| const char * | givenValue | ||
| ) |
Definition at line 193 of file p_options.c.
References DBG_ERROR, GWB_Context_GetVars(), GWB_Option_GetAlias(), GWB_Option_GetDefinePrefix(), GWB_Option_GetId(), GWB_Option_IsValidChoice(), GWB_Project_SetDefine(), GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_SetCharValue(), GWEN_ERROR_INVALID, GWEN_StringList_FirstEntry(), GWEN_StringList_free(), GWEN_StringList_fromString2(), GWEN_StringListEntry_Data(), GWEN_StringListEntry_Next(), GWEN_TEXT_FLAGS_CHECK_BACKSLASH, GWEN_TEXT_FLAGS_DEL_QUOTES, and NULL.
Referenced by _checkAgainstGivenOption().


| int _checkStringOption | ( | GWB_OPTION * | option, |
| GWB_CONTEXT * | currentContext, | ||
| const char * | givenValue | ||
| ) |
Definition at line 157 of file p_options.c.
References DBG_ERROR, GWB_Context_GetVars(), GWB_Option_GetAlias(), GWB_Option_GetId(), GWB_Option_IsValidChoice(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_ERROR_INVALID, and NULL.
Referenced by _checkAgainstGivenOption().


| int GWB_ParseOption | ( | GWB_PROJECT * | project, |
| GWB_CONTEXT * | currentContext, | ||
| GWEN_XMLNODE * | xmlNode | ||
| ) |
Definition at line 35 of file p_options.c.
References _checkAgainstGivenOption(), DBG_ERROR, DBG_INFO, GWB_Context_GetVars(), GWB_Option_AddAlias(), GWB_Option_GetChoiceList(), GWB_Option_new(), GWB_Option_SetDefaultValue(), GWB_Option_SetDefinePrefix(), GWB_Option_SetOptionType(), GWB_OptionType_fromString(), GWB_OptionType_None, GWB_Parser_ReadNamedXmlDataIntoBufferAndExpand(), GWB_Parser_ReadXmlDataIntoBufferAndExpand(), GWB_Project_AddOption(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_ERROR_GENERIC, GWEN_StringList_AppendStringList(), GWEN_StringList_free(), GWEN_StringList_fromString2(), GWEN_TEXT_FLAGS_CHECK_BACKSLASH, GWEN_TEXT_FLAGS_DEL_QUOTES, GWEN_XMLNode_Dump(), GWEN_XMLNode_ExpandProperties(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), GWEN_XMLNode_GetCharValue(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _parseChildNodes().

