diff options
Diffstat (limited to 'devel/cmunge/files')
-rw-r--r-- | devel/cmunge/files/patch-src_ctran.c | 106 | ||||
-rw-r--r-- | devel/cmunge/files/patch-src_proc-incl.c | 61 |
2 files changed, 0 insertions, 167 deletions
diff --git a/devel/cmunge/files/patch-src_ctran.c b/devel/cmunge/files/patch-src_ctran.c deleted file mode 100644 index d8c44e0ce3da..000000000000 --- a/devel/cmunge/files/patch-src_ctran.c +++ /dev/null @@ -1,106 +0,0 @@ ---- ./src/ctran.c.orig 1998-08-28 19:01:57.000000000 +0200 -+++ ./src/ctran.c 2011-12-15 18:06:56.000000000 +0100 -@@ -7,6 +7,9 @@ - ----------------------------------------------------------------*/ - /*{{{ global decls*/ - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> -+ - #define BUFLEN 1000 /* max len of ID or keyword in i/p */ - #define PROTECT_LINE_CHAR '@' /* replaces some "#include's */ - -@@ -762,11 +765,11 @@ - int lineno = 0, max_val = 0, val; - - if ( !(dict_file = fopen (dict_filename, "r")) ) -- return; -+ return 0; - - if ( ! fgets (buf, BUFLEN, dict_file) ) { - fclose (dict_file); -- return; -+ return 0; - } - - /*{{{ 1st line may give 'next_val' (otherwise its a normal line)*/ -@@ -928,7 +931,7 @@ - } - - fclose (dict_file); -- return; -+ return 0; - } - /*}}}*/ - /*{{{ write_new_dict ()*/ -@@ -1110,7 +1113,7 @@ - while ((c = getc (ip_file)) != delim) { - switch (c) { - case EOF : -- return; -+ return 0; - - case '\\' : - /*---------------------------------------*/ -@@ -1118,7 +1121,7 @@ - /*---------------------------------------*/ - c = getc (ip_file); - if (c == EOF) -- return; -+ return 0; - break; - } - } -@@ -1208,7 +1211,7 @@ - c = getc (ip_file); - - if (c == EOF) -- return; -+ return 0; - - last_token_type &= ~TK_SPACE; /* unset TK_SPACE, if set */ - op_linelen = 0; -@@ -1380,7 +1383,7 @@ - while ((c = getc (ip_file)) != delim) { - switch (c) { - case EOF : -- return; -+ return 0; - - case '\\' : - /*---------------------------------------*/ -@@ -1388,7 +1391,7 @@ - /*---------------------------------------*/ - write_and_get_next_char (c); - if (c == EOF) -- return; -+ return 0; - writechar (c); - break; - -@@ -1571,14 +1574,14 @@ - /*------------------------------------------------------*/ - for (sp = keytab [hashval]; sp; sp = sp->next) - if (! strcmp (sp->word, word)) -- return; /* found! */ -+ return 0; /* found! */ - - /*------------------------------------------------------*/ - /* Now search for it in the symbol table, 'symtab'. */ - /*------------------------------------------------------*/ - for (sp = symtab [hashval]; sp; sp = sp->next) - if (! strcmp (sp->word, word)) -- return; /* found! */ -+ return 0; /* found! */ - - /*------------------------------------------------------*/ - /* Not found in either table (i.e. not a keyword and */ -@@ -1609,7 +1612,7 @@ - sp->next = symtab [hashval]; /* add to front of list */ - symtab [hashval] = sp; - -- return; -+ return 0; - } - - /*}}}*/ diff --git a/devel/cmunge/files/patch-src_proc-incl.c b/devel/cmunge/files/patch-src_proc-incl.c deleted file mode 100644 index 7361587d240a..000000000000 --- a/devel/cmunge/files/patch-src_proc-incl.c +++ /dev/null @@ -1,61 +0,0 @@ ---- ./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; |