[FIX/WIP] Plumbing, -Werror, death to hitmen

Suspend killers are now no more. Except the actual killers to be gone
eventually.
Plumbing is also very basic as of now, but it "works".
This commit is contained in:
LDA 2024-07-05 20:24:15 +02:00
commit bb836789b2
23 changed files with 310 additions and 165 deletions

View file

@ -39,7 +39,6 @@ struct XMLexer {
static bool XMLookahead(XMLexer *lexer, const char *str, bool skip);
/* Parses an XML "name" */
static bool XMLIsStart(XMLexer *lexer);
static char * XMLParseName(XMLexer *lexer);
static bool XMLSkipSpace(XMLexer *lexer);
static char * XMLParseAttValue(XMLexer *lexer);
@ -122,11 +121,8 @@ XMLEvent *
XMLCrank(XMLexer *lexer)
{
XMLEvent *event = NULL;
char c;
int ch;
char *attrname;
HashMap *props;
char *key, *val;
char cbuf[2] = { 0 };
char *tmp;
if (!lexer)
@ -259,6 +255,9 @@ XMLCrank(XMLexer *lexer)
XMLFreeEvent(event);
event = XMLCreateEnd(lexer, attrname);
break;
default:
/* TODO */
break;
}
/* TODO: Crank our XML parser. */
return event;
@ -608,7 +607,7 @@ static char *
XMLDecodeString(char *s)
{
char *ret = NULL, *tmp;
char c, cs[2] = { 0 };
char cs[2] = { 0 };
while (*s)
{
@ -724,10 +723,9 @@ XMLParseAttQuote(XMLexer *lexer)
while ((c = XMLGetc(lexer)))
{
//Log(LOG_INFO, "E1=%c", c);
if (c == '&')
{
char *code = NULL;
//char *code = NULL;
int c2;
int p2 = XMLInitialiseBuffer(lexer);
int j = 0;
@ -774,7 +772,6 @@ XMLParseAttDouble(XMLexer *lexer)
//Log(LOG_INFO, "E2=%c", c);
if (c == '&')
{
char *code = NULL;
int c2;
int p2 = XMLInitialiseBuffer(lexer);
int j = 0;
@ -811,7 +808,7 @@ XMLParseAttDouble(XMLexer *lexer)
static char *
XMLParseAttValue(XMLexer *lexer)
{
ssize_t point = XMLInitialiseBuffer(lexer);
XMLInitialiseBuffer(lexer);
if (XMLookahead(lexer, "'", true))
{