48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
$NetBSD: patch-ac,v 1.3 2013/04/14 00:15:27 dholland Exp $
|
|
|
|
- use standard headers
|
|
- use <ctype.h> functions correctly
|
|
|
|
--- src/preconf/y.tab.c.orig 1995-02-08 18:40:18.000000000 +0000
|
|
+++ src/preconf/y.tab.c
|
|
@@ -443,7 +443,7 @@ extern YY_CHAR *yytext;
|
|
|
|
#ifndef YY_MALLOC_DECL
|
|
#define YY_MALLOC_DECL
|
|
-#include <malloc.h>
|
|
+#include <stdlib.h>
|
|
#endif
|
|
|
|
#undef YYVALGLOBAL
|
|
@@ -5755,8 +5755,8 @@ char *mesge;
|
|
#endif
|
|
{
|
|
strcpy(myprivmessage,mesge);
|
|
- if (islower(*myprivmessage))
|
|
- *myprivmessage = toupper(*myprivmessage);
|
|
+ if (islower((unsigned char)*myprivmessage))
|
|
+ *myprivmessage = toupper((unsigned char)*myprivmessage);
|
|
FPRINTF(stderr,"Syntax error (%s: l:%d p:%d): %s !\n",
|
|
filename,line,pos,myprivmessage);
|
|
nr_errors++;
|
|
@@ -5781,8 +5781,8 @@ char *mesge;
|
|
#endif
|
|
{
|
|
strcpy(myprivmessage,mesge);
|
|
- if (islower(*myprivmessage))
|
|
- *myprivmessage = toupper(*myprivmessage);
|
|
+ if (islower((unsigned char)*myprivmessage))
|
|
+ *myprivmessage = toupper((unsigned char)*myprivmessage);
|
|
FPRINTF(stderr,"Warning (%s: l:%d p:%d): %s !\n",
|
|
filename,line,pos,myprivmessage);
|
|
}
|
|
@@ -5812,7 +5812,7 @@ static char *stdpc_id_string="$Id: stdpc
|
|
|
|
|
|
#include <stdio.h>
|
|
-#include <malloc.h>
|
|
+#include <stdlib.h>
|
|
#ifdef ANSI_C
|
|
#include <stdarg.h>
|
|
#else
|