* [gentoo-commits] gentoo-projects commit in portage-utils/libq: libq.c xregex.c
@ 2011-10-03 1:25 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2011-10-03 1:25 UTC (permalink / raw
To: gentoo-commits
vapier 11/10/03 01:25:54
Modified: libq.c
Added: xregex.c
Log:
add xregcomp helpers
Revision Changes Path
1.26 portage-utils/libq/libq.c
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/libq.c?rev=1.26&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/libq.c?rev=1.26&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/libq.c?r1=1.25&r2=1.26
Index: libq.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/libq/libq.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- libq.c 3 Oct 2011 00:24:22 -0000 1.25
+++ libq.c 3 Oct 2011 01:25:54 -0000 1.26
@@ -26,6 +26,7 @@
#include "xgetcwd.c"
#include "xmkdir.c"
#include "xreadlink.c"
+#include "xregex.c"
#include "xsystem.c"
/* custom libs */
1.1 portage-utils/libq/xregex.c
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/xregex.c?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/libq/xregex.c?rev=1.1&content-type=text/plain
Index: xregex.c
===================================================================
static int wregcomp(regex_t *preg, const char *regex, int cflags)
{
int ret = regcomp(preg, regex, cflags);
if (ret) {
char errbuf[256];
regerror(ret, preg, errbuf, sizeof(errbuf));
warn("invalid regexp: %s -- %s\n", regex, errbuf);
}
return ret;
}
static void xregcomp(regex_t *preg, const char *regex, int cflags)
{
if (wregcomp(preg, regex, cflags))
exit(EXIT_FAILURE);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-03 1:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 1:25 [gentoo-commits] gentoo-projects commit in portage-utils/libq: libq.c xregex.c Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox