Revision 735df2e8
Von admin vor mehr als 4 Jahren hinzugefügt
tools/gwenbuild/parser/parser.c | ||
---|---|---|
|
||
|
||
|
||
GWEN_STRINGLIST *GWB_Parser_ReadXmlDataIntoStringList(const GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
|
||
GWEN_STRINGLIST *GWB_Parser_ReadXmlDataIntoStringList(GWEN_DB_NODE *db, GWEN_XMLNODE *xmlNode)
|
||
{
|
||
GWEN_BUFFER *buf;
|
||
|
||
buf=GWB_Parser_ReadXmlDataIntoBufferAndExpand(currentContext, xmlNode);
|
||
buf=GWB_Parser_ReadXmlDataIntoBufferAndExpand(db, xmlNode);
|
||
if (buf) {
|
||
GWEN_STRINGLIST *sl;
|
||
|
||
... | ... | |
|
||
|
||
|
||
GWEN_BUFFER *GWB_Parser_ReadXmlDataIntoBufferAndExpand(const GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
|
||
GWEN_BUFFER *GWB_Parser_ReadXmlDataIntoBufferAndExpand(GWEN_DB_NODE *db, GWEN_XMLNODE *xmlNode)
|
||
{
|
||
GWEN_XMLNODE *xmlData;
|
||
|
||
... | ... | |
GWEN_BUFFER *buf;
|
||
|
||
buf=GWEN_Buffer_new(0, 256, 0, 1);
|
||
rv=GWEN_DB_ReplaceVars(GWB_Context_GetVars(currentContext), s, buf);
|
||
rv=GWEN_DB_ReplaceVars(db, s, buf);
|
||
if(rv<0) {
|
||
DBG_INFO(NULL, "here (%d)", rv);
|
||
GWEN_Buffer_free(buf);
|
||
... | ... | |
{
|
||
GWEN_STRINGLIST *sl;
|
||
|
||
sl=GWB_Parser_ReadXmlDataIntoStringList(currentContext, xmlNode);
|
||
sl=GWB_Parser_ReadXmlDataIntoStringList(GWB_Context_GetVars(currentContext), xmlNode);
|
||
if (sl) {
|
||
GWEN_STRINGLISTENTRY *se;
|
||
|
||
... | ... | |
|
||
sMode=GWEN_XMLNode_GetProperty(xmlNode, "mode", "replace");
|
||
|
||
buf=GWB_Parser_ReadXmlDataIntoBufferAndExpand(currentContext, xmlNode);
|
||
buf=GWB_Parser_ReadXmlDataIntoBufferAndExpand(GWB_Context_GetVars(currentContext), xmlNode);
|
||
if (buf && GWEN_Buffer_GetUsedBytes(buf)) {
|
||
if (strcasecmp(sMode, "replace")==0)
|
||
GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, sName, GWEN_Buffer_GetStart(buf));
|
Auch abrufbar als: Unified diff
gwenbuild: Improved custom target handling.