Bläddra i källkod

Add "const" for the sprite data in the sprite function prototypes.

git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/include@268 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 år sedan
förälder
incheckning
96233fb319
5 ändrade filer med 49 tillägg och 3 borttagningar
  1. BIN
      C/Completion/error.ccf
  2. BIN
      C/Completion/sprites.ccf
  3. BIN
      C/Completion/version.ccf
  4. 46 0
      C/default.h
  5. 3 3
      C/sprites.h

BIN
C/Completion/error.ccf


BIN
C/Completion/sprites.ccf


BIN
C/Completion/version.ccf


+ 46 - 0
C/default.h

@@ -329,6 +329,29 @@ typedef union
 typedef long *__plong;
 typedef unsigned long *__pulong;
 
+typedef union
+  {
+    const short *__sp;
+    const int *__ip;
+#ifndef STRICT_POINTERS
+    const unsigned short *__usp;
+    const unsigned int *__uip;
+#endif
+  } __cpshort __attribute__((__transparent_union__));
+
+typedef union
+  {
+    const unsigned short *__sp;
+    const unsigned int *__ip;
+#ifndef STRICT_POINTERS
+    const short *__ssp;
+    const int *__sip;
+#endif
+  } __cpushort __attribute__((__transparent_union__));
+
+typedef const long *__cplong;
+typedef const unsigned long *__cpulong;
+
 #else
 
 typedef short *__pshort;
@@ -354,6 +377,29 @@ typedef union
 #endif
   } __pulong __attribute__((__transparent_union__));
 
+typedef const short *__cpshort;
+typedef const unsigned short *__cpushort;
+
+typedef union
+  {
+    const long *__lp;
+    const int *__ip;
+#ifndef STRICT_POINTERS
+    const unsigned long *__ulp;
+    const unsigned int *__uip;
+#endif
+  } __cplong __attribute__((__transparent_union__));
+
+typedef union
+  {
+    const unsigned long *__lp;
+    const unsigned int *__ip;
+#ifndef STRICT_POINTERS
+    const long *__slp;
+    const int *__sip;
+#endif
+  } __cpulong __attribute__((__transparent_union__));
+
 #endif
 
 #endif

+ 3 - 3
C/sprites.h

@@ -5,9 +5,9 @@
 
 /* Begin Auto-Generated Part */
 enum SprtModes{SPRT_XOR,SPRT_OR,SPRT_AND};
-extern void Sprite8(short,short,short,unsigned char*,void*,short)__ATTR_LIB_C__;
-extern void Sprite16(short,short,short,__pushort,void*,short)__ATTR_LIB_C__;
-extern void Sprite32(short,short,short,__pulong,void*,short)__ATTR_LIB_C__;
+extern void Sprite8(short,short,short,const unsigned char*,void*,short)__ATTR_LIB_C__;
+extern void Sprite16(short,short,short,__cpushort,void*,short)__ATTR_LIB_C__;
+extern void Sprite32(short,short,short,__cpulong,void*,short)__ATTR_LIB_C__;
 /* End Auto-Generated Part */
 
 #endif