Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20525

Modified Files:
        hc.info 
Added Files:
        hc.patch 
Log Message:
Make it compatible with more recent species of yacc/bison

Index: hc.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel/hc.info,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- hc.info     21 Apr 2008 03:10:34 -0000      1.5
+++ hc.info     7 Dec 2008 01:25:22 -0000       1.6
@@ -1,8 +1,9 @@
 Package: hc
 Version: 1.1
-Revision: 1
+Revision: 2
 Source: http://www.geocities.com/connorbd/software/%n.tgz
 SourceDirectory: hcdist
+Patch: %n.patch
 CompileScript: make YACC=/usr/bin/yacc
 InstallScript: <<
 mkdir -p %i/bin
@@ -29,8 +30,9 @@
 
        - no configure script
        - no make install
-
- Doesn't compile with yacc from fink's bison package
+<<
+DesPort: <<
+ Patch to make it compile also with Leopard's yacc (=bison).
 <<
 Homepage: http://www.geocities.com/connorbd/software/hc.html
 Maintainer: None <[EMAIL PROTECTED]>

--- NEW FILE: hc.patch ---
--- hcdist/hc.y_ori     2008-04-21 15:10:37.000000000 +0200
+++ hcdist/hc.y 2008-12-07 01:56:16.000000000 +0100
@@ -1,4 +1,30 @@
 %{
+#include <stdlib.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <signal.h>
+#include <setjmp.h>
+
+typedef enum {
+        kDec,
+        kHex,
+        kOct,
+        kBin
+} outmode;
+
+/*char progname[];*/
+jmp_buf begin;
+int lineno = 1;
+outmode mode; 
+
+void output(int);
+void aboutbox();
+void help();
+void execerror(char*, char*);
+void yyerror(char*);
+%}
+
+%{
 #define YYSTYPE int
 %}
 
@@ -46,22 +67,6 @@
        |       'v'                     { vrs(); }
        ;
 %%
-#include <stdio.h>
-#include <ctype.h>
-#include <signal.h>
-#include <setjmp.h>
-
-typedef enum {
-       kDec,
-       kHex,
-       kOct,
-       kBin
-} outmode;
-
-/*char progname[];*/
-jmp_buf begin;
-int lineno = 1;
-outmode mode;
 
 void output(int i) {
        switch (mode) {


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to