More strict checks...

This commit is contained in:
Manoel Trapier
2013-03-18 18:58:21 +01:00
committed by Manoël Trapier
parent a8d9183e25
commit 2bbd5a38de
87 changed files with 473 additions and 537 deletions

View File

@@ -8,6 +8,7 @@
#include <stdlib.h>
#include <string.h>
#include <alloc.h>
#include "LLlex.h"
#include "idfsize.h"
#include "class.h"
#include "macro.h"
@@ -29,7 +30,7 @@ void do_option(char *text)
{
switch(*text++) {
case '-':
options[*text] = 1;
options[*(unsigned char *)text] = 1;
break;
case 'u':
if (! strcmp(text,"ndef")) {
@@ -42,7 +43,7 @@ void do_option(char *text)
break;
case 'C' : /* comment output */
case 'P' : /* run preprocessor stand-alone, without #'s */
options[*(text-1)] = 1;
options[*(unsigned char *)(text-1)] = 1;
break;
case 'A' : /* for Amake */
case 'd' : /* dependency generation */
@@ -56,7 +57,7 @@ void do_option(char *text)
break;
case 'm':
case 'i':
options[*(text-1)] = 1;
options[*(unsigned char *)(text-1)] = 1;
break;
case 'D' : /* -Dname : predefine name */