From 048857a9af7b809e750efc9c949f9f7e424c7d19 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 17 Sep 2021 16:22:51 +0200 Subject: [PATCH] Some quote --- src/parsing.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/parsing.c b/src/parsing.c index d145fba..dd9cd3c 100644 --- a/src/parsing.c +++ b/src/parsing.c @@ -103,6 +103,9 @@ int parseTextFieldXML (xmlDocPtr doc, return 0; } +// -------------------------------------------------------------------------- // +// Parsing a field that contains children fields // +// -------------------------------------------------------------------------- // int parseParentFieldXML (xmlDocPtr doc, ModelParserTableXML_t *ModelTable, int currentParser, @@ -124,22 +127,19 @@ int parseParentFieldXML (xmlDocPtr doc, return 0; } +// -------------------------------------------------------------------------- // +// Parsing a model file // +// -------------------------------------------------------------------------- // int ParseModelXML(Model_t *model) { ParserTableXML_t table[] = { - {(const xmlChar *)"identity", parseParentFieldXML, - model}, - {(const xmlChar *)"name", parseTextFieldXML, - model->name}, - {(const xmlChar *)"owner", parseTextFieldXML, - model->owner}, - {(const xmlChar *)"owner_id", parseStubFieldXML, - model->owner_id}, - {(const xmlChar *)"date", parseStubFieldXML, - model->date}, - {(const xmlChar *)"version", parseTextFieldXML, - model->version}, + {(const xmlChar *)"identity", parseParentFieldXML, model}, + {(const xmlChar *)"name", parseTextFieldXML, model->name}, + {(const xmlChar *)"owner", parseTextFieldXML, model->owner}, + {(const xmlChar *)"owner_id", parseStubFieldXML, model->owner_id}, + {(const xmlChar *)"date", parseStubFieldXML, &model->date}, + {(const xmlChar *)"version", parseTextFieldXML, model->version}, }; ModelParserTableXML_t modelParserTable =