emitcm7.c was the same wrapper trick as the checker: nineteen #define renames, a textual include of emit_c.c, and a per-unit feature scan choosing between two emitters. Five of the M7 halves fell through to their M6 counterpart, so those become the single entry point with the old body renamed to *_core; the other thirteen never delegated at all and simply replace the M6 version. The scan is gone from both places it was used -- the program entry and the expression emitter, whose switch already ended in a default that delegates. fe_emit_c_program_core went with the dispatch that was its only caller. emitcm7.c is deleted and the build compiles emit_c.c directly. Nothing in the compiler now selects an implementation by looking for `?` or `!` in a unit. This is the pair to the checker commit; together they end the two-engine split that produced four of the five defects fixed while getting M7 to pass.
50 lines
1.8 KiB
Batchfile
50 lines
1.8 KiB
Batchfile
@echo off
|
|
rem Open Watcom C89 build. TEST-DOS.BAT runs this from C:\FEC.
|
|
C:
|
|
cd \FEC
|
|
if exist BUILD.OK del BUILD.OK
|
|
if exist BUILD.FAIL del BUILD.FAIL
|
|
if exist fec.exe del fec.exe
|
|
if exist __wcl__.lnk del __wcl__.lnk
|
|
if exist *.obj del *.obj
|
|
|
|
if "%WATCOM%"=="" set WATCOM=C:\DEVEL\WATCOMC
|
|
if not exist %WATCOM%\BINW\WCL.EXE goto build_fail
|
|
set PATH=%WATCOM%\BINW;%WATCOM%\BINP;%PATH%
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=arena.obj src\arena.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=diag.obj src\diag.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=lexer.obj src\lexer.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=ast.obj src\ast.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=parser.obj src\parser.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=types.obj src\types.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=m7.obj src\m7.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=own.obj src\own.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=check.obj src\check.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=lower.obj src\lower.c
|
|
if errorlevel 1 goto build_fail
|
|
rem Use an unambiguous short object name for the emitter source.
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=emitc.obj src\emit_c.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -c -fo=driver.obj src\driver.c
|
|
if errorlevel 1 goto build_fail
|
|
wcl -q -za -wx -bt=dos -ml -k32768 -fe=fec.exe *.obj
|
|
if errorlevel 1 goto build_fail
|
|
if not exist fec.exe goto build_fail
|
|
echo OK>BUILD.OK
|
|
cd C:\FEC
|
|
goto build_done
|
|
|
|
:build_fail
|
|
echo FAIL>BUILD.FAIL
|
|
|
|
:build_done
|