summaryrefslogtreecommitdiff
path: root/mail/metamail/files/patch-richmail_richtext.c
blob: 8e6d5e6be68fc3814255afee737013a2bfc88bc9 (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
--- richmail/richtext.c.orig	1994-02-10 01:31:18.000000000 +0900
+++ richmail/richtext.c	2012-10-13 08:07:01.000000000 +0900
@@ -14,6 +14,8 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <ctype.h>
 #include <signal.h>
 #include "richlex.h"
@@ -155,6 +157,16 @@
     exit(-1);
 #endif
 }
+static lc2strcmp(s1, s2)
+char *s1, *s2;
+{
+    if (!s1 || !s2) return (-1);
+    while (*s1 && *s2) {
+	if (*s1 != *s2 && (tolower(*s1) != *s2)) return(-1);
+	++s1; ++s2;
+    }
+    return((*s1 == *s2) ? 0 : -1);
+}
 
 #ifndef	RICHTEXT_LIBRARY
 
@@ -910,7 +922,7 @@
 FILE *fp;
 {
     int inmargin=1;
-    if (!s) return;
+    if (!s) return(0);
     while (s -> ch) {
         if (inmargin && (s -> ch) == ' ') {
             controloutput(MoveRight, 1);
@@ -932,7 +944,7 @@
     *BoldOn, *BoldOff;
 {
     if (OverStrike)
-	return;
+	return(0);
 
     /* We always turn back on the appropriate terminal modes, because
       on some terminals one thing turns off all of them */
@@ -989,16 +1001,6 @@
     while(*s) (*RichtextPutc)((int)(*s++),fp);
 }
 
-static lc2strcmp(s1, s2)
-char *s1, *s2;
-{
-    if (!s1 || !s2) return (-1);
-    while (*s1 && *s2) {
-	if (*s1 != *s2 && (tolower(*s1) != *s2)) return(-1);
-	++s1; ++s2;
-    }
-    return((*s1 == *s2) ? 0 : -1);
-}
 
 static lc2strncmp(s1, s2, len)
 char *s1, *s2;