From a3cb015e6b69821062306981924a43a5487f3b5d Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 24 Sep 2007 12:47:16 +0000 Subject: Server now parses XML and handles include. --- server/src/xmlparser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/xmlparser.cc') 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 #include -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; -- cgit v1.2.3