diff.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. diff -ur invaders/clean.sh invaders-fixed/clean.sh
  2. --- invaders/clean.sh 2001-05-21 22:43:13.000000000 +0200
  3. +++ invaders-fixed/clean.sh 2009-04-13 17:03:14.000000000 +0200
  4. @@ -2,4 +2,4 @@
  5. set -e
  6. set -v
  7. -rm -f *.o *~ invaders.exec
  8. +rm -f *.o *~ invaders.exec invaders
  9. diff -ur invaders/compile.sh invaders-fixed/compile.sh
  10. --- invaders/compile.sh 2001-05-21 22:26:46.000000000 +0200
  11. +++ invaders-fixed/compile.sh 2009-04-13 16:59:44.000000000 +0200
  12. @@ -4,7 +4,7 @@
  13. set -v
  14. CFLAGS="-fno-builtin -nostdinc -O2 -I. -Wall -Werror"
  15. -LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"
  16. +LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000 -Wl,--build-id=none"
  17. gcc $CFLAGS -c keyboard.c
  18. gcc $CFLAGS -c delay.c
  19. gcc $CFLAGS -c common.c
  20. diff -ur invaders/video.c invaders-fixed/video.c
  21. --- invaders/video.c 2001-05-13 15:56:33.000000000 +0200
  22. +++ invaders-fixed/video.c 2009-04-13 17:01:22.000000000 +0200
  23. @@ -36,7 +36,7 @@
  24. video_putchar(x+1,y,hextab[hex&15]);
  25. };
  26. -void video_putstring(int32 x, int32 y, uint8 *str)
  27. +void video_putstring(int32 x, int32 y, char *str)
  28. {
  29. while (*str) video_putchar(x++,y,*(str++));
  30. };
  31. diff -ur invaders/video.h invaders-fixed/video.h
  32. --- invaders/video.h 2001-05-13 15:56:33.000000000 +0200
  33. +++ invaders-fixed/video.h 2009-04-13 17:01:05.000000000 +0200
  34. @@ -8,7 +8,7 @@
  35. void video_putchar(int32 x, int32 y, uint8 code);
  36. void video_fill(int32 x, int32 y, int32 width, int32 height, uint8 code);
  37. void video_puthex8(int32 x, int32 y, uint8 hex);
  38. -void video_putstring(int32 x, int32 y, uint8 *str);
  39. +void video_putstring(int32 x, int32 y, char *str);
  40. // immediate effect
  41. void video_update();