[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-user: Icarus Verilog on MacOS X Problem



I bet you're sick and tired of hearing from us OS X freaks, however...

I just downloaded ipal, and after some similar malloc.h hacking, got 
ipalrev to compile. OK, so the rest of the package isn't much use without 
GTK, but ipalrev looks kind of useful.

Anyway, the summary of the patch is: stdlib.h instead of malloc.h, and 
unistd.h for the optarg/optind prototypes.

There are some minor cosmetic changes to ipalrev that I'll patch later. 
Now that I know the rest of the package uses GTK+, I'll go ahead and fire 
up the old Linux sandbox machine.

If I get extremely ambitious, I'll take a crack at a 16V8 definition file.
  ipalrev worked on a 16v8 JEDEC file that I had laying around (by using 
the 16L8 def'n), but I verified by hand that the output registers were not 
enabled.

diff -ur ipal-20001210.orig/ipalrev/main.c ipal-20001210/ipalrev/main.c
--- ipal-20001210.orig/ipalrev/main.c	Sat Dec  2 00:03:12 2000
+++ ipal-20001210/ipalrev/main.c	Mon Jun 24 23:58:39 2002
@@ -21,10 +21,11 @@
 #endif
 
 # include  <stdio.h>
+# include <unistd.h>
 #if defined(HAVE_GETOPT_H)
 # include  <getopt.h>
 #endif
-# include  <malloc.h>
+# include  <stdlib.h>
 # include  "jedec.h"
 # include  "ipal.h"
 # include  <assert.h>
diff -ur ipal-20001210.orig/libipal/pal_alloc.c ipal-20001210/libipal/pal_alloc.c
--- ipal-20001210.orig/libipal/pal_alloc.c	Tue Dec  5 21:00:51 2000
+++ ipal-20001210/libipal/pal_alloc.c	Mon Jun 24 23:38:15 2002
@@ -25,7 +25,6 @@
 #endif
 
 # include  "pal_priv.h"
-# include  <malloc.h>
 # include  <string.h>
 # include  <stdlib.h>
 # include  <assert.h>
diff -ur ipal-20001210.orig/libipal/pal_parse.y ipal-20001210/libipal/pal_parse.y
--- ipal-20001210.orig/libipal/pal_parse.y	Tue Dec  5 21:00:51 2000
+++ ipal-20001210/libipal/pal_parse.y	Mon Jun 24 23:38:40 2002
@@ -1,7 +1,7 @@
 
 %{
 # include  "pal_priv.h"
-# include  <malloc.h>
+# include  <stdlib.h>
 # include  <assert.h>
 
 static void pal_error(const char*msg);
diff -ur ipal-20001210.orig/libjedec/j_read.c ipal-20001210/libjedec/j_read.c
--- ipal-20001210.orig/libjedec/j_read.c	Mon Nov 13 21:56:23 2000
+++ ipal-20001210/libjedec/j_read.c	Mon Jun 24 23:37:51 2002
@@ -23,7 +23,7 @@
 # include  "jedec.h"
 # include  "j_priv.h"
 # include  <stdio.h>
-# include  <malloc.h>
+# include  <stdlib.h>
 # include  <assert.h>
 
 static unsigned char*allocate_fusemap(unsigned size)


--
Charles Lepple <clepple@ghz.cc>
http://www.ghz.cc/charles/