Skip to contentSkip to conversation

Change regerror() declaration from K&R style to ANSI C (C89)

PATCH Marius Storm-Olsen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

From: Frank Li <[email protected]>

Quoted 11 lines

size_t

(quoted diff) +2 -5
-regerror (errcode, preg, errbuf, errbuf_size)
-    int errcode;
-    const regex_t *preg;
-    char *errbuf;
-    size_t errbuf_size;
+regerror(int errcode, const regex_t *preg,
+        char *errbuf, size_t errbuf_size)
 {

The true reason is MSVC type define errcode as int.

Ok, will reword it.. Thanks.

--
.marius @ phone