Compile cleanly on GCC 3.x

Approved by:	kris@
This commit is contained in:
Wes Peters 2003-06-04 04:45:54 +00:00
parent 8666bcde9b
commit 4214ea2b91
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82228
3 changed files with 2307 additions and 0 deletions

View file

@ -6,6 +6,7 @@
PORTNAME= snobol
PORTVERSION= 0.99.4
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.snobol4.com/
@ -14,4 +15,14 @@ COMMENT= 0.99.4 release of ``The Macro Implementation of SNOBOL4 in C''
MAN1= snobol4.1
# Fix GCC 3.x from freaking out over some of our pointers.
#
# I had to patch gendata.sno, so I patched the changes it produces
# in res.h as well. To keep the port from trying to run gendata.sno
# (with your potentially nonexistant snobol compiler), touch it
# back to it's original mod time.
post-patch:
touch -t 199705212205.21 ${WRKSRC}/gendata.sno
.include <bsd.port.mk>

View file

@ -0,0 +1,11 @@
--- gendata.sno.orig Wed May 21 22:05:21 1997
+++ gendata.sno Tue Jun 3 09:29:43 2003
@@ -105,7 +105,7 @@
MK_LBL0 IDENT(PREV) :S(MK_LBL1)
RES.H = IND 'struct ' PREVTYPE ' ' LCPREV '[' SIZE '];'
* output char address of res element (since CPA is 1)!
- RES.H = '#define ' PREV TAB '((char *)' RES '.' LCPREV ')'
+ RES.H = '#define ' PREV TAB '((void *)' RES '.' LCPREV ')'
PREV =
MK_LBL1 RES.H = DIFFER(HERE) '#define ' HERE TAB NAME

2285
lang/snobol/files/patch-ae Normal file

File diff suppressed because it is too large Load diff