Skip to content

Instantly share code, notes, and snippets.

@hellricer
Last active November 2, 2020 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellricer/0c8e9bb01adaaddc08ac3150d075bb60 to your computer and use it in GitHub Desktop.
Save hellricer/0c8e9bb01adaaddc08ac3150d075bb60 to your computer and use it in GitHub Desktop.
diff --git a/abuse/gameo.lnk b/abuse/gameo.lnk
new file mode 100755
index 0000000..b9667cc
--- /dev/null
+++ b/abuse/gameo.lnk
@@ -0,0 +1,77 @@
+system dos4gw
+option caseexact
+option map=game.map
+name game.exe
+option stack=120k
+file src\net\dos4gw\wat\opt\ipx_dud.obj
+file src\wat\opt\specache.obj
+file ..\imlib\wat\opt\sprite.obj
+file src\wat\opt\netcfg.obj
+file src\wat\opt\text_gui.obj
+file src\wat\opt\innet.obj
+file src\net\unix\wat\opt\gserver.obj
+file src\net\unix\wat\opt\gclient.obj
+file src\net\unix\wat\opt\fileman.obj
+file src\net\wat\opt\sock.obj
+file src\wat\opt\chat.obj
+file src\wat\opt\endgame.obj
+file src\wat\opt\setup.obj
+file src\wat\opt\version.obj
+file src\wat\opt\loadgame.obj
+file src\wat\opt\profile.obj
+file src\wat\opt\cop.obj
+file src\wat\opt\statbar.obj
+file src\wat\opt\compiled.obj
+file src\wat\opt\ant.obj
+file src\wat\opt\sensor.obj
+file src\wat\opt\lisp_opt.obj
+file src\wat\opt\demo.obj
+file src\wat\opt\lcache.obj
+file src\wat\opt\lisp_gc.obj
+file src\wat\opt\nfclient.obj
+file src\wat\opt\username.obj
+file src\wat\opt\clisp.obj
+file src\wat\opt\gui.obj
+file src\wat\opt\transp.obj
+file src\wat\opt\collide.obj
+file src\wat\opt\trig.obj
+file src\wat\opt\property.obj
+file src\wat\opt\lisp.obj
+file src\wat\opt\cache.obj
+file src\wat\opt\particle.obj
+file src\wat\opt\objects.obj
+file src\wat\opt\extend.obj
+file src\wat\opt\console.obj
+file src\wat\opt\ability.obj
+file src\wat\opt\items.obj
+file src\wat\opt\dev.obj
+file src\wat\opt\chars.obj
+file src\wat\opt\level.obj
+file src\wat\opt\smallfnt.obj
+file src\wat\opt\automap.obj
+file src\wat\opt\help.obj
+file src\wat\opt\intsect.obj
+file src\wat\opt\loader2.obj
+file src\wat\opt\seq.obj
+file src\wat\opt\points.obj
+file src\wat\opt\fnt6x13.obj
+file src\wat\opt\morpher.obj
+file src\wat\opt\menu.obj
+file src\wat\opt\director.obj
+file src\wat\opt\view.obj
+file src\wat\opt\config.obj
+file src\wat\opt\game.obj
+file src\wat\opt\light.obj
+file src\wat\opt\devsel.obj
+file src\wat\opt\crc.obj
+file src\wat\opt\gamma.obj
+file src\wat\opt\language.obj
+file ..\imlib\wat\opt\image.lib
+file ..\imlib\wat\opt\winman.lib
+file ..\imlib\wat\opt\gui.lib
+file ..\imlib\wat\opt\dir.lib
+file ..\imlib\wat\opt\time.lib
+file ..\sos\lib\sosw1cr.lib
+file ..\imlib\wat\opt\sound.lib
+file ..\imlib\wat\opt\joy.lib
+file ..\imlib\wat\opt\packet.lib
diff --git a/abuse/makefile.wat b/abuse/makefile.wat
index b89db6c..559dd03 100755
--- a/abuse/makefile.wat
+++ b/abuse/makefile.wat
@@ -2342,7 +2342,7 @@ src\wat\debug\language.obj : inc\lisp_opt.hpp
src\wat\debug\language.obj : inc\lisp.hpp
WATCOM_gameo_opt_o_files = &
- src\net\dos4gw\wat\opt\ipx.obj &
+ src\net\dos4gw\wat\opt\ipx_dud.obj &
src\wat\opt\specache.obj &
..\imlib\wat\opt\sprite.obj &
src\wat\opt\netcfg.obj &
@@ -2409,9 +2409,9 @@ WATCOM_gameo_opt_o_files = &
gameo.exe : $(WATCOM_gameo_opt_o_files)
wlink @gameo.lnk
-src\net\dos4gw\wat\opt\ipx.obj : src\net\dos4gw\ipx.c
+src\net\dos4gw\wat\opt\ipx_dud.obj : src\net\dos4gw\ipx_dud.c
set include=$(%WATCOM)\h;inc;../imlib/include;src/net/inc;src/net/unix;src/net/inc
- wpp386 src\net\dos4gw\ipx.c -fo=src\net\dos4gw\wat\opt\ipx.obj /omaxne /zp1 /zq -DNO_CHECK -DMANAGE_MEM
+ wpp386 src\net\dos4gw\ipx_dud.c -fo=src\net\dos4gw\wat\opt\ipx_dud.obj /omaxne /zp1 /zq -DNO_CHECK -DMANAGE_MEM
src\net\dos4gw\wat\opt\ipx.obj : src\net\dos4gw\ipx.c
src\wat\opt\specache.obj : src\specache.c
diff --git a/abuse/src/net/wat/opt/.empty b/abuse/src/net/wat/opt/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/abuse/src/net/dos4gw/wat/opt/.empty b/abuse/src/net/dos4gw/wat/opt/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/abuse/src/net/unix/wat/opt/.empty b/abuse/src/net/unix/wat/opt/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/abuse/src/wat/opt/.empty b/abuse/src/wat/opt/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/imlib/include/exitproc.hpp b/imlib/include/exitproc.hpp
index d71eb43..2297c5b 100644
--- a/imlib/include/exitproc.hpp
+++ b/imlib/include/exitproc.hpp
@@ -3,13 +3,7 @@
#include <stdlib.h>
-#ifdef HAVE_ATEXIT
#define exit_proc(x,y) atexit(y)
-#elif defined (HAVE_ON_EXIT)
-#define exit_proc(x,y) on_exit(x,NULL)
-#else
-#error no atexit?!?
-#endif
#endif
diff --git a/imlib/makefile.wat b/imlib/makefile.wat
index 09f2bbd..1c9ef10 100755
--- a/imlib/makefile.wat
+++ b/imlib/makefile.wat
@@ -844,7 +844,7 @@ WATCOM_time_opt_o_files = &
port\dos4gw\wat\opt\timing.obj
.\wat\opt\time.lib : $(WATCOM_time_opt_o_files)
- wlib /n @.\wat\opt\time.lnk
+ wlib /o .\wat\opt\time.lib /n @.\wat\opt\time.lnk
port\dos4gw\wat\opt\timing.obj : port\dos4gw\timing.c
set include=$(%WATCOM)\h;include
@@ -854,7 +854,7 @@ port\dos4gw\wat\opt\timing.obj : include\dprint.hpp
port\dos4gw\wat\opt\timing.obj : include\timing.hpp
.\wat\opt\joy.lib : $(WATCOM_joy_opt_o_files)
- wlib /n @.\wat\opt\joy.lnk
+ wlib /o .\wat\opt\joy.lib /n @.\wat\opt\joy.lnk
port\dos4gw\wat\opt\joystick.obj : port\dos4gw\joystick.c
set include=$(%WATCOM)\h;include
@@ -863,7 +863,7 @@ port\dos4gw\wat\opt\joystick.obj : port\dos4gw\joystick.c
port\dos4gw\wat\opt\joystick.obj : include\joy.hpp
.\wat\opt\winman.lib : $(WATCOM_winman_opt_o_files)
- wlib /n @.\wat\opt\winman.lnk
+ wlib /o .\wat\opt\winman.lib /n @.\wat\opt\winman.lnk
port\dos4gw\wat\opt\video.obj : port\dos4gw\video.c
set include=$(%WATCOM)\h;include
@@ -949,7 +949,7 @@ port\dos4gw\wat\opt\doscall.obj : include\doscall.hpp
.\wat\opt\jwindow.obj : include\video.hpp
.\wat\opt\dir.lib : $(WATCOM_dir_opt_o_files)
- wlib /n @.\wat\opt\dir.lnk
+ wlib /o .\wat\opt\dir.lib /n @.\wat\opt\dir.lnk
port\dos4gw\wat\opt\jdir.obj : port\dos4gw\jdir.c
set include=$(%WATCOM)\h;include
@@ -958,7 +958,7 @@ port\dos4gw\wat\opt\jdir.obj : port\dos4gw\jdir.c
port\dos4gw\wat\opt\jdir.obj : include\jmalloc.hpp
.\wat\opt\net.lib : $(WATCOM_net_opt_o_files)
- wlib /n @.\wat\opt\net.lnk
+ wlib /o .\wat\opt\net.lib /n @.\wat\opt\net.lnk
port\dos4gw\wat\opt\jnet.obj : port\dos4gw\jnet.c
set include=$(%WATCOM)\h;include
@@ -995,10 +995,10 @@ port\dos4gw\wat\opt\bwtcp.obj : include\macs.hpp
port\dos4gw\wat\opt\bwtcp.obj : include\jnet.hpp
.\wat\opt\sound.lib : $(WATCOM_sound_opt_o_files)
- wlib /n @.\wat\opt\sound.lnk
+ wlib /o .\wat\opt\sound.lib /n @.\wat\opt\sound.lnk
port\dos4gw\wat\opt\sound.obj : port\dos4gw\sound.c
- set include=$(%WATCOM)\h;include;c:\sos\include
+ set include=$(%WATCOM)\h;include;..\sos\include
wpp386 port\dos4gw\sound.c -fo=port\dos4gw\wat\opt\sound.obj /omaxne /zp1 /zq -DNO_CHECK -DMANAGE_MEM
port\dos4gw\wat\opt\sound.obj : include\timing.hpp
@@ -1011,15 +1011,15 @@ port\dos4gw\wat\opt\sound.obj : include\jmalloc.hpp
port\dos4gw\wat\opt\sound.obj : include\linked.hpp
port\dos4gw\wat\opt\sound.obj : include\specs.hpp
port\dos4gw\wat\opt\sound.obj : include\readwav.hpp
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sosmdata.h
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sosmfnct.h
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sosm.h
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sosfnct.h
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sosdata.h
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sosdefs.h
-port\dos4gw\wat\opt\sound.obj : c:\sos\include\sos.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sosmdata.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sosmfnct.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sosm.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sosfnct.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sosdata.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sosdefs.h
+port\dos4gw\wat\opt\sound.obj : ..\sos\include\sos.h
.\wat\opt\readwav.obj : readwav.c
- set include=$(%WATCOM)\h;include;c:\sos\include
+ set include=$(%WATCOM)\h;include;..\sos\include
wpp386 readwav.c -fo=.\wat\opt\readwav.obj /omaxne /zp1 /zq -DNO_CHECK -DMANAGE_MEM
.\wat\opt\readwav.obj : include\dprint.hpp
@@ -1030,16 +1030,16 @@ port\dos4gw\wat\opt\sound.obj : c:\sos\include\sos.h
.\wat\opt\readwav.obj : include\specs.hpp
.\wat\opt\readwav.obj : include\readwav.hpp
port\dos4gw\wat\opt\profile.obj : port\dos4gw\profile.c
- set include=$(%WATCOM)\h;include;c:\sos\include
+ set include=$(%WATCOM)\h;include;..\sos\include
wpp386 port\dos4gw\profile.c -fo=port\dos4gw\wat\opt\profile.obj /omaxne /zp1 /zq -DNO_CHECK -DMANAGE_MEM
-port\dos4gw\wat\opt\profile.obj : c:\sos\include\sosfnct.h
-port\dos4gw\wat\opt\profile.obj : c:\sos\include\sosdata.h
-port\dos4gw\wat\opt\profile.obj : c:\sos\include\sosdefs.h
-port\dos4gw\wat\opt\profile.obj : c:\sos\include\sos.h
+port\dos4gw\wat\opt\profile.obj : ..\sos\include\sosfnct.h
+port\dos4gw\wat\opt\profile.obj : ..\sos\include\sosdata.h
+port\dos4gw\wat\opt\profile.obj : ..\sos\include\sosdefs.h
+port\dos4gw\wat\opt\profile.obj : ..\sos\include\sos.h
.\wat\opt\gui.lib : $(WATCOM_gui_opt_o_files)
- wlib /n @.\wat\opt\gui.lnk
+ wlib /o .\wat\opt\gui.lib /n @.\wat\opt\gui.lnk
.\wat\opt\pmenu.obj : pmenu.c
set include=$(%WATCOM)\h;include
@@ -1159,7 +1159,7 @@ port\dos4gw\wat\opt\profile.obj : c:\sos\include\sos.h
.\wat\opt\guistat.obj : include\status.hpp
.\wat\opt\packet.lib : $(WATCOM_packet_opt_o_files)
- wlib /n @.\wat\opt\packet.lnk
+ wlib /o .\wat\opt\packet.lib /n @.\wat\opt\packet.lnk
.\wat\opt\packet.obj : packet.c
set include=$(%WATCOM)\h;include
@@ -1171,7 +1171,7 @@ port\dos4gw\wat\opt\profile.obj : c:\sos\include\sos.h
.\wat\opt\packet.obj : include\packet.hpp
.\wat\opt\image.lib : $(WATCOM_image_opt_o_files)
- wlib /n @.\wat\opt\image.lnk
+ wlib /o .\wat\opt\image.lib /n @.\wat\opt\image.lnk
.\wat\opt\filter.obj : filter.c
set include=$(%WATCOM)\h;include
diff --git a/imlib/port/dos4gw/wat/opt/.empty b/imlib/port/dos4gw/wat/opt/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/imlib/wat/opt/.empty b/imlib/wat/opt/.empty
new file mode 100644
index 0000000..e69de29
diff --git a/imlib/wat/opt/DIR.LNK b/imlib/wat/opt/DIR.LNK
new file mode 100644
index 0000000..54015bb
--- /dev/null
+++ b/imlib/wat/opt/DIR.LNK
@@ -0,0 +1 @@
+port\dos4gw\wat\opt\jdir.obj
diff --git a/imlib/wat/opt/GUI.LNK b/imlib/wat/opt/GUI.LNK
new file mode 100644
index 0000000..693c0c8
--- /dev/null
+++ b/imlib/wat/opt/GUI.LNK
@@ -0,0 +1,5 @@
+wat\opt\pmenu.obj
+wat\opt\scroller.obj
+wat\opt\filesel.obj
+wat\opt\tools.obj
+wat\opt\guistat.obj
diff --git a/imlib/wat/opt/IMAGE.LNK b/imlib/wat/opt/IMAGE.LNK
new file mode 100644
index 0000000..f8cf7fa
--- /dev/null
+++ b/imlib/wat/opt/IMAGE.LNK
@@ -0,0 +1,29 @@
+wat\opt\filter.obj
+wat\opt\gifread.obj
+wat\opt\globals.obj
+wat\opt\image.obj
+wat\opt\linked.obj
+wat\opt\input.obj
+wat\opt\mdlread.obj
+wat\opt\palette.obj
+wat\opt\ppmread.obj
+wat\opt\include.obj
+wat\opt\xwdread.obj
+wat\opt\fonts.obj
+wat\opt\decoder.obj
+wat\opt\loader.obj
+wat\opt\glread.obj
+wat\opt\texture.obj
+wat\opt\specs.obj
+wat\opt\supmorph.obj
+wat\opt\image24.obj
+wat\opt\pcxread.obj
+wat\opt\timage.obj
+wat\opt\jmalloc.obj
+wat\opt\jrand.obj
+wat\opt\lbmread.obj
+wat\opt\targa.obj
+wat\opt\keys.obj
+wat\opt\dprint.obj
+wat\opt\status.obj
+wat\opt\visobj.obj
diff --git a/imlib/wat/opt/JOY.LNK b/imlib/wat/opt/JOY.LNK
new file mode 100644
index 0000000..17673c9
--- /dev/null
+++ b/imlib/wat/opt/JOY.LNK
@@ -0,0 +1 @@
+port\dos4gw\wat\opt\joystick.obj
diff --git a/imlib/wat/opt/NET.LNK b/imlib/wat/opt/NET.LNK
new file mode 100644
index 0000000..9a30407
--- /dev/null
+++ b/imlib/wat/opt/NET.LNK
@@ -0,0 +1,3 @@
+port\dos4gw\wat\opt\jnet.obj
+port\dos4gw\wat\opt\ipx.obj
+port\dos4gw\wat\opt\bwtcp.obj
diff --git a/imlib/wat/opt/PACKET.LNK b/imlib/wat/opt/PACKET.LNK
new file mode 100644
index 0000000..c4eda66
--- /dev/null
+++ b/imlib/wat/opt/PACKET.LNK
@@ -0,0 +1 @@
+wat\opt\packet.obj
diff --git a/imlib/wat/opt/SOUND.LNK b/imlib/wat/opt/SOUND.LNK
new file mode 100644
index 0000000..dc9916a
--- /dev/null
+++ b/imlib/wat/opt/SOUND.LNK
@@ -0,0 +1,3 @@
+port\dos4gw\wat\opt\sound.obj
+.\wat\opt\readwav.obj
+port\dos4gw\wat\opt\profile.obj
diff --git a/imlib/wat/opt/TIME.LNK b/imlib/wat/opt/TIME.LNK
new file mode 100644
index 0000000..9e83595
--- /dev/null
+++ b/imlib/wat/opt/TIME.LNK
@@ -0,0 +1 @@
+port\dos4gw\wat\opt\timing.obj
diff --git a/imlib/wat/opt/WINMAN.LNK b/imlib/wat/opt/WINMAN.LNK
new file mode 100644
index 0000000..0001d13
--- /dev/null
+++ b/imlib/wat/opt/WINMAN.LNK
@@ -0,0 +1,5 @@
+port\dos4gw\wat\opt\video.obj
+port\dos4gw\wat\opt\mouse.obj
+port\dos4gw\wat\opt\event.obj
+port\dos4gw\wat\opt\doscall.obj
+.\wat\opt\jwindow.obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment