소스 검색

Add const to the function headers for Sprite8/Sprite16/Sprite32 to match the prototype.

git-svn-id: file:///var/svn/tigccpp/trunk@270 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 년 전
부모
커밋
69fdafff1c
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      tigcc/archive/sprite16.c
  2. 1 1
      tigcc/archive/sprite32.c
  3. 1 1
      tigcc/archive/sprite8.c

+ 1 - 1
tigcc/archive/sprite16.c

@@ -1,6 +1,6 @@
 #include <sprites.h>
 
-__ATTR_LIB_C__ void Sprite16(short x, short y, short h, unsigned short *sprite, void *buff, short mode)
+__ATTR_LIB_C__ void Sprite16(short x, short y, short h, const unsigned short *sprite, void *buff, short mode)
 {
   long addr=(long)buff+30*y+((x>>3)&0xfffe),d1;
   unsigned short cnt=16-(x&15),data;

+ 1 - 1
tigcc/archive/sprite32.c

@@ -1,6 +1,6 @@
 #include <sprites.h>
 
-__ATTR_LIB_C__ void Sprite32(short x, short y, short h, unsigned long *sprite, void *buff, short mode)
+__ATTR_LIB_C__ void Sprite32(short x, short y, short h, const unsigned long *sprite, void *buff, short mode)
 {
   long addr=(long)buff+30*y+((x>>3)&0xfffe);
   unsigned long data,d1,d2;

+ 1 - 1
tigcc/archive/sprite8.c

@@ -1,6 +1,6 @@
 #include <sprites.h>
 
-__ATTR_LIB_C__ void Sprite8(short x, short y, short h, unsigned char *sprite, void *buff, short mode)
+__ATTR_LIB_C__ void Sprite8(short x, short y, short h, const unsigned char *sprite, void *buff, short mode)
 {
   long addr=(long)buff+30*y+((x>>3)&0xfffe),d1;
   unsigned short cnt=24-(x&15),data;