]> git.sur5r.net Git - cc65/blobdiff - src/cc65/typecmp.h
Fix 32/64-bit int/pointer casts
[cc65] / src / cc65 / typecmp.h
index 83ac7bf6433cfa764e0514bff5fb5b026b662ce4..5f95e42a10c146fcbd0564c3b7af89a3ab12960e 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                typecmp.h                                 */
+/*                                 typecmp.h                                 */
 /*                                                                           */
-/*              Type compare function for the cc65 C compiler               */
+/*               Type compare function for the cc65 C compiler               */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
 
 
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 /* Degree of type compatibility. Must be in ascending order */
 typedef enum {
-    TC_INCOMPATIBLE,             /* Distinct types */
-    TC_QUAL_DIFF,                /* Types differ in qualifier of pointer */
-    TC_SIGN_DIFF,                /* Signedness differs */
+    TC_INCOMPATIBLE,              /* Distinct types */
+    TC_SIGN_DIFF,                 /* Signedness differs */
     TC_COMPATIBLE = TC_SIGN_DIFF, /* Compatible types */
-    TC_STRICT_COMPATIBLE,                /* Strict compatibility */
-    TC_EQUAL,                    /* Types are equal */
-    TC_IDENTICAL                 /* Types are identical */
+    TC_QUAL_DIFF,                 /* Types differ in qualifier of pointer */
+    TC_STRICT_COMPATIBLE,         /* Strict compatibility */
+    TC_EQUAL,                     /* Types are equal */
+    TC_IDENTICAL                  /* Types are identical */
 } typecmp_t;
 
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-typecmp_t TypeCmp (const type* lhs, const type* rhs);
+typecmp_t TypeCmp (const Type* lhs, const Type* rhs);
 /* Compare two types and return the result */
 
 
@@ -75,7 +75,3 @@ typecmp_t TypeCmp (const type* lhs, const type* rhs);
 /* End of typecmp.h */
 
 #endif
-
-
-
-