[122790] trunk/dports/devel/cmunge
jmr at macports.org
jmr at macports.org
Tue Jul 29 14:10:48 PDT 2014
Revision: 122790
https://trac.macports.org/changeset/122790
Author: jmr at macports.org
Date: 2014-07-29 14:10:48 -0700 (Tue, 29 Jul 2014)
Log Message:
-----------
cmunge: fix build
Modified Paths:
--------------
trunk/dports/devel/cmunge/Portfile
Added Paths:
-----------
trunk/dports/devel/cmunge/files/
trunk/dports/devel/cmunge/files/returntypes.patch
Modified: trunk/dports/devel/cmunge/Portfile
===================================================================
--- trunk/dports/devel/cmunge/Portfile 2014-07-29 20:43:01 UTC (rev 122789)
+++ trunk/dports/devel/cmunge/Portfile 2014-07-29 21:10:48 UTC (rev 122790)
@@ -20,6 +20,8 @@
worksrcdir cmunger
+patchfiles returntypes.patch
+
use_configure no
destroot {
Added: trunk/dports/devel/cmunge/files/returntypes.patch
===================================================================
--- trunk/dports/devel/cmunge/files/returntypes.patch (rev 0)
+++ trunk/dports/devel/cmunge/files/returntypes.patch 2014-07-29 21:10:48 UTC (rev 122790)
@@ -0,0 +1,80 @@
+--- src/ctran.c.orig 1998-08-29 03:01:57.000000000 +1000
++++ src/ctran.c 2014-07-30 07:08:19.000000000 +1000
+@@ -453,6 +453,9 @@ Symbol std_names [] = {
+
+ bool file_exists (), install_word ();
+ unsigned hash ();
++void scan_file (FILE *ip_file);
++void read_old_dict ();
++void translate_file (FILE *ip_file, FILE *op_file);
+ /*}}}*/
+
+ /*{{{ main (argc, argv)*/
+@@ -753,7 +756,7 @@ init_keytab_and_std_nametab ()
+
+ /*{{{ << 'ID dictionary' I/O >>*/
+ /*{{{ read_old_dict ()*/
+-read_old_dict ()
++void read_old_dict ()
+ /*------------*/
+ {
+ register char *p;
+@@ -977,9 +980,9 @@ write_new_dict ()
+ }
+ /*}}}*/
+ /*}}}*/
+-
++void lookup_or_install_word (char *word);
+ /*{{{ scan_file (ip_file)*/
+-scan_file (ip_file)
++void scan_file (ip_file)
+ /*---------------*/
+ FILE *ip_file;
+ /*----------------------------------------------------------------
+@@ -1154,7 +1157,7 @@ them expand to bare operators! ***
+
+ /*}}}*/
+ /*{{{ translate_file (ip_file, op_file)*/
+-translate_file (ip_file, op_file)
++void translate_file (ip_file, op_file)
+ /*-----------------------------*/
+ FILE *ip_file, *op_file;
+ /*----------------------------------------------------------------
+@@ -1550,7 +1553,7 @@ bool install_word (word, val)
+ }
+ /*}}}*/
+ /*{{{ lookup_or_install_word (word)*/
+-lookup_or_install_word (word)
++void lookup_or_install_word (word)
+ /*-------------------------*/
+ char *word;
+ /*--------------------------------------------------------------*/
+--- src/proc-incl.c.orig 1993-12-12 05:01:52.000000000 +1100
++++ src/proc-incl.c 2014-07-30 07:03:39.000000000 +1000
+@@ -52,6 +52,8 @@ bool file_exists (), find_file (),
+ replace_filename_by_tmp ();
+ unsigned hash ();
+ int fileval ();
++void read_old_dict ();
++void translate_file ();
+ /*}}}*/
+
+ /*{{{ main (argc, argv) -- OK*/
+@@ -238,7 +240,7 @@ abort :
+
+ /*{{{ << 'file dictionary' I/O >> -- OK*/
+ /*{{{ read_old_dict () -- OK*/
+-read_old_dict ()
++void read_old_dict ()
+ /*------------*/
+ {
+ register char *p;
+@@ -323,7 +325,7 @@ write_new_dict ()
+ /*}}}*/
+
+ /*{{{ translate_file () -- OK*/
+-translate_file ()
++void translate_file ()
+ /*-------------*/
+ /*----------------------------------------------------------------
+ This function copies the input C file to output, performing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140729/700ba91b/attachment.html>
More information about the macports-changes
mailing list