Lines 1-8
Link Here
|
1 |
--- main.C.tcl84fixes 1996-02-16 02:57:42.000000000 +0100 |
1 |
--- main.C.orig 1996-02-15 20:57:42.000000000 -0500 |
2 |
+++ main.C 2003-04-28 18:14:32.000000000 +0200 |
2 |
+++ main.C 2018-03-21 16:41:01.870226000 -0400 |
3 |
@@ -255,14 +255,14 @@ int Ical_Init(Tcl_Interp* tcl) { |
3 |
@@ -27,13 +27,13 @@ |
|
|
4 |
/* Include various libraries converted to strings. */ |
5 |
|
6 |
#ifdef STANDALONE |
7 |
-static char* tcl_lib_str[] = { |
8 |
+static const char* tcl_lib_str[] = { |
9 |
#include "tcl_lib.gen" |
10 |
0 |
11 |
}; |
12 |
|
13 |
// Need to disable "source" command |
14 |
-static char* tk_lib_str[] = { |
15 |
+static const char* tk_lib_str[] = { |
16 |
"rename source _orig_source", |
17 |
"proc source {args} {}", |
18 |
#include "tk_lib.gen" |
19 |
@@ -42,37 +42,37 @@ |
20 |
0 |
21 |
}; |
22 |
|
23 |
-static char* ical_lib_str[] = { |
24 |
+static const char* ical_lib_str[] = { |
25 |
#include "ical_lib.gen" |
26 |
0 |
27 |
}; |
28 |
|
29 |
-static char* tcllib_str[] = { |
30 |
+static const char* tcllib_str[] = { |
31 |
#include "tcllib.gen" |
32 |
0 |
33 |
}; |
34 |
#endif |
35 |
|
36 |
-static char* ical_startup[] = { |
37 |
+static const char* ical_startup[] = { |
38 |
#include "ical_start.gen" |
39 |
0 |
40 |
}; |
41 |
|
42 |
-static char* psheader_str[] = { |
43 |
+static const char* psheader_str[] = { |
44 |
"set ical(psheader) {%!PS-Adobe-", |
45 |
#include "psheader.gen" |
46 |
"}", |
47 |
0 |
48 |
}; |
49 |
|
50 |
-static char* ical_doc_str[] = { |
51 |
+static const char* ical_doc_str[] = { |
52 |
"set ical(doc) {", |
53 |
#include "icaldoc.gen" |
54 |
"}", |
55 |
0 |
56 |
}; |
57 |
|
58 |
-static char* tcl_doc_str[] = { |
59 |
+static const char* tcl_doc_str[] = { |
60 |
"set ical(tcl_interface_doc) {", |
61 |
#include "tcldoc.gen" |
62 |
"}", |
63 |
@@ -173,7 +173,7 @@ |
64 |
|
65 |
#ifdef STANDALONE |
66 |
extern "C" int MyTcl_Init(Tcl_Interp* tcl) { |
67 |
- return (eval_list(tcl, tcl_lib_str)); |
68 |
+ return (eval_list(tcl, (char **)tcl_lib_str)); |
69 |
} |
70 |
#else |
71 |
#define MyTcl_Init Tcl_Init |
72 |
@@ -194,7 +194,7 @@ |
73 |
|
74 |
TkCreateXEventSource(); |
75 |
|
76 |
- return (eval_list(tcl, tk_lib_str)); |
77 |
+ return (eval_list(tcl, (char **)tk_lib_str)); |
78 |
} |
79 |
#endif |
80 |
|
81 |
@@ -245,37 +245,37 @@ |
82 |
} |
83 |
|
84 |
// Set-up postscript prolog |
85 |
- if (eval_list(tcl, psheader_str) != TCL_OK) |
86 |
+ if (eval_list(tcl, (char **)psheader_str) != TCL_OK) |
4 |
return TCL_ERROR; |
87 |
return TCL_ERROR; |
5 |
|
88 |
|
|
|
89 |
// Set-up documentation |
90 |
- if (eval_list(tcl, ical_doc_str) != TCL_OK) |
91 |
+ if (eval_list(tcl, (char **)ical_doc_str) != TCL_OK) |
92 |
return TCL_ERROR; |
93 |
- if (eval_list(tcl, tcl_doc_str) != TCL_OK) |
94 |
+ if (eval_list(tcl, (char **)tcl_doc_str) != TCL_OK) |
95 |
return TCL_ERROR; |
96 |
|
6 |
// Non-Tk ical commands |
97 |
// Non-Tk ical commands |
7 |
- Tcl_CreateCommand(tcl, "calendar", Cmd_CreateCalendar, NULL, NULL); |
98 |
- Tcl_CreateCommand(tcl, "calendar", Cmd_CreateCalendar, NULL, NULL); |
8 |
- Tcl_CreateCommand(tcl, "notice", Cmd_CreateNotice, NULL, NULL); |
99 |
- Tcl_CreateCommand(tcl, "notice", Cmd_CreateNotice, NULL, NULL); |
Lines 23-25
Link Here
|
23 |
|
114 |
|
24 |
#ifdef STANDALONE |
115 |
#ifdef STANDALONE |
25 |
// Load tcllib files |
116 |
// Load tcllib files |
|
|
117 |
- if (eval_list(tcl, tcllib_str) != TCL_OK) |
118 |
+ if (eval_list(tcl, (char **)tcllib_str) != TCL_OK) |
119 |
return TCL_ERROR; |
120 |
|
121 |
// Load ical library files |
122 |
- if (eval_list(tcl, ical_lib_str) != TCL_OK) |
123 |
+ if (eval_list(tcl, (char **)ical_lib_str) != TCL_OK) |
124 |
return TCL_ERROR; |
125 |
#endif |
126 |
|
127 |
// Initialize ical stuff |
128 |
- if (eval_list(tcl, ical_startup) != TCL_OK) |
129 |
+ if (eval_list(tcl, (char **)ical_startup) != TCL_OK) |
130 |
return TCL_ERROR; |
131 |
|
132 |
if (Tcl_Eval(tcl, "ical_init") == TCL_ERROR) |