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
|
--- ./src/proc-incl.c.orig 1993-12-11 19:01:52.000000000 +0100
+++ ./src/proc-incl.c 2011-12-15 18:06:38.000000000 +0100
@@ -5,6 +5,8 @@
/*----------------------------------------------------------------------*/
/*{{{ global decls*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/types.h> /* for 'stat ()' */
#include <sys/stat.h> /* " " " */
@@ -247,7 +249,7 @@
int processed, val;
if ( !(dict_file = fopen (incl_dict_filename, "r")) )
- return;
+ return 0;
next_val = 0;
while (fgets (buf, BUFLEN, dict_file) ) {
@@ -297,7 +299,7 @@
}
fclose (dict_file);
- return;
+ return 0;
}
/*}}}*/
/*{{{ write_new_dict () -- OK*/
@@ -362,7 +364,7 @@
while ((c = getchar ()) != delim) {
switch (c) {
case EOF :
- return;
+ return 0;
case '\\' :
/*---------------------------------------*/
@@ -370,7 +372,7 @@
/*---------------------------------------*/
putchar (c);
if ((c = getchar ()) == EOF)
- return;
+ return 0;
putchar (c);
break;
@@ -406,11 +408,11 @@
do {
switch (getchar ()) {
case EOF :
- return;
+ return 0;
case '*' :
switch (c = getchar ()) {
case EOF :
- return;
+ return 0;
case '/' :
in_comment = FALSE;
break;
|