[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patches] [PATCH] Fix compile error in posix/xregex.c



Hi,
the following compile error occurs with OPTION_POSIX_REGEXP_GLIBC disabled using trunk:
In file included from xregex.c:634:
xregex.c: In function 'byte_regex_compile':
xregex.c:3395: error: too few arguments to function 'findidx'
I guess the problem exists for some time now since this commit:
2011-11-29 Andreas Schwab <schwab@xxxxxxxxxx>

* locale/weight.h (findidx): Add parameter len.
* locale/weightwc.h (findidx): Likewise.
Using the following patch the code compiles again.
- rhabarber1848
---
diff -uNr eglibc.org/posix/xregex.c eglibc/posix/xregex.c
--- eglibc.org/posix/xregex.c 2008-12-24 14:04:28.000000000 +0100
+++ eglibc/posix/xregex.c 2012-04-08 10:27:47.000000000 +0200
@@ -2943,7 +2943,7 @@
_NL_CURRENT (LC_COLLATE,
_NL_COLLATE_INDIRECTWC);

- idx = findidx ((const wint_t**)&cp);
+ idx = findidx ((const wint_t**)&cp, -1);
if (idx == 0 || cp < (wint_t*) str + c1)
/* This is no valid character. */
FREE_STACK_RETURN (REG_ECOLLATE);
@@ -3392,7 +3392,7 @@
indirect = (const int32_t *)
_NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB);

- idx = findidx (&cp);
+ idx = findidx (&cp, -1);
if (idx == 0 || cp < str + c1)
/* This is no valid character. */
FREE_STACK_RETURN (REG_ECOLLATE);
@@ -6363,7 +6363,7 @@
}
str_buf[i] = TRANSLATE(*(d+i));
str_buf[i+1] = '\0'; /* sentinel */
- idx2 = findidx ((const wint_t**)&cp);
+ idx2 = findidx ((const wint_t**)&cp, -1);
}

/* Update d, however d will be incremented at
  

Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.   
https://produkte.web.de/freemail_mobile_startseite/
_______________________________________________
Patches mailing list
Patches@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/patches