- don't use bundled printf functions.

- add missing prototypes.
ok naddy@
This commit is contained in:
wcobb 2002-08-02 01:43:47 +00:00
parent c7f8bb32a3
commit d1ef53dcb3
3 changed files with 45 additions and 10 deletions

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-famplan_c,v 1.1 2002/08/02 01:43:47 wcobb Exp $
--- famplan.c.orig Thu Aug 1 20:37:45 2002
+++ famplan.c Thu Aug 1 20:38:42 2002
@@ -216,7 +216,6 @@ bufgetymd(chp, abvalue)
{
int yy, mm, dd;
static ABDATE newestdate = (ABDATE)0;
- static ABDATE newestvdate = (ABDATE)0;
*chp = bufskipbr(*chp);
if (**chp == '*') {

View File

@ -1,16 +1,40 @@
$OpenBSD: patch-luna_h,v 1.1.1.1 2002/04/27 15:23:58 wcobb Exp $
--- luna.h.orig Fri Nov 9 11:44:17 2001
+++ luna.h Fri Nov 9 11:44:51 2001
@@ -32,7 +32,7 @@ typedef enum {
$OpenBSD: patch-luna_h,v 1.2 2002/08/02 01:43:47 wcobb Exp $
--- luna.h.orig Thu Aug 1 20:35:34 2002
+++ luna.h Thu Aug 1 20:42:19 2002
@@ -11,6 +11,7 @@
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
@@ -19,20 +20,18 @@
# include <dos.h>
#endif /* MSDOS */
#include "pyramid.h"
-#include "iprintf/iprint.h"
typedef enum {
FALSE,
TRUE
} BOOLEAN;
-#define printf iprintf
-#define sprintf isprintf
-#define fprintf ifprintf
-
+extern int getext(int, int, int);
+extern int getmoon(int, int);
+extern int ymd2yday(int, int, int);
#if defined(ANSI)
- extern void main(int argc, char **argv);
+ extern int main(int argc, char **argv);
extern void drawluna(int aotmoon);
extern void usage(void);
extern void getoptions(int argc, char **argv,
@@ -40,7 +40,7 @@ typedef enum {
@@ -40,7 +39,7 @@ typedef enum {
extern int getext(int year, int mon, int day);
extern void printextstate(int age);
#else

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-makefile,v 1.1.1.1 2002/04/27 15:23:58 wcobb Exp $
--- makefile.orig Fri Nov 9 11:55:55 2001
+++ makefile Fri Nov 9 11:56:34 2001
$OpenBSD: patch-makefile,v 1.2 2002/08/02 01:43:47 wcobb Exp $
--- makefile.orig Thu Aug 1 20:35:34 2002
+++ makefile Thu Aug 1 20:42:45 2002
@@ -2,23 +2,14 @@
# Makefile for luna using BSD cc
#
@ -56,8 +56,8 @@ $OpenBSD: patch-makefile,v 1.1.1.1 2002/04/27 15:23:58 wcobb Exp $
# UNIX
-#$(PROG) : $(OBJS) $(OBJSIP)
-# $(LD) -o $(PROG) $(OBJS) $(OBJSIP) $(LDFLAGS)
+$(PROG) : $(OBJS) $(OBJSIP)
+ $(LD) -o $(PROG) $(OBJS) $(OBJSIP) $(LDFLAGS)
+$(PROG) : $(OBJS)
+ $(LD) -o $(PROG) $(OBJS) $(LDFLAGS)
$(OBJS) : $(HDRS)