1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-25 21:07:40 +00:00
freebsd-ports/chinese/lunar/files/patch-02
David E. O'Brien 5f020b99d1 The lunar program performs date conversion between the Gregorian Solar
Calendar (SC) and the Chinese Lunar Calendar (LC).
1997-02-08 00:40:12 +00:00

23 lines
583 B
Plaintext

--- lunar.c.orig Mon Aug 10 21:14:48 1992
+++ lunar.c Tue Feb 4 01:04:18 1997
@@ -60,6 +60,10 @@
#define GanBM 4
#define ZhiBM 14
+#ifndef BITMAPFILE
+#define BITMAPFILE "lunar.bitmap"
+#endif
+
typedef struct {
int year, month, day, hour, weekday;
int leap; /* the lunar month is a leap month */
@@ -124,7 +128,7 @@
int showHZ = 0; /* output in hanzi */
int showBM = 0; /* output in bitmap */
-char BMfile[] = "lunar.bitmap"; /* bit map file */
+char BMfile[] = BITMAPFILE; /* bit map file */
char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */
char *progname;