summaryrefslogtreecommitdiff
blob: 6038882419080b0d78f011bbc1c23a8f52ff2791 (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
--- a/src/calendar.c
+++ b/Src/calendar.c
@@ -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];}
 
 /*------------------------------------------------------
--- a/Src/calendarfunc.c
+++ b/Src/calendarfunc.c
@@ -24,6 +24,7 @@
 #include <stdio.h>
 
 
+int     datemoon[200][2];
 
 long persian_jdn(struct icaltimetype dt)
 {
--- a/Src/calendarfunc.h
+++ b/Src/calendarfunc.h
@@ -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. */
--- a/Src/calendar.h
+++ b/Src/calendar.h
@@ -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;
--- a/Src/settings.c
+++ b/Src/settings.c
@@ -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 ){ 
--- a/Src/settings.h
+++ b/Src/settings.h
@@ -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);