Minor modifications

This commit is contained in:
Adrien Bourmault 2021-09-14 23:36:25 +02:00
parent d8f83d86c5
commit 7d17cd00fb
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
2 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<name>Modèle de test</name> <name>Modèle de test</name>
<author>Adrien Bourmault</author> <author>Adrien Bourmault</author>
<author_id>1</author_id> <author_id>1</author_id>
<date>1629822515</date> <!-- TODO timestamp ? --> <date>1629822515</date>
<version>1.0</version> <version>1.0</version>
</identity> </identity>

View File

@ -341,8 +341,7 @@ static inline void CreateField(ModelField_t *modelField,
static inline int ModelParseFile(Model_t *model) static inline int ModelParseFile(Model_t *model)
{ {
char date[25]; // XML expected file structure
ModelField_t identityField; ModelField_t identityField;
ModelField_t identityNameField; ModelField_t identityNameField;
ModelField_t identityAuthorField; ModelField_t identityAuthorField;
@ -352,6 +351,9 @@ static inline int ModelParseFile(Model_t *model)
ModelField_t parametersModelizationField; ModelField_t parametersModelizationField;
ModelField_t parametersSpaceField; ModelField_t parametersSpaceField;
// Temporary variables to store values to modify
char date[25];
CreateField(&identityField, CreateField(&identityField,
"identity", false, NULL, 0, &identityNameField, NULL); "identity", false, NULL, 0, &identityNameField, NULL);