summaryrefslogtreecommitdiff
path: root/x11-plugins/wmcalendar/files/wmcalendar-0.5.2-fno-common.patch
blob: 9907634290a28a3661f67cebb2d0ea840356f2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
diff -Naur Src.orig/calendar.c Src/calendar.c
--- Src.orig/calendar.c	2007-01-15 01:14:32.000000000 +0100
+++ Src/calendar.c	2020-03-29 13:25:39.390760510 +0200
@@ -1,5 +1,10 @@
 #include "calendar.h"
 
+time_t  modtime;
+struct  calobj* calRoot;
+int     xr, yr;
+int     datetype[32][2];
+
 int  get_datetype(int day){return datetype[day][0];}
 
 /*------------------------------------------------------
diff -Naur Src.orig/calendarfunc.c Src/calendarfunc.c
--- Src.orig/calendarfunc.c	2003-07-13 16:41:02.000000000 +0200
+++ Src/calendarfunc.c	2020-03-29 13:24:07.630789052 +0200
@@ -24,6 +24,7 @@
 #include <stdio.h>
 
 
+int     datemoon[200][2];
 
 long persian_jdn(struct icaltimetype dt)
 {
diff -Naur Src.orig/calendarfunc.h Src/calendarfunc.h
--- Src.orig/calendarfunc.h	2003-07-15 17:19:43.000000000 +0200
+++ Src/calendarfunc.h	2020-03-29 13:23:23.468802848 +0200
@@ -70,5 +70,5 @@
 
 int Ceil(float number);
 
-int     datemoon[200][2];   /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn, 
+extern int     datemoon[200][2];   /* hashtable for moonphase.[jdn%32][0] stores moonphase of day jdn, 
 			    [jdn%32][1] stores jdn. */
diff -Naur Src.orig/calendar.h Src/calendar.h
--- Src.orig/calendar.h	2007-01-15 01:13:50.000000000 +0100
+++ Src/calendar.h	2020-03-29 13:25:57.657754851 +0200
@@ -5,10 +5,10 @@
 #include <sys/stat.h>
 
 
-time_t  modtime;              /* modified time of icalendar file */
-struct  calobj* calRoot;  /* 1st element in list of calendar obj*/
-int     xr, yr;               /*evil hack for moving dayview window*/
-int     datetype[32][2];      /* hashtable for coloring days.[jdn%32][0] stores color of day jdn, 
+extern time_t  modtime;              /* modified time of icalendar file */
+extern struct  calobj* calRoot;  /* 1st element in list of calendar obj*/
+extern int     xr, yr;               /*evil hack for moving dayview window*/
+extern int     datetype[32][2];      /* hashtable for coloring days.[jdn%32][0] stores color of day jdn, 
 				 [jdn%32][1] stores jdn. */
 struct calobj{
     struct icaltimetype start;
diff -Naur Src.orig/settings.c Src/settings.c
--- Src.orig/settings.c	2003-07-15 17:22:51.000000000 +0200
+++ Src/settings.c	2020-03-29 13:26:31.673744323 +0200
@@ -1,4 +1,14 @@
 #include "settings.h"
+
+char    rcfile[250];
+char    icsfile[250];
+char    application[250];
+int     start_of_week;
+char*   daystr[8];
+int     appicon;
+int     lang;
+int     debug;
+
 void set_lang(int language){lang = language;}
 void setAppicon(int app){appicon = app;}
 void enter_callback( GtkWidget *widget, GtkWidget *entry ){ 
diff -Naur Src.orig/settings.h Src/settings.h
--- Src.orig/settings.h	2006-09-15 11:56:12.000000000 +0200
+++ Src/settings.h	2020-03-29 13:26:37.732742450 +0200
@@ -7,14 +7,14 @@
 
 
 
-char    rcfile[250];       /* location of settings file */
-char    icsfile[250];      /* location of icalendar file */
-char    application[250];  /* command for starting external application */
-int     start_of_week; /* defines the first day of week */
-char*   daystr[8];
-int     appicon;       /* sets the application icon evol(0) moz(1) other(2)*/
-int     lang;          /* defines the language 0:english(default) 1:farsi */
-int     debug;         /* debug mode off(0) or on(1) */
+extern char    rcfile[250];       /* location of settings file */
+extern char    icsfile[250];      /* location of icalendar file */
+extern char    application[250];  /* command for starting external application */
+extern int     start_of_week; /* defines the first day of week */
+extern char*   daystr[8];
+extern int     appicon;       /* sets the application icon evol(0) moz(1) other(2)*/
+extern int     lang;          /* defines the language 0:english(default) 1:farsi */
+extern int     debug;         /* debug mode off(0) or on(1) */
 
 
 void destroy (GtkWidget * widget, gpointer data);