summaryrefslogtreecommitdiff
path: root/server/src/xmlparser.cc
diff options
context:
space:
mode:
authordeva <deva>2007-09-24 12:47:16 +0000
committerdeva <deva>2007-09-24 12:47:16 +0000
commita3cb015e6b69821062306981924a43a5487f3b5d (patch)
treefcacf4cab2bf2d188775b11f2f53fbf5a9235d7a /server/src/xmlparser.cc
parent574f7c69a0cb7d3af3e20d740e6202d2faaf2718 (diff)
Server now parses XML and handles include.
Diffstat (limited to 'server/src/xmlparser.cc')
-rw-r--r--server/src/xmlparser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/xmlparser.cc b/server/src/xmlparser.cc
index d4a6bd8..31ffbed 100644
--- a/server/src/xmlparser.cc
+++ b/server/src/xmlparser.cc
@@ -33,9 +33,9 @@
#include <string>
#include <map>
-bool done = false;
+static bool done = false;
-void start_hndl(void *p, const char *el, const char **attr)
+static void start_hndl(void *p, const char *el, const char **attr)
{
Transaction *transaction = (Transaction*)XML_GetUserData(p);
@@ -63,6 +63,7 @@ void start_hndl(void *p, const char *el, const char **attr)
// Do something reasonable with them...
if(name == "pracro") {
+ transaction->user = attributes["user"];
transaction->cpr = attributes["cpr"];
transaction->version = attributes["version"];
}
@@ -75,7 +76,6 @@ void start_hndl(void *p, const char *el, const char **attr)
if(name == "commit") {
Commit c;
- c.user = attributes["user"];
c.macro = attributes["macro"];
c.version = attributes["version"];
transaction->commits.push_back(c);
@@ -90,7 +90,7 @@ void start_hndl(void *p, const char *el, const char **attr)
}
-void end_hndl(void *p, const char *el)
+static void end_hndl(void *p, const char *el)
{
// printf("End tag [%s]\n", el);
if(!strcmp(el, "pracro")) done = true;