Scott Long
f1757c6ee7
Make ficl work on sparc64. The assumption that int == long == void * is
...
very pervasive in this code. This fixes a few of those assumptions and
band-aids over some others.
Tested on: ia32 alpha sparc64
Reviewed by: peter jake (in concept)
2002-08-31 01:04:53 +00:00
Scott Long
7effdac07a
Fix for stand-alone compiling
...
Reviewed by: mini
2002-08-21 09:28:00 +00:00
Jake Burkholder
dafb594328
MD ficl files for sparc64.
2002-05-19 23:20:56 +00:00
Tom Rhodes
d394511de3
More s/file system/filesystem/g
2002-05-16 21:28:32 +00:00
Ruslan Ermilov
46f8fdc34e
Removed now unused INTERNALSTATICLIB.
...
INTERNALLIB now implies NOPIC and NOPROFILE.
Removed gratuitous NOMAN.
2002-05-13 11:09:07 +00:00
David E. O'Brien
95cfc25d0d
Back out last commit. I expect our bsd.*.mk gods to remove the need for
...
defining so many extra things in addition to INTERNALLIB. We don't like
repetitive C code and we shouldn't for make code either.
2002-05-12 13:54:42 +00:00
David E. O'Brien
3bf8b9cee3
NOPIC, NOPROFILE, NOMAN, and INTERNALSTATICLIB are redundant when using
...
INTERNALLIB now.
2002-05-11 18:02:33 +00:00
David E. O'Brien
d1bdfb40fd
-ffreestanding is the word.
...
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
2002-05-10 09:26:35 +00:00
David E. O'Brien
a89dc896b5
Partical style cleanup.
2002-05-09 17:47:25 +00:00
Daniel C. Sobral
be88b71603
Upgrade to FICL version 3.02. Anything wrong is my fault, everything right is
...
due Jon Mini.
PR: 36308
Submitted by: Jon Mini <mini@haikugeek.com>
MFC after: 4 weeks
2002-04-09 17:45:28 +00:00
John Baldwin
0889b9be41
- Add 'fwrite' and 'fseek' words for writing to and seeking on files.
...
- Change the 'fopen' keyword to accept a mode parameter. Note that this
will break existing 4th scripts that use fopen. Thus, the loader
version has been bumped and loader.4th has been changed to check for a
sufficient version on i386 and alpha. Be sure that you either do a full
world build or install or full build and install of sys/boot after this
since loader.old won't work with the new 4th files and vice versa.
PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.
2001-12-11 00:49:34 +00:00
Daniel C. Sobral
b31463c915
Remove unused filed.
...
PR: kern/32395
Submitted by: Jonathan Mini <mini@haikugeek.com>
2001-12-03 12:07:05 +00:00
David E. O'Brien
09a4374e6d
Revert rev 1.7 which moved us away from POSIX character classes.
...
The community feels our base AWK must handle them.
2001-11-03 01:33:12 +00:00
David E. O'Brien
2273086d55
Substitute "[:space:]" with the character constants it expands to.
...
This was a silent 'failure' when using Bell-Labs awk.
Submitted by: David Wolfskill <david@catwhisker.org>
2001-11-01 19:14:16 +00:00
Doug Rabson
1a4f097e7a
Avoid an alignment fault on 64bit architectures.
...
Reviewed by: dcs
2001-09-04 13:13:12 +00:00
Doug Rabson
350ee9804b
Add definition for arch-ia64.
2001-09-04 08:51:15 +00:00
Doug Rabson
10357ecd95
Add ia64 system dependancies.
2001-09-04 08:50:23 +00:00
Daniel C. Sobral
38e0371f17
Turn dictthreshold and dictincrease into cell-sized variables, so
...
they can be used with cell operators like !.
As I did this, I noticed the whole CELL thing might have problems with
big endian architectures with sizeof(int)!=sizeof(void*).
2001-05-29 23:44:12 +00:00
Daniel C. Sobral
66bd171e5f
As in with ":", check dictionary space and increase it if necessary before
...
"create".
2001-05-27 16:30:10 +00:00
Daniel C. Sobral
ec10295143
FICL 2.05 has a flawed definition of BASE. Fix it.
...
Spotted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
2001-05-10 05:13:09 +00:00
Daniel C. Sobral
49acc8fe50
Bring in ficl 2.05.
...
This version has a step debugger, which now completely replaces the
old trace feature. Also, we moved all of the FreeBSD-specific MI
code to loader.c, reducing the diff between this and the official
FICL distribution.
2001-04-29 02:36:36 +00:00
Ruslan Ermilov
afcf05e46a
setlocale(3) has been fixed to match POSIX standard:
...
LC_ALL takes precedence over other LC_* envariables.
2001-03-02 16:52:14 +00:00
Andrey A. Chernov
fea0a15961
Cosmetique: don't use localized date
2000-12-01 01:58:48 +00:00
David E. O'Brien
f9c70d7647
Don't use the Gawkism strftime(). Pass in the date stamp on the awk
...
command line instead.
Approved by: dcs
2000-11-14 21:02:49 +00:00
Doug Rabson
55f0c30072
Fix this so that we actually define HAVE_PNP when its available.
2000-09-10 17:11:27 +00:00
Doug Rabson
4eedebf31f
Only build PnP parts if the platform supports PnP.
2000-09-10 12:15:30 +00:00
Daniel C. Sobral
f5da975f8f
Add the infrastructure necessary to handle PnP from a Forth script.
...
Also, export the file_findfile() function. Again, this is taken from
work in progress but frozen for the time being. Since it works, I'd
rather commit and remove any uglyness later than hide it on my tree.
2000-09-08 17:03:53 +00:00
Peter Wemm
5aef48a16b
Add -mpreferred-stack-boundary=2 to CFLAGS for i386. This and libstand
...
reduces /boot/loader from 163840 bytes to 155648 and pxeboot from 165888
bytes to 157696 bytes.
2000-08-11 23:23:20 +00:00
Daniel C. Sobral
70e1899762
Fix REFILL. It must throw RESTART instead of OUTOFTEXT so that
...
execution can take place at the point where it stopped after the
input buffer has been refilled.
Add ANS Forth CORE EXT and FILE word SOURCE-ID.
2000-06-12 16:46:28 +00:00
Daniel C. Sobral
23bab6002c
Make abort" functional in interpret mode. This behavior is undefined
...
by ANS Forth standard, but it's useful.
Also, define the constant true in a more strict way. C might garantee
2-complement math, but Forth doesn't.
2000-06-12 16:42:02 +00:00
Daniel C. Sobral
d2083bf417
Make comment reflect reality.
2000-06-12 16:40:00 +00:00
Daniel C. Sobral
f0b972df2f
Add setenv, getenv, setenv?, unsetenv, copyin and copyout to FICL.
2000-06-07 22:07:01 +00:00
Daniel C. Sobral
7015e7c9a1
Remove a bug that caused local variables declarations in the format
...
{ | internal -- } to be rejected.
2000-06-07 22:00:10 +00:00
Daniel C. Sobral
11b96475f7
Apply a number of fixes for the Alpha platform.
2000-06-02 20:07:56 +00:00
Daniel C. Sobral
b8e8da45a9
Add something that was missing from the original 2.04 distribution.
2000-06-02 13:49:09 +00:00
Daniel C. Sobral
b270590aeb
Add "int" sized manipulation words.
2000-06-01 18:10:44 +00:00
Daniel C. Sobral
b6b204a98b
Strip spaces and comments more agressively.
2000-05-26 22:58:10 +00:00
Daniel C. Sobral
7795d19132
Bring in FICL 2.04. No bump of loader version is required by this
...
commit.
2000-05-26 21:35:08 +00:00
Peter Wemm
4887dfcfd4
Stop libficl from using floating point registers - this was cauing
...
dictDelete() to fault early on the Alpha and was the original cause of
the Alpha ficl failures.
2000-05-12 21:51:20 +00:00
Daniel C. Sobral
ff7e939c43
Lay the groundwork for on-demand dictionary expansion.
2000-05-05 02:06:38 +00:00
Daniel C. Sobral
20689aa3d4
Correct a bug whereby allocations to the dictionary would not be allowed
...
unless four times the space requested was available.
2000-05-04 23:23:13 +00:00
Daniel C. Sobral
1ca3a0ce6a
Add heap?, so we can tell how much free space we have left.
2000-05-04 20:41:30 +00:00
Daniel C. Sobral
bc9ca81f3d
Implement a machine-independent (word size-independent) FICL_TRUE.
2000-01-28 03:59:12 +00:00
Daniel C. Sobral
c2881538fa
ANS Forth for logical not is 0=, not invert. Replace wrong usage.
2000-01-28 03:41:39 +00:00
Daniel C. Sobral
d9d102dd14
Add testmain.o to CLEANFILES.
2000-01-28 03:07:25 +00:00
Daniel C. Sobral
5c23af7cdb
Try my hand again at removing ugly testmain target.
2000-01-28 02:40:23 +00:00
Daniel C. Sobral
3f45ca0445
Zeroes structure before using it.
1999-11-27 18:31:57 +00:00
Daniel C. Sobral
0ae220095f
Revert ill-considered simplification in 1.13.
...
Pointed by: peter
1999-11-23 16:28:39 +00:00
Daniel C. Sobral
83b912c6e6
Improve Makefile by using .PATH.
...
Taught by: peter
1999-11-23 15:55:28 +00:00
Daniel C. Sobral
8967d5f42e
Improve on ficl port to alpha.
...
Files sysdep.[ch] are now in ${MACHINE_ARCH} subdirectory. Internal
#if's used to identify the platform where removed.
Make rule for target testmain was greatly simplified, because it was
easier simplifying it than changing it to support the new location of
sysdep.[ch].
(a repo-copy was done on sysdep.[ch], of course)
1999-11-23 15:24:30 +00:00