patch-luna_h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $OpenBSD: patch-luna_h,v 1.3 2007/12/18 09:43:36 ajacoutot Exp $
  2. --- luna.h.orig Tue Dec 18 09:36:17 2007
  3. +++ luna.h Tue Dec 18 09:36:17 2007
  4. @@ -11,6 +11,7 @@
  5. #include <stdio.h>
  6. +#include <stdlib.h>
  7. #include <ctype.h>
  8. #include <string.h>
  9. #include <time.h>
  10. @@ -19,20 +20,18 @@
  11. # include <dos.h>
  12. #endif /* MSDOS */
  13. #include "pyramid.h"
  14. -#include "iprintf/iprint.h"
  15. typedef enum {
  16. FALSE,
  17. TRUE
  18. } BOOLEAN;
  19. -#define printf iprintf
  20. -#define sprintf isprintf
  21. -#define fprintf ifprintf
  22. +extern int getext(int, int, int);
  23. +extern int getmoon(int, int);
  24. +extern int ymd2yday(int, int, int);
  25. -
  26. #if defined(ANSI)
  27. - extern void main(int argc, char **argv);
  28. + extern int main(int argc, char **argv);
  29. extern void drawluna(int aotmoon);
  30. extern void usage(void);
  31. extern void getoptions(int argc, char **argv,
  32. @@ -40,7 +39,7 @@ typedef enum {
  33. extern int getext(int year, int mon, int day);
  34. extern void printextstate(int age);
  35. #else
  36. - extern void main();
  37. + extern int main();
  38. extern void drawluna();
  39. extern void usage();
  40. extern void getoptions();