summaryrefslogtreecommitdiff
path: root/mail/metamail/patches/patch-ar
blob: cbaf62c2e4145e9ee6e3f0831a5eb0a7336a652f (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
$NetBSD: patch-ar,v 1.2 2012/10/26 20:27:15 joerg Exp $

--- richmail/richtext.c.orig	1994-02-09 16:31:18.000000000 +0000
+++ richmail/richtext.c
@@ -13,18 +13,16 @@ OF THIS MATERIAL FOR ANY PURPOSE.  IT IS
 WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
 */
 
+#include <string.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <signal.h>
+#include <stdlib.h>
+#include <string.h>
 #include "richlex.h"
 #include "richset.h"
 #include <config.h>
 
-extern char *getenv();
-#ifdef AMIGA
-extern char *strchr();
-#endif
-
 #ifdef MSDOS
 unsigned _stklen=16384;	/* Increase stack size under MS-DOS */
 #endif
@@ -79,7 +77,13 @@ static int FakeTerminal;
 extern tputs();
 #endif
 
-static outputc(), realoutputc(), MakeWorkingMargins(), Pause(), fputsmovingright(), ResetTerminalCodes(), FinalizeTerminal(), outputstr(), FPUTS();
+static int lc2strcmp(char *s1, char *s2);
+
+static outputc(), realoutputc(), MakeWorkingMargins(), Pause(), FinalizeTerminal(), outputstr(), FPUTS();
+static void fputsmovingright(struct charsetmember *s, FILE *fp);
+static void ResetTerminalCodes(int FakeTerminal, int standout, int underline, int bold, char *standoutbuf, char *standendbuf,
+                    int modifiedstandout, char *StartUnderline, char *StopUnderline, int modifiedunderline,
+                    char *BoldOn, char *BoldOff, int modifiedbold);
 
 #define	OUTC(c)		(outputc((RCHAR)(c)))
 
@@ -905,9 +909,7 @@ static Pause()
 /* Leading spaces should be output as MoveRight, to avoid 
    having margins that are underlined or reverse video */
 
-static fputsmovingright(s, fp)
-struct charsetmember *s;
-FILE *fp;
+static void fputsmovingright(struct charsetmember *s, FILE *fp)
 {
     int inmargin=1;
     if (!s) return;
@@ -925,11 +927,9 @@ FILE *fp;
     }
 }
 
-static ResetTerminalCodes(FakeTerminal, standout, underline, bold, standoutbuf, standendbuf,
-                    modifiedstandout, StartUnderline, StopUnderline, modifiedunderline,
-                    BoldOn, BoldOff, modifiedbold)
-char *standoutbuf, *standendbuf, *StartUnderline, *StopUnderline,
-    *BoldOn, *BoldOff;
+static void ResetTerminalCodes(int FakeTerminal, int standout, int underline, int bold, char *standoutbuf, char *standendbuf,
+                    int modifiedstandout, char *StartUnderline, char *StopUnderline, int modifiedunderline,
+                    char *BoldOn, char *BoldOff, int modifiedbold)
 {
     if (OverStrike)
 	return;
@@ -989,7 +989,7 @@ FILE *fp;
     while(*s) (*RichtextPutc)((int)(*s++),fp);
 }
 
-static lc2strcmp(s1, s2)
+static int lc2strcmp(s1, s2)
 char *s1, *s2;
 {
     if (!s1 || !s2) return (-1);