head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.8 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.6 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.4 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.2 pkgsrc-2011Q2-base:1.5 pkgsrc-2010Q3:1.4.0.10 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.8 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.6 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.4 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.2 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.3.0.46 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.44 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.42 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.40 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.38 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.36 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.34 pkgsrc-2008Q1:1.3.0.32 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.30 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.28 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.26 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.24 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.22 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.20 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.18 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.16 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.14 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.12 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.10 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.8 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.6 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.4 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.2 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.2.0.12 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.10 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2010.11.22.01.25.48; author asau; state dead; branches; next 1.4; 1.4 date 2009.08.25.11.56.35; author wiz; state Exp; branches; next 1.3; 1.3 date 2004.05.20.18.54.23; author wiz; state Exp; branches; next 1.2; 1.2 date 2001.06.20.06.53.41; author jtb; state Exp; branches; next 1.1; 1.1 date 2001.01.19.22.27.00; author jtb; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.01.19.22.27.00; author jtb; state Exp; branches; next ; desc @@ 1.5 log @Update to pForth version 27. Assume maintainership. Changes since version 21: V27 - Fixed REPOSITION-FILE FILE-SIZE and FILE-POSITION. They used to use single precision offset. Now use double as specified. - Delete object directories in Makefile clean. - Fixed "Issue 4: Filehandle remains locked upon INCLUDE error". http://code.google.com/p/pforth/issues/detail?id=4&can=1 - Fixed scrambled HISTORY on 64-bit systems. Was using CELL+ but really needed 4 +. - Fixed floating point input. Now accepts "1E" as 1.0. Was Issue #2. - Fixed lots of warning and made code compatible with C89 and ANSI. Uses -pedantic. - Use fseek and ftell on WIN32 instead of fseeko and ftello. - Makefile is now more standard. Builds in same dir as Makefile. Uses CFLAGS etc. - Add support for console IO with _WATCOMC_ - Internal CStringToForth and ForthStringToC now take a destination size for safety. - Run units tests for CStringToForth and ForthStringToC if PF_UNIT_TESTS is defined. V26 5/20/2010 - 64-bit support for M* UM/MOD etc by Aleksej Saushev. Thanks Aleksej! V25 5/19/2010 - Added 64-bit CELL support contributed by Aleksej Saushev. Thanks Aleksej! - Added "-x c" to Makefile CCOPTS to prevent confusion with C++ - Allow space after -d command line option. - Restore normal tty mode if pForth dictionary loading fails. V24 2/20/09 - Fixed Posix IO on Mac. ?TERMINAL was always returning true. - ACCCEPT now emits a space at end of line before output. - Fixed RESIZE because it was returning the wrong address. V23 8/4/2008 - Removed -v option from mkdir in build/unix/Makefile. It was not supported on FreeBSD. Thank you Alexsej Saushev for reporting this. V23 7/20/2008 - Reorganized for Google Code project. V22 (unreleased) - Added command line history and cursor control words. - Sped up UM* and M* by a factor of 3. Thanks to Steve Green for suggested algorithm. - Modified ACCEPT so that a line at the end of a file that does NOT have a line terminator will now be processed. - Use _getch(), _putch(), and _kbhit() so that KEY, EMIT and ?TERMINAL will work on PC. - Fixed : foo { -- } 55 ; - Was entering local frame but not exiting. Now prints error. - Redefined MAKE_ID to protect it from 16 bit ints - John Providenza says "If you split local variables onto 2 lines, PForth crashes." Fixed. Also allow \ - Fixed float evaluation in EVALUATE in "quit.fth". - Flush register cache for ffColon and ffSemiColon to prevent stack warnings from ; @ text @$NetBSD: patch-aa,v 1.4 2009/08/25 11:56:35 wiz Exp $ --- Makefile.orig 1998-04-06 17:13:12.000000000 +0200 +++ Makefile @@@@ -12,7 +12,7 @@@@ SOURCEDIR = csrc OBJECTDIR = objects EMBOBJECTDIR = embobjects -FULL_WARNINGS = -O2 \ +FULL_WARNINGS = \ -fsigned-char \ -fno-builtin \ -fno-unroll-loops \ @@@@ -26,8 +26,9 @@@@ FULL_WARNINGS = -O2 \ -Wmissing-prototypes \ -Wmissing-declarations -CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS) -COMPILER = gcc +CFLAGS += -DPF_SUPPORT_FP $(FULL_WARNINGS) + +CDEFS = -DPF_DIC=\"${PREFIX}/lib/pforth/pforth.dic\" EMBCCOPTS = -DPF_NO_INIT -DPF_NO_MALLOC -DPF_NO_FILEIO \ -DPF_NO_CLIB -DPF_STATIC_DIC @@@@ -41,13 +42,13 @@@@ PFTEMP = ${PFSOURCE:%.c=%.o} PFOBJS = ${PFTEMP:${SOURCEDIR}/%=${OBJECTDIR}/%} PFEMBOBJS = ${PFTEMP:${SOURCEDIR}/%=${EMBOBJECTDIR}/%} -COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS) +COMPILE = $(CXX) $(CPPFLAGS) $(CFLAGS) $(CDEFS) ${OBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c - $(COMPILE) -O -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c - + $(COMPILE) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c + ${EMBOBJECTDIR}/%.o: $(PFINCLUDES) ${SOURCEDIR}/%.c ${SOURCEDIR}/pfdicdat.h - $(COMPILE) -O -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS) + $(COMPILE) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS) all: pforth pforth.dic @@@@ -62,26 +63,26 @@@@ pffiles: echo ${PFOBJS} echo "EMBEDDED OBJECT FILES ------------------" echo ${PFEMBOBJS} - + # build pforth by compiling 'C' source pforth: $(PFINCLUDES) $(PFOBJS) - $(COMPILER) $(PFOBJS) -lm -o pforth + $(CXX) $(PFOBJS) -lm -o pforth # build basic dictionary by running newly built pforth and including system.fth pforth.dic: pforth - pforth -i system.fth + ./pforth -i system.fth ${SOURCEDIR}/pfdicdat.h: pforth pforth.dic @@(echo 'INCLUDE utils/savedicd.fth'; \ echo 'SDAD'; \ echo 'bye') | \ - pforth -dpforth.dic + ./pforth -dpforth.dic cp pfdicdat.h ${SOURCEDIR} pfemb: $(PFINCLUDES) $(PFEMBOBJS) - $(COMPILER) $(PFEMBOBJS) -lm -o pfemb - + $(CXX) $(PFEMBOBJS) -lm -o pfemb + clean: rm -f $(PFOBJS) $(PFEMBOBJS) pforth *.dic core ${SOURCEDIR}/pfdicdat.h pfemb @ 1.4 log @Change default for zip extraction to leave files as they are. Previously, zip extraction by default converted to lower case. Fix some packages that need it and remove -L from some packages that manually set it. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2004/05/20 18:54:23 wiz Exp $ @ 1.3 log @Convert to buildlink3, and make build with gcc3. Closes PR 25651 by Georg Schwarz. @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- makefile.orig 1998-04-06 17:13:12.000000000 +0200 +++ makefile @ 1.2 log @Update to pforth-21. V20 - Expand PAD for ConvertNumberToText so "-1 binary .s" doesn't crash. Thank you Michael Connor of Vancouver for reporting this bug. - Removed FDROP in REPRESENT to fix stack underflow after "0.0 F.". Thank you Jim Rosenow of Minnesota for reporting this bug. - Changed pfCharToLower to function to prevent macro expansion bugs under VXWORKS Thank you Jim Rosenow of Minnesota for reporting this bug. - "0.0 F~" now checks actual binary encoding of floats. Before this it used to just compare value which was incorrect. Now "0.0 -0.0 0.0 F~" returns FALSE. - Fixed definition of INPUT$ in tutorial. Thank you Hampton Miller of California for reporting this bug. - Added support for producing a target dictionary with a different Endian-ness than the host CPU. See PF_BIG_ENDIAN_DIC and PF_LITTLE_ENDIAN_DIC. - PForth kernel now comes up in a mode that uses BASE for numeric input when started with "-i" option. It used to always consider numeric input as HEX. Initial BASE is decimal. V21 - Fixed some compiler warnings. @ text @d3 1 a3 1 --- makefile.orig Mon Apr 6 17:13:12 1998 d5 1 a5 1 @@@@ -12,7 +12,7 @@@@ d14 1 a14 1 @@@@ -26,8 +26,9 @@@@ d26 1 a26 1 @@@@ -41,13 +42,13 @@@@ d31 1 a31 1 +COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(CDEFS) d44 1 a44 1 @@@@ -62,26 +63,26 @@@@ d53 1 a53 1 + $(CC) $(PFOBJS) -lm -o pforth d72 1 a72 1 + $(CC) $(PFEMBOBJS) -lm -o pfemb @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- makefile.orig Tue Apr 7 00:43:01 1998 d5 11 a15 1 @@@@ -27,7 +27,7 @@@@ d18 1 a18 1 CCOPTS = -DPF_SUPPORT_FP $(FULL_WARNINGS) d20 3 a22 1 +COMPILER = $(CC) d26 6 a31 2 @@@@ -44,10 +44,10 @@@@ COMPILE = $(COMPILER) $(CCOPTS) $(CDEFS) d36 1 a36 1 + $(COMPILE) $(CFLAGS) -o ${OBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c d40 1 a40 1 + $(COMPILE) $(CFLAGS) -o ${EMBOBJECTDIR}/$*.o -c ${SOURCEDIR}/$*.c $(EMBCCOPTS) d44 1 a44 1 @@@@ -62,26 +62,26 @@@@ d52 2 a53 1 $(COMPILER) $(PFOBJS) -lm -o pforth d70 1 a70 1 $(COMPILER) $(PFEMBOBJS) -lm -o pfemb d72 1 @ 1.1.1.1 log @Initial import of new "pforth" package: Portable ANS-like Forth written in ANSI C @ text @@