summaryrefslogtreecommitdiff
path: root/src/libical-glib/tools/generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libical-glib/tools/generator.c')
-rw-r--r--src/libical-glib/tools/generator.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libical-glib/tools/generator.c b/src/libical-glib/tools/generator.c
index 712d9bc1..64a9f5ea 100644
--- a/src/libical-glib/tools/generator.c
+++ b/src/libical-glib/tools/generator.c
@@ -911,6 +911,12 @@ void generate_code_from_template(FILE *in, FILE *out, Structure *structure, GHas
val = g_hash_table_lookup(table, buffer);
write_str(out, val);
val = NULL;
+
+ if (g_strcmp0(buffer, "new_full_extraCode") == 0)
+ write_str(out, "\n ");
+ } else if (g_strcmp0(buffer, "new_full_extraCode") == 0) {
+ /* For simplicity, after lookup in the 'table', to
+ not force declaration of it in every .xml file */
} else if (g_strcmp0(buffer, "structure_boilerplate") == 0) {
if (structure->native != NULL)
generate_header_structure_boilerplate(out, structure, table);
@@ -1266,6 +1272,10 @@ GHashTable *get_hash_table_from_structure(Structure *structure)
(void)g_hash_table_insert(table, (gchar *)"defaultNative",
g_strdup(structure->defaultNative));
}
+ if (structure->new_full_extraCode && *structure->new_full_extraCode) {
+ (void)g_hash_table_insert(table, (gchar *)"new_full_extraCode",
+ g_strdup(structure->new_full_extraCode));
+ }
}
(void)g_hash_table_insert(table, (char *)"native", g_strdup(structure->native));