dc70fa12dc
Copy from Publishing/xmlto based on submit request 26966 from user keichwa OBS-URL: https://build.opensuse.org/request/show/26966 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlto?expand=0&rev=8
45 lines
1011 B
Diff
45 lines
1011 B
Diff
--- xmlif/xmlif.l.orig 2009-12-16 15:29:45.000000000 +0100
|
|
+++ xmlif/xmlif.l 2009-12-16 15:45:19.000000000 +0100
|
|
@@ -43,7 +43,7 @@
|
|
|
|
static char **selections; /* selection tokens */
|
|
static int nselections; /* number of selections */
|
|
-static ifsense; /* sense of last `if' or unless seen */
|
|
+static int ifsense; /* sense of last `if' or unless seen */
|
|
static char *attribute; /* last attribute scanned */
|
|
|
|
struct stack_t {
|
|
@@ -84,7 +84,7 @@
|
|
}
|
|
}
|
|
|
|
-static void stash_attribute(char *attr)
|
|
+static void stash_attribute(const char *attr)
|
|
/* stash an attribute away for comparison */
|
|
{
|
|
#ifdef DEBUG
|
|
@@ -176,7 +176,7 @@
|
|
end->suppressed = suppress(attribute, val);
|
|
}
|
|
|
|
-static void process_else()
|
|
+static void process_else(void)
|
|
/* process <?xmlif else> tag */
|
|
{
|
|
end->suppressed = end->matched;
|
|
@@ -230,9 +230,12 @@
|
|
|
|
#include "config.h"
|
|
|
|
-int yywrap() {exit(0);};
|
|
+int yywrap(void)
|
|
+{
|
|
+ exit(0);
|
|
+}
|
|
|
|
-main(int argc, char *argv[])
|
|
+int main(int argc, char *argv[])
|
|
{
|
|
int i;
|
|
|