Skip to content

Commit 4e0e280

Browse files
committed
Rename files to 8.3 for DOS builds
DOS cannot handle long filenames. The original and new file names are: csrc/pf_io_none.c csrc/ionone.c csrc/posix/pf_io_posix.c csrc/posix/ioposix.c csrc/stdio/pf_fileio_stdio.c csrc/stdio/fiostdio.c csrc/stdio/pf_io_stdio.c csrc/stdio/iostdio.c csrc/win32/pf_io_win32.c csrc/win32/iowin32.c csrc/win32_console/pf_io_win32_console.c csrc/win32csl/iowin32c.c fth/save-input.fth fth/savinput.fth fth/structure.fth fth/structur.fth fth/t_include.fth fth/tinclude.fth fth/t_load_defer.fth fth/tlddefer.fth fth/t_load_pairs.fth fth/tldpairs.fth fth/t_load_semi.fth fth/tldsemi.fth fth/t_load_undef.fth fth/tldundef.fth fth/t_required_helper1.fth fth/treqhlp1.fth fth/t_required_helper2.fth fth/treqhlp2.fth fth/t_strings.fth fth/tstrings.fth fth/utils/dump_struct.fth fth/utils/dumpstru.fth fth/utils/load_file.fth fth/utils/loadfile.fth fth/utils/make_all256.fth fth/utils/make_all.fth Note that the folder "csrc/win32_console" became "csrc/win32csl". Updated all Makefiles and CMakeLists.txt to reflect the changes. Special thanks to https://github.com/guberathome for providing scripts to do the conversion. See #201 Fixes #216
1 parent daad339 commit 4e0e280

File tree

31 files changed

+64
-62
lines changed

31 files changed

+64
-62
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Support for 64-bit cells by Aleksej Saushev.
66

77
Portable Forth written in 'C' for most 32 and 64-bit platforms.
88

9-
PForth is written in 'C' and can be easily ported to new 32 and 64-bit platforms.
9+
PForth is written in 'C' and can be easily ported to new 32 and 64-bit platforms.
1010
It only needs character input and output functions to operate and, therefore, does not require an operating system.
1111
This makes it handy for bringing up and testing embedded systems.
1212

@@ -25,7 +25,7 @@ Code for pForth is maintained on GitHub at: https://github.com/philburk/pforth
2525
Documentation for pForth at: http://www.softsynth.com/pforth/
2626

2727
To report bugs or request features please file a GitHub Issue.
28-
28+
2929
For questions or general discussion please use the pForth forum at:
3030
http://groups.google.com/group/pforthdev
3131

@@ -72,7 +72,7 @@ On Unix and MacOS using Makefile:
7272
cd platforms/unix
7373
make all
7474
./pforth_standalone
75-
75+
7676
For more details, see the [Wiki](https://github.com/philburk/pforth/wiki/Compiling-on-Unix)
7777
Please note that this can help with other platforms as well, see platforms/zig-crossbuild/ for an example.
7878

@@ -92,7 +92,7 @@ For embedded systems, see the pForth reference manual at:
9292
To run the all-in-one pForth enter:
9393

9494
./pforth_standalone
95-
95+
9696
OR, to run using the dictionary file, enter:
9797

9898
./pforth
@@ -110,7 +110,7 @@ To compile source code files use:
110110
To create a custom dictionary enter in pForth:
111111

112112
c" newfilename.dic" SAVE-FORTH
113-
113+
114114
The name must end in ".dic".
115115

116116
To run PForth with the new dictionary enter in the shell:
@@ -119,7 +119,7 @@ To run PForth with the new dictionary enter in the shell:
119119

120120
To run PForth and automatically include a forth file:
121121
pforth myprogram.fth
122-
122+
123123
## How to Test pForth
124124

125125
PForth comes with a small test suite. To test the Core words,
@@ -138,13 +138,14 @@ Using CMake:
138138
./pforth
139139
include tester.fth
140140
include coretest.fth
141+
bye
141142

142143
To run the other tests, enter:
143144

144-
pforth t_corex.fth
145-
pforth t_strings.fth
146-
pforth t_locals.fth
147-
pforth t_alloc.fth
145+
./pforth t_corex.fth
146+
./pforth tstrings.fth
147+
./pforth t_locals.fth
148+
./pforth t_alloc.fth
148149

149150
They will report the number of tests that pass or fail.
150151

csrc/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
file(STRINGS sources.cmake SOURCES)
66

77
if(WIN32)
8-
set(PLATFORM stdio/pf_fileio_stdio.c win32_console/pf_io_win32_console.c )
8+
set(PLATFORM stdio/fiostdio.c win32csl/iowin32c.c )
99
endif(WIN32)
1010

1111
if(UNIX OR APPLE)
12-
set(PLATFORM posix/pf_io_posix.c stdio/pf_fileio_stdio.c)
12+
set(PLATFORM posix/ioposix.c stdio/fiostdio.c)
1313
endif(UNIX OR APPLE)
1414

1515
if (MSVC)
File renamed without changes.

csrc/sources.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pf_clib.c
2323
pf_core.c
2424
pf_inner.c
2525
pf_io.c
26-
pf_io_none.c
26+
ionone.c
2727
pf_mem.c
2828
pf_save.c
2929
pf_text.c

fth/loadp4th.fth

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ include? forget forget.fth
2020
include? >number numberio.fth
2121
include? task-misc1.fth misc1.fth
2222
include? case case.fth
23-
include? +field structure.fth
23+
include? +field structur.fth
2424
include? $= strings.fth
2525
include? privatize private.fth
2626
include? (local) ansilocs.fth
2727
include? { locals.fth
2828
include? fm/mod math.fth
2929
include? [if] condcomp.fth
3030
include? task-misc2.fth misc2.fth
31-
include? save-input save-input.fth
31+
include? save-input savinput.fth
3232
include? read-line file.fth
3333
include? require require.fth
3434
include? s\" slashqt.fth

0 commit comments

Comments
 (0)