summaryrefslogtreecommitdiffstats
path: root/generic/regerror.c
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2006-06-14 15:21:12 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2006-06-14 15:21:12 (GMT)
commit8306814794dc10eb77232b8733582230a1e16c4e (patch)
treeb7f93c0f3fad3eccfb16e8fcd337ce453d85e1c7 /generic/regerror.c
parentcd2d5293dc62cd282065a0f2c1b38fe22d5b68f7 (diff)
downloadtcl-8306814794dc10eb77232b8733582230a1e16c4e.zip
tcl-8306814794dc10eb77232b8733582230a1e16c4e.tar.gz
tcl-8306814794dc10eb77232b8733582230a1e16c4e.tar.bz2
Enable building Tcl with Microsoft's latest compiler offering
(VS2005). We have to handle a number of oddities as they have deprecated most of the standard C library and now generate manifest files to be linked into the binaries. SF bug #1424909
Diffstat (limited to 'generic/regerror.c')
-rw-r--r--generic/regerror.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/regerror.c b/generic/regerror.c
index aca13aa..182830d 100644
--- a/generic/regerror.c
+++ b/generic/regerror.c
@@ -50,8 +50,8 @@ static struct rerr {
*/
/* ARGSUSED */
size_t /* actual space needed (including NUL) */
-regerror(errcode, preg, errbuf, errbuf_size)
-int errcode; /* error code, or REG_ATOI or REG_ITOA */
+regerror(code, preg, errbuf, errbuf_size)
+int code; /* error code, or REG_ATOI or REG_ITOA */
CONST regex_t *preg; /* associated regex_t (unused at present) */
char *errbuf; /* result buffer (unless errbuf_size==0) */
size_t errbuf_size; /* available space in errbuf, can be 0 */
@@ -62,7 +62,7 @@ size_t errbuf_size; /* available space in errbuf, can be 0 */
size_t len;
int icode;
- switch (errcode) {
+ switch (code) {
case REG_ATOI: /* convert name to number */
for (r = rerrs; r->code >= 0; r++)
if (strcmp(r->name, errbuf) == 0)
@@ -84,12 +84,12 @@ size_t errbuf_size; /* available space in errbuf, can be 0 */
break;
default: /* a real, normal error code */
for (r = rerrs; r->code >= 0; r++)
- if (r->code == errcode)
+ if (r->code == code)
break;
if (r->code >= 0)
msg = r->explain;
else { /* unknown; say so */
- sprintf(convbuf, unk, errcode);
+ sprintf(convbuf, unk, code);
msg = convbuf;
}
break;