git » fp-git.git » commit f6630f6

added tag name

author ecalot
2005-12-29 14:18:04 UTC
committer ecalot
2005-12-29 14:18:04 UTC
parent 105f66456c4b8022ed4b58e66bf76c75497e8c85

added tag name

PR/src/lib/xml/tree.c +3 -0
PR/src/lib/xml/unknown.c +3 -0

diff --git a/PR/src/lib/xml/tree.c b/PR/src/lib/xml/tree.c
index 73731a8..d7e8ef4 100644
--- a/PR/src/lib/xml/tree.c
+++ b/PR/src/lib/xml/tree.c
@@ -87,6 +87,7 @@ void unknown_folder(const char* path, const char* file, int palette, const char*
 
 	memset(folder,0,sizeof(tTag));
 	sprintf(number,"%d",palette);
+	folder->tag=strallocandcopy("folder");
 	folder->name=strallocandcopy("unknown");
 	folder->path=strallocandcopy(path);
 	folder->file=strallocandcopy(file);
@@ -108,6 +109,7 @@ void unknown_item(int value,const char* index,const char* path,const char* type,
 
 	memset(item,0,sizeof(tTag));
 	sprintf(aux,"%d",value);
+	item->tag=strallocandcopy("item");
 	item->value=strallocandcopy(aux);
 	item->index=strallocandcopy(index);
 	item->path=strallocandcopy(path);
@@ -282,6 +284,7 @@ int unknownLogStart (const char* file,int optionflag, const char* backupExtensio
 			unknownFile.tree=malloc(sizeof(tTag));
 			memset(unknownFile.tree,0,sizeof(tTag));
 			unknownFile.tree->version=strallocandcopy("generated");
+			unknownFile.tree->tag=strallocandcopy("resources");
 		}
 	}
 	
diff --git a/PR/src/lib/xml/unknown.c b/PR/src/lib/xml/unknown.c
index 73731a8..d7e8ef4 100644
--- a/PR/src/lib/xml/unknown.c
+++ b/PR/src/lib/xml/unknown.c
@@ -87,6 +87,7 @@ void unknown_folder(const char* path, const char* file, int palette, const char*
 
 	memset(folder,0,sizeof(tTag));
 	sprintf(number,"%d",palette);
+	folder->tag=strallocandcopy("folder");
 	folder->name=strallocandcopy("unknown");
 	folder->path=strallocandcopy(path);
 	folder->file=strallocandcopy(file);
@@ -108,6 +109,7 @@ void unknown_item(int value,const char* index,const char* path,const char* type,
 
 	memset(item,0,sizeof(tTag));
 	sprintf(aux,"%d",value);
+	item->tag=strallocandcopy("item");
 	item->value=strallocandcopy(aux);
 	item->index=strallocandcopy(index);
 	item->path=strallocandcopy(path);
@@ -282,6 +284,7 @@ int unknownLogStart (const char* file,int optionflag, const char* backupExtensio
 			unknownFile.tree=malloc(sizeof(tTag));
 			memset(unknownFile.tree,0,sizeof(tTag));
 			unknownFile.tree->version=strallocandcopy("generated");
+			unknownFile.tree->tag=strallocandcopy("resources");
 		}
 	}