File olvwm-regex.patch of Package xview
xview on suse 15: regex
use regex.h instead of regexp.h
don't bother to clean up the code...
--- xview-3.2p1.4/clients/olvwm-4.1/virtual.c 2018-11-30 16:24:25.424831752 +0100
+++ xview-3.2p1.4/clients/olvwm-4.1/virtual.c 2018-11-30 17:21:16.196435702 +0100
@@ -58,7 +58,7 @@
#define TRUE 1
#define FALSE 0
-#include <regexp.h>
+#include <regex.h>
#ifdef REGEXP
regexp *expbuf;
#endif
@@ -2146,7 +2146,7 @@
}
}
-static char expbuf[256];
+regex_t expbuf;
static
rexMatch(string)
@@ -2155,7 +2155,7 @@
#ifdef REGEXP
return regexec(expbuf, string);
#else
- return step(string,expbuf);
+ return regexec(&expbuf, string, NULL, NULL, 0);
#endif
}
@@ -2199,6 +2199,6 @@
*/
/* sp = newPattern;*/
#endif
- compile(newPattern, expbuf, &expbuf[256], '\0');
+ regcomp(&expbuf, newPattern, REG_NOSUB);
#endif
}