[19443] trunk/dports/lang/sdcc
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 7 21:34:51 PDT 2006
Revision: 19443
Author: markd at macports.org
Date: 2006-09-07 21:34:49 -0700 (Thu, 07 Sep 2006)
Log Message:
-----------
ticket 10084. Update to 2.5.0 to fix build problem.
Modified Paths:
--------------
trunk/dports/lang/sdcc/Portfile
Added Paths:
-----------
trunk/dports/lang/sdcc/files/
trunk/dports/lang/sdcc/files/patch-src-pic16-pcode.c
trunk/dports/lang/sdcc/files/patch-support-Util-dbuf.h
Modified: trunk/dports/lang/sdcc/Portfile
===================================================================
--- trunk/dports/lang/sdcc/Portfile 2006-09-08 03:47:33 UTC (rev 19442)
+++ trunk/dports/lang/sdcc/Portfile 2006-09-08 04:34:49 UTC (rev 19443)
@@ -3,7 +3,7 @@
PortSystem 1.0
name sdcc
-version 2.4.0
+version 2.5.0
categories lang
platforms darwin
maintainers mww at opendarwin.org
@@ -15,10 +15,13 @@
homepage http://sdcc.sourceforge.net/
master_sites sourceforge
-checksums md5 ef959381f292d8857d8679f92a71582d
+checksums md5 c572e7842fe36348f5b2972c1025a75a
worksrcdir ${name}
build.type gnu
destroot.destdir prefix=${destroot}${prefix}
+
+patchfiles patch-support-Util-dbuf.h \
+ patch-src-pic16-pcode.c
Added: trunk/dports/lang/sdcc/files/patch-src-pic16-pcode.c
===================================================================
--- trunk/dports/lang/sdcc/files/patch-src-pic16-pcode.c (rev 0)
+++ trunk/dports/lang/sdcc/files/patch-src-pic16-pcode.c 2006-09-08 04:34:49 UTC (rev 19443)
@@ -0,0 +1,90 @@
+--- src/pic16/pcode.c.orig 2006-07-24 07:33:20.000000000 +0200
++++ src/pic16/pcode.c 2006-07-24 07:33:42.000000000 +0200
+@@ -9911,18 +9911,18 @@
+ struct stack_s *next;
+ } stackitem_t;
+
+-typedef stackitem_t *stack_t;
++typedef stackitem_t *sdcc_stack_t;
+ static stackitem_t *free_stackitems = NULL;
+
+ /* Create a stack with one item. */
+-static stack_t *newStack () {
+- stack_t *s = (stack_t *) Safe_malloc (sizeof (stack_t));
++static sdcc_stack_t *newStack () {
++ sdcc_stack_t *s = (sdcc_stack_t *) Safe_malloc (sizeof (sdcc_stack_t));
+ *s = NULL;
+ return s;
+ }
+
+ /* Remove a stack -- its items are only marked free. */
+-static void deleteStack (stack_t *s) {
++static void deleteStack (sdcc_stack_t *s) {
+ stackitem_t *i;
+
+ while (*s) {
+@@ -9945,7 +9945,7 @@
+ } // while
+ }
+
+-static void stackPush (stack_t *stack, void *data) {
++static void stackPush (sdcc_stack_t *stack, void *data) {
+ stackitem_t *i;
+
+ if (free_stackitems) {
+@@ -9959,7 +9959,7 @@
+ *stack = i;
+ }
+
+-static void *stackPop (stack_t *stack) {
++static void *stackPop (sdcc_stack_t *stack) {
+ void *data;
+ stackitem_t *i;
+
+@@ -9976,7 +9976,7 @@
+ }
+
+ #if 0
+-static int stackContains (stack_t *s, void *data) {
++static int stackContains (sdcc_stack_t *s, void *data) {
+ stackitem_t *i;
+ if (!s) return 0;
+ i = *s;
+@@ -9990,7 +9990,7 @@
+ }
+ #endif
+
+-static int stackIsEmpty (stack_t *s) {
++static int stackIsEmpty (sdcc_stack_t *s) {
+ return (*s == NULL);
+ }
+
+@@ -10011,7 +10011,7 @@
+ Safe_free (s);
+ }
+
+-static int stateIsNew (state_t *state, stack_t *todo, stack_t *done) {
++static int stateIsNew (state_t *state, sdcc_stack_t *todo, sdcc_stack_t *done) {
+ stackitem_t *i;
+
+ /* scan working list for state */
+@@ -10098,8 +10098,8 @@
+ pCodeFlow *curr;
+ pCodeFlowLink *succ;
+ state_t *state;
+- stack_t *todo; /** stack of state_t */
+- stack_t *done; /** stack of state_t */
++ sdcc_stack_t *todo; /** stack of state_t */
++ sdcc_stack_t *done; /** stack of state_t */
+
+ int firstState, n_defs;
+
+@@ -10453,7 +10453,7 @@
+ static int pic16_isAlive (symbol_t sym, pCode *pc) {
+ int mask, visit;
+ defmap_t *map;
+- stack_t *todo, *done;
++ sdcc_stack_t *todo, *done;
+ state_t *state;
+ pCodeFlow *pcfl;
+ pCodeFlowLink *succ;
Added: trunk/dports/lang/sdcc/files/patch-support-Util-dbuf.h
===================================================================
--- trunk/dports/lang/sdcc/files/patch-support-Util-dbuf.h (rev 0)
+++ trunk/dports/lang/sdcc/files/patch-support-Util-dbuf.h 2006-09-08 04:34:49 UTC (rev 19443)
@@ -0,0 +1,11 @@
+--- support/Util/dbuf.h.orig 2006-07-24 07:01:13.000000000 +0200
++++ support/Util/dbuf.h 2006-07-24 07:01:13.000000000 +0200
+@@ -28,6 +28,8 @@
+ #ifndef __DBUF_H
+ #define __DBUF_H
+
++#include <stdlib.h>
++
+ struct dbuf_s {
+ size_t alloc; /* size of allocated buffer in bytes */
+ size_t len; /* actual size of the buffer in bytes */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060907/0932c5a2/attachment.html
More information about the macports-changes
mailing list