]> git.sur5r.net Git - cc65/commitdiff
Fixed compiler warnings
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 2 May 2004 19:17:10 +0000 (19:17 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 2 May 2004 19:17:10 +0000 (19:17 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3006 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/coptadd.c
src/cc65/coptstop.c

index 76f697d792a22a55dca4f779e1d3413e98cfdd53..d490574d9cdff5dd96091097d4d017bf41945c22 100644 (file)
@@ -33,7 +33,8 @@
 
 
 
-#include <ctype.h>
+/* common */
+#include "chartype.h"
 
 /* cc65 */
 #include "codeent.h"
@@ -393,7 +394,7 @@ unsigned OptAdd4 (CodeSeg* S)
        /* Check for the sequence */
         if (E->OPC == OP65_JSR                          &&
             strncmp (E->Arg, "incax", 5) == 0           &&
-            isdigit (E->Arg[5])                         &&
+            IsDigit (E->Arg[5])                         &&
             E->Arg[6] == '\0'                           &&
             !RegXUsed (S, I+1)) {
 
index 6008261999ab331d2d6450f2c7b94b2f96e9f11a..d92e9eb5ee87ada3b8907f73553b3776fec95301 100644 (file)
@@ -34,7 +34,9 @@
 
 
 #include <stdlib.h>
-#include <ctype.h>
+
+/* common */
+#include "chartype.h"
 
 /* cc65 */
 #include "codeent.h"
@@ -334,12 +336,12 @@ static int IsRegVar (StackOpData* D)
         P->OPC == OP65_LDX                               &&
         P->AM == AM65_ZP                                 &&
         strncmp (P->Arg, "regbank+", 7) == 0             &&
-        isdigit (P->Arg[8])                              &&
+        IsDigit (P->Arg[8])                              &&
         (P = CS_GetEntry (D->Code, D->PushIndex-2)) != 0 &&
         P->OPC == OP65_LDA                               &&
         P->AM == AM65_ZP                                 &&
         strncmp (P->Arg, "regbank+", 7) == 0             &&
-        isdigit (P->Arg[8])) {
+        IsDigit (P->Arg[8])) {
         /* Ok, it loads the register variable */
         D->ZPHi = D->PrevEntry->Arg;
         D->ZPLo = P->Arg;