head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2010Q3:1.2.0.68 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.66 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.64 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.62 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.60 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.58 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.56 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.54 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.52 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.50 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.48 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.46 pkgsrc-2008Q1:1.2.0.44 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.42 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.40 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.38 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.36 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.34 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.32 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.30 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.28 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.26 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.24 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.22 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.20 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.18 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.16 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.14 pkgsrc-2004Q2-base:1.2 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.3 date 2010.11.22.01.25.48; author asau; state dead; 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.3 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-ab,v 1.2 2001/06/20 06:53:41 jtb Exp $ --- csrc/pf_main.c.orig Tue Mar 31 22:34:50 1998 +++ csrc/pf_main.c @@@@ -42,7 +42,12 @@@@ int main( int argc, char **argv ) { + +#ifdef PF_DIC + const char *DicName = PF_DIC; +#else const char *DicName = "pforth.dic"; +#endif const char *SourceName = NULL; char IfInit = FALSE; char *s; @ 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 @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- csrc/pf_main.c.orig Fri Jan 19 21:03:56 2001 d5 1 a5 1 @@@@ -42,7 +42,7 @@@@ d9 6 a14 2 - const char *DicName = "pforth.dic"; + const char *DicName = "@@PREFIX@@/lib/pforth/pforth.dic"; @ 1.1.1.1 log @Initial import of new "pforth" package: Portable ANS-like Forth written in ANSI C @ text @@