aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mahogany/files/patch-ac
blob: 8962e3f0621367d0cb259fa819b066c30e838874 (plain) (blame)
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
--- src/wx/vcard/vcc.y.orig Thu Aug 24 16:27:50 2000
+++ src/wx/vcard/vcc.y  Sat Nov 11 03:23:44 2000
@@ -107,7 +107,7 @@
 #endif
 
 #include <string.h>
-#ifndef __MWERKS__
+#if !defined(__MWERKS__) && !defined(__FreeBSD__)
 #include <malloc.h>
 #endif
 #include <stdio.h>
@@ -161,7 +161,6 @@
 /****  Private Forward Declarations  ****/
 static int pushVObject(const char *prop);
 static VObject* popVObject();
-static char* lexDataFromBase64();
 static void lexPopMode(int top);
 static int lexWithinMode(enum LexMode mode);
 static void lexPushMode(enum LexMode mode);
@@ -371,7 +370,7 @@
    ;
 
 %%
-/*/////////////////////////////////////////////////////////////////////////*/
+/*-------------------------------------------------------------------------*/
 static int pushVObject(const char *prop)
     {
     VObject *newObj;
@@ -391,7 +390,7 @@
     }
 
 
-/*/////////////////////////////////////////////////////////////////////////*/
+/*-------------------------------------------------------------------------*/
 /* This pops the recently built vCard off the stack and returns it. */
 static VObject* popVObject()
     {
@@ -432,7 +431,8 @@
 
 static void enterAttr(const char *s1, const char *s2)
     {
-    const char *p1, *p2;
+    const char *p1;
+    const char *p2 = NULL;
     p1 = lookupProp_(s1);
     if (s2) {
    VObject *a;
@@ -726,7 +726,6 @@
     }
 
 static char* lexGet1Value() {
-    int size = 0;
     int c;
     lexSkipWhite();
     c = lexLookahead();
@@ -758,7 +757,6 @@
 #endif
 
 static char* lexGetStrUntil(char *termset) {
-    int size = 0;
     int c = lexLookahead();
     lexClearToken();
     while (c != EOF && !strchr(termset,c)) {
@@ -814,7 +812,7 @@
     }
 
 
-/*/////////////////////////////////////////////////////////////////////////*/
+/*-------------------------------------------------------------------------*/
 /* This parses and converts the base64 format for binary encoding into
  * a decoded buffer (allocated with new).  See RFC 1521.
  */
@@ -943,7 +941,6 @@
 static char* lexGetQuotedPrintable()
     {
     char cur;
-    unsigned long len = 0;
 
     lexClearToken();
     do {
@@ -999,8 +996,6 @@
     } /* LexQuotedPrintable */
 
 int yylex() {
-    int token = 0;
-
     int lexmode = LEXMODE();
     if (lexmode == L_VALUES) {
    int c = lexGetc();
@@ -1130,7 +1125,7 @@
     return vObjList;
     }
 
-/*/////////////////////////////////////////////////////////////////////////*/
+/*-------------------------------------------------------------------------*/
 DLLEXPORT(VObject*) Parse_MIME(const char *input, unsigned long len)
     {
     initLex(input, len, 0);
@@ -1185,7 +1180,7 @@
 
 #endif
 
-/*/////////////////////////////////////////////////////////////////////////*/
+/*-------------------------------------------------------------------------*/
 static void YYDebug(const char *s)
 {
 /* Parse_Debug(s); */
--- src/wx/vcard/vobject.c.orig Sat Nov 11 03:25:07 2000
+++ src/wx/vcard/vobject.c  Sat Nov 11 03:25:31 2000
@@ -42,7 +42,7 @@
  * vobject, and convert a vobject into its textual representation.
  */
 
-#ifndef     MWERKS
+#if !defined(MWERKS) && !defined(__FreeBSD__)
 #include <malloc.h>
 #endif