Add MINGW suport.
authorburkphil <burkphil@b0a0988d-7f52-0410-8c73-4f6cdee1a2cf>
Tue, 23 Nov 2010 19:26:21 +0000 (19:26 +0000)
committerburkphil <burkphil@b0a0988d-7f52-0410-8c73-4f6cdee1a2cf>
Tue, 23 Nov 2010 19:26:21 +0000 (19:26 +0000)
Change 32 to BL.

build/unix/Makefile
csrc/pf_inner.c
csrc/pf_types.h
fth/member.fth
fth/misc1.fth
releases.txt

index bb53402..8a58140 100644 (file)
@@ -56,8 +56,7 @@ PFBASESOURCE = pf_cglue.c pf_clib.c pf_core.c pf_inner.c \
        pf_text.c pf_words.c pfcompil.c pfcustom.c
 PFSOURCE = $(PFBASESOURCE) $(IO_SOURCE)
 
        pf_text.c pf_words.c pfcompil.c pfcustom.c
 PFSOURCE = $(PFBASESOURCE) $(IO_SOURCE)
 
-VPATH = .:../../csrc:../../csrc/posix:../../csrc/stdio
-VPATH = .:$(SRCDIR)/csrc:$(SRCDIR)/csrc/posix:$(SRCDIR)/csrc/stdio
+VPATH = .:$(SRCDIR)/csrc:$(SRCDIR)/csrc/posix:$(SRCDIR)/csrc/stdio:$(SRCDIR)/csrc/win32_console:$(SRCDIR)/csrc/win32
 
 XCFLAGS = $(CCOPTS)
 XCPPFLAGS = $(CDEFS) -I.
 
 XCFLAGS = $(CCOPTS)
 XCPPFLAGS = $(CDEFS) -I.
index dad9265..dc9c719 100644 (file)
@@ -30,7 +30,7 @@
 \r
 #include "pf_all.h"\r
 \r
 \r
 #include "pf_all.h"\r
 \r
-#ifdef WIN32\r
+#if defined(WIN32) && !defined(__MINGW32__)\r
 #include <crtdbg.h>\r
 #endif\r
 \r
 #include <crtdbg.h>\r
 #endif\r
 \r
index 52ad9f7..95c8e3c 100644 (file)
@@ -27,8 +27,6 @@
        typedef long Err;\r
 #endif\r
 \r
        typedef long Err;\r
 #endif\r
 \r
-typedef cell_t  *dicptr;\r
-\r
 typedef char  ForthString;\r
 typedef char *ForthStringPtr;\r
 \r
 typedef char  ForthString;\r
 typedef char *ForthStringPtr;\r
 \r
index c690dbe..160e95f 100644 (file)
@@ -34,7 +34,7 @@ decimal
 \r
 : FIND.BODY   ( -- , pfa true | $name false , look for word in dict. )\r
 \ Return address of parameter data.\r
 \r
 : FIND.BODY   ( -- , pfa true | $name false , look for word in dict. )\r
 \ Return address of parameter data.\r
-     32 word find\r
+     bl word find\r
      IF  >body true\r
      ELSE false\r
      THEN\r
      IF  >body true\r
      ELSE false\r
      THEN\r
index 1e36e55..3a3a60a 100644 (file)
@@ -74,7 +74,7 @@ decimal
 \r
 : $ ( <number> -- N , convert next number as hex )\r
     base @ hex\r
 \r
 : $ ( <number> -- N , convert next number as hex )\r
     base @ hex\r
-    32 lword number? num_type_single = not\r
+    bl lword number? num_type_single = not\r
     abort" Not a single number!"\r
     swap base !\r
     state @\r
     abort" Not a single number!"\r
     swap base !\r
     state @\r
index 82be64c..5c2e189 100644 (file)
@@ -2,7 +2,10 @@ Release History for pForth - a Portable ANS-like Forth written in ANSI 'C'
 \r
 Documentation for pForth at http://www.softsynth.com/pforth/\r
 \r
 \r
 Documentation for pForth at http://www.softsynth.com/pforth/\r
 \r
-V27\r
+V28 - unreleased\r
+       - fixes for MinGW build\r
+\r
+V27 - 11/22/2010\r
     - Fixed REPOSITION-FILE FILE-SIZE and FILE-POSITION.\r
       They used to use single precision offset. Now use double as specified.\r
     - Delete object directories in Makefile clean.\r
     - Fixed REPOSITION-FILE FILE-SIZE and FILE-POSITION.\r
       They used to use single precision offset. Now use double as specified.\r
     - Delete object directories in Makefile clean.\r