]> 4ch.mooo.com Git - 16.git/commitdiff
wwww
authorsparky4 <sparky4@cock.li>
Fri, 26 Jun 2015 21:46:16 +0000 (16:46 -0500)
committersparky4 <sparky4@cock.li>
Fri, 26 Jun 2015 21:46:16 +0000 (16:46 -0500)
modified:   16.LIB
modified:   16.exe
modified:   Project 16.bfproject
modified:   inputest.exe
deleted:    link.eer
modified:   makefile
modified:   maptest.exe
modified:   pcxtest.exe
modified:   scroll.exe
modified:   src/lib/16_in.h
modified:   src/lib/lib_head.c
modified:   src/lib/lib_head.h
modified:   test.exe
modified:   test2.exe

14 files changed:
16.LIB
16.exe
Project 16.bfproject
inputest.exe
link.eer [deleted file]
makefile
maptest.exe
pcxtest.exe
scroll.exe
src/lib/16_in.h
src/lib/lib_head.c
src/lib/lib_head.h
test.exe
test2.exe

diff --git a/16.LIB b/16.LIB
index c73feb572011cdd2623cd108b800b377ab4d7935..a7096a2a01577ca1efda7736920089b0ab4bc610 100644 (file)
Binary files a/16.LIB and b/16.LIB differ
diff --git a/16.exe b/16.exe
index 2b618bafc192500a4612f712985f46e28924abac..d7fd0f66dd6ac1eceee6c7dae33a27e11a8c52a1 100644 (file)
Binary files a/16.exe and b/16.exe differ
index 5d5f6db4cc0ae089d10680e9a486bbe2cec9a82b..87267f399ec72d140af46b051acd0e984ae7eb64 100644 (file)
@@ -3,7 +3,7 @@ e2c.convert_num: 0
 openfiles: /dos/z/16/doc/project.txt:80:0:0:
 openfiles: /dos/z/16/src/palettec.c:882:0:0:
 openfiles: /dos/z/16/src/pcxtest.c:931:0:0:
-openfiles: /dos/z/16/src/scroll.c:18038:17181:1:
+openfiles: /dos/z/16/src/scroll.c:17909:17181:0:
 openfiles: /dos/z/16/src/fmemtest.c:891:0:0:
 openfiles: /dos/z/16/src/emmtest.c:405:0:0:
 openfiles: /dos/z/16/src/emsdump.c:890:0:0:
@@ -31,14 +31,17 @@ openfiles: /dos/z/16/src/lib/exmm/emmsize.h:1159:693:0:
 openfiles: /dos/z/16/src/lib/exmm/emmret.h:0:0:0:
 openfiles: /dos/z/16/src/lib/jsmn/farjsmn.c:7182:6170:0:
 openfiles: /dos/z/16/src/lib/jsmn/farjsmn.h:861:381:0:
-openfiles: /dos/z/16/src/lib/lib_head.c:883:0:0:
-openfiles: /dos/z/16/src/lib/lib_head.h:948:377:0:
-openfiles: /dos/z/16/makefile:1004:354:0:
-openfiles: /dos/z/16/src/lib/types.h:1009:0:0:
+openfiles: /dos/z/16/src/lib/lib_head.c:890:0:0:
+openfiles: /dos/z/16/src/lib/lib_head.h:3340:2984:0:
+openfiles: /dos/z/16/makefile:3246:2866:0:
+openfiles: /dos/z/16/src/lib/types.h:1043:128:0:
 openfiles: /dos/z/16/src/16.h:943:0:0:
-openfiles: /dos/z/16/src/16.c:928:0:0:
+openfiles: /dos/z/16/src/16.c:891:0:0:
 openfiles: /dos/z/16/src/lib/scroll16.h:961:0:0:
-openfiles: /dos/z/16/src/lib/scroll16.c:912:0:0:
+openfiles: /dos/z/16/src/lib/scroll16.c:0:0:0:
+openfiles: /dos/z/16/src/inputest.c:976:0:0:
+openfiles: /dos/z/16/src/lib/16_in.c:5652:5251:0:
+openfiles: /dos/z/16/src/lib/16_in.h:6531:4290:1:
 snr_recursion_level: 0
 convertcolumn_horizontally: 0
 adv_open_matchname: 0
@@ -53,7 +56,7 @@ c2e.convert_iso: 0
 opendir: file:///dos/z/16/src/lib
 wrap_text_default: 0
 bookmarks_filename_mode: 1
-ssearch_text: puts
+ssearch_text: JoyDefs
 snr_casesens: 0
 view_blocks: 1
 name: Project 16
@@ -75,9 +78,6 @@ ssearch_regex: 0
 e2c.convert_iso: 0
 ssearch_casesens: 0
 charmap_block: 1
-recent_files: file:///dos/z/16/src/emm.c
-recent_files: file:///dos/z/16/src/far.c
-recent_files: file:///dos/z/16/src/emstest.c
 recent_files: file:///dos/z/16/src/lib/exmm/x.bat
 recent_files: file:///dos/z/16/src/lib/jsmn/jsmn.c
 recent_files: file:///dos/z/16/src/lib/jsmn/jsmn.h
@@ -125,8 +125,11 @@ recent_files: file:///dos/z/16/src/16.c
 recent_files: file:///dos/z/16/src/lib/scroll16.h
 recent_files: file:///dos/z/16/src/lib/scroll16.c
 recent_files: file:///dos/z/16/src/16.h
+recent_files: file:///dos/z/16/src/inputest.c
+recent_files: file:///dos/z/16/src/lib/16_in.h
+recent_files: file:///dos/z/16/src/lib/16_in.c
 snr_replacetype: 0
-savedir: file:///dos/z/16/src
+savedir: file:///dos/z/16/src/lib
 spell_check_default: 1
 spell_insert_entities: 0
 last_filefilter: 
@@ -136,13 +139,6 @@ snr_escape_chars: 0
 htmlbar_view: 0
 spell_lang: en
 ssearch_dotmatchall: 0
-searchlist: <alloc
-searchlist: pcxt
-searchlist: pallettec
-searchlist: palettec
-searchlist: free
-searchlist: gfree
-searchlist: gefree
 searchlist: getfree
 searchlist: offset
 searchlist: _dos)_
@@ -151,6 +147,13 @@ searchlist: '_dos_geninterrupt
 searchlist: _dos_geninterrupt
 searchlist: geninterrupt
 searchlist: puts
+searchlist: ctrl_Keyboard
+searchlist: keyser
+searchlist: text
+searchlist: joydeg
+searchlist: joydefs
+searchlist: MousePresent
+searchlist: JoyDefs
 autocomplete: 1
 outputb_show_all_output: 0
 bookmarks_show_mode: 0
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..bd0d00e804de05f3ae0eb81066204e85d5438db1 100644 (file)
Binary files a/inputest.exe and b/inputest.exe differ
diff --git a/link.eer b/link.eer
deleted file mode 100644 (file)
index 3f0e72f..0000000
--- a/link.eer
+++ /dev/null
@@ -1,34 +0,0 @@
-Open Watcom Make Version 1.9\r
-Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.\r
-Source code is available under the Sybase Open Watcom Public License.\r
-See http://www.openwatcom.org/ for details.\r
-       wcl -0 -d2 -lr -ot -ox -ob -oh -or -zkl -wo -x inputest.obj 16_in.obj\r
-Open Watcom C/C++16 Compile and Link Utility Version 1.9\r
-Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.\r
-Source code is available under the Sybase Open Watcom Public License.\r
-See http://www.openwatcom.org/ for details.\r
-       wlink @__wcl__.lnk\r
-Open Watcom Linker Version 1.9\r
-Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.\r
-Source code is available under the Sybase Open Watcom Public License.\r
-See http://www.openwatcom.org/ for details.\r
-loading object files\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _JoyDefs ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _Keyboard ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _Controls ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _MouseDownCount ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _JoysPresent ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _ControlTypeUsed ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _JoyPadPresent ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _LastASCII ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _LastScan ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _clockdw ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _JoystickCalibrated ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _KbdDefs ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _Paused ignored\r
-Warning! W1027: file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): redefinition of _MousePresent ignored\r
-searching libraries\r
-Error! E2028: US_CheckParm_ is an undefined reference\r
-creating a DOS executable\r
-file 16_IN.OBJ(C:\Z\16\src\lib\16_IN.C): undefined symbol US_CheckParm_\r
-Error: Linker returned a bad status\r
index 7582ae3b9b1ce9153c5b127bab8fd5a3b56d6766..aa6373e23a78b5df979462ab3459ec10e73f6422 100644 (file)
--- a/makefile
+++ b/makefile
@@ -38,8 +38,8 @@ test2.exe: test2.$(OBJ) modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) lib_head.$(OB
 fonttest.exe: 16text.$(OBJ) fonttest.$(OBJ)\r
        wcl $(FLAGS) fonttest.$(OBJ) 16text.$(OBJ)
 
-inputest.exe: inputest.$(OBJ) 16_in.$(OBJ)\r
-       wcl $(FLAGS) inputest.$(OBJ) 16_in.$(OBJ)\r
+inputest.exe: inputest.$(OBJ) 16_in.$(OBJ) lib_head.$(OBJ)\r
+       wcl $(FLAGS) inputest.$(OBJ) 16_in.$(OBJ) lib_head.$(OBJ)\r
 \r
 16text.$(OBJ): $(SRCLIB)16text.c\r
        wcl -c $(SRCLIB)16text.c\r
index 7592789650167b7a62dac5e42f7182c9c30d35e4..22ce45d722d3608748096651c5e14bf02b98ce93 100644 (file)
Binary files a/maptest.exe and b/maptest.exe differ
index c8da1701a45208a1c79287342701ef1b0002b567..c75cd3b7e45419143dd5780c0866004c0b8f9db6 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index 5c8ec4c5aa1ecbc6f5332b4a83cfc06528e2784e..0be455b72f16d7dbd74348900652387beeffcbce 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ
index 16a6ed84de84df1eb12732541696ed6e65a3d3fb..1e099ee4c591ee310ea6002966829bfb1b8a8d8a 100644 (file)
@@ -27,7 +27,7 @@
 #define        __16_IN__\r
 
 #include "src/lib/lib_head.h"\r
-#include "src/lib/16_us.h"
+//#include "src/lib/16_us.h"
 \r
 #ifdef __DEBUG__\r
 #define        __DEBUG_InputMgr__\r
@@ -135,10 +135,11 @@ typedef   byte            ScanCode;
 #define        MDelta          11\r
 \r
 #define        MouseInt        0x33\r
-\r
+#ifdef DEMO0\r
 typedef        enum            {\r
                                                demo_Off,demo_Record,demo_Playback,demo_PlayDone\r
-                                       } Demo;\r
+                                       } Demo;
+#endif\r
 typedef        enum            {\r
                                                ctrl_None,                              // MDM (GAMERS EDGE) - added\r
                                                ctrl_Keyboard,\r
@@ -180,7 +181,6 @@ typedef     struct          {
                                                                        joyMultXL,joyMultYL,\r
                                                                        joyMultXH,joyMultYH;\r
                                        } JoystickDef;\r
-
 /*\r
 =============================================================================\r
 \r
@@ -192,33 +192,33 @@ typedef   struct          {
 //\r
 // configuration variables\r
 //\r
-boolean                        MousePresent;\r
-boolean                        JoysPresent[MaxJoys];\r
-boolean                        JoyPadPresent;\r
+static boolean                 MousePresent;\r
+static boolean                 JoysPresent[MaxJoys];\r
+static boolean                 JoyPadPresent;\r
 \r
 \r
 //     Global variables
-               boolean JoystickCalibrated=false;               // MDM (GAMERS EDGE) - added
-               ControlType ControlTypeUsed;                            // MDM (GAMERS EDGE) - added
+               static boolean JoystickCalibrated=false;                // MDM (GAMERS EDGE) - added
+               static ControlType ControlTypeUsed;                             // MDM (GAMERS EDGE) - added
 \r
-               boolean         Keyboard[NumCodes];\r
-               boolean         Paused;\r
-               char            LastASCII;\r
-               ScanCode        LastScan;\r
+               static boolean          Keyboard[NumCodes];\r
+               static boolean          Paused;\r
+               static char             LastASCII;\r
+               static ScanCode LastScan;\r
 \r
-               KeyboardDef     KbdDefs[] = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51};\r
-               JoystickDef     JoyDefs[MaxJoys];\r
-               ControlType     Controls[MaxPlayers];\r
+               static KeyboardDef      KbdDefs[] = {0x1d,0x38,0x47,0x48,0x49,0x4b,0x4d,0x4f,0x50,0x51};\r
+               static JoystickDef      JoyDefs[MaxJoys];\r
+               static ControlType      Controls[MaxPlayers];\r
 \r
-               dword   MouseDownCount;
+               static dword    MouseDownCount;
 \r
 #ifdef DEMO0\r
-               Demo            DemoMode = demo_Off;\r
-               byte /*_seg*/   *DemoBuffer;\r
-               word            DemoOffset,DemoSize;
+               static Demo             DemoMode = demo_Off;\r
+               static byte /*_seg*/    *DemoBuffer;\r
+               static word             DemoOffset,DemoSize;
 #endif
 
-
+extern dword far* clockdw;
 
 /*\r
 =============================================================================\r
@@ -313,6 +313,5 @@ extern      char            IN_WaitForASCII(void);
 extern ScanCode        IN_WaitForKey(void);\r
 extern word            IN_GetJoyButtonsDB(word joy);
 
-static void interrupt INL_KeyService(void);\r
-\r
+//static void interrupt INL_KeyService(void);\r
 #endif\r
index 0f080bcaae4c227258b3c080513cbb9db08545ed..4ca25c9cbc48fe153f5311d45462810c542fb440 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #include "src/lib/lib_head.h"
-\r
+
 /* local function */\r
 void wait(clock_t wait);
 void* AllocateLargestFreeBlock(size_t* Size);
@@ -128,3 +128,38 @@ filesize(FILE *fp)
        fseek(fp, save_pos, SEEK_SET);\r
        return(size_of_file);\r
 }
+
+///////////////////////////////////////////////////////////////////////////\r
+//\r
+//      US_CheckParm() - checks to see if a string matches one of a set of\r
+//              strings. The check is case insensitive. The routine returns the\r
+//              index of the string that matched, or -1 if no matches were found\r
+//\r
+///////////////////////////////////////////////////////////////////////////\r
+int\r
+US_CheckParm(char *parm,char **strings)\r
+{\r
+       char    cp,cs,\r
+                       *p,*s;\r
+       int             i;\r
+\r
+       while (!isalpha(*parm)) // Skip non-alphas\r
+               parm++;\r
+\r
+       for (i = 0;*strings && **strings;i++)\r
+       {\r
+               for (s = *strings++,p = parm,cs = cp = 0;cs == cp;)\r
+               {\r
+                       cs = *s++;\r
+                       if (!cs)\r
+                               return(i);\r
+                       cp = *p++;\r
+\r
+                       if (isupper(cs))\r
+                               cs = tolower(cs);\r
+                       if (isupper(cp))\r
+                               cp = tolower(cp);\r
+               }\r
+       }\r
+       return(-1);\r
+}
index 2ff4819f29925ddffc49b949c54b942ce005dd67..cf50054db81d27a97944abb6d3e47069ae66b74c 100644 (file)
 
 #ifndef _LIBHEAD_H_
 #define _LIBHEAD_H_
+#include <i86.h>
 #include <dos.h>
 #include <stdio.h>
 #include <conio.h> // just for wait
 #include <time.h> // just for wait
 #include <stdlib.h>
+#include <ctype.h>
 #include "src/lib/types.h"
 
 /* Control codes for all keys on the keyboard */
 #define KEY_MENU               (0x75)
 */
 
-#define        nil     ((void *)0)
+static dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */
 
-dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */
+#define        nil     ((void *)0)
 
 #define peekb(segm,ofs) (*(byte far*)MK_FP((segm),(ofs)))\r
 #define peekw(segm,ofs) (*(word far*)MK_FP((segm),(ofs)))\r
@@ -137,5 +139,6 @@ void wait(clock_t wait);
 void* AllocateLargestFreeBlock(size_t* Size);
 size_t GetFreeSize(void);
 long int filesize(FILE *fp);
+int US_CheckParm(char *parm,char **strings);
 
 #endif/*_LIBHEAD_H_*/
index 122bcab19501373c21079bc5461b43d87bf6a02a..c49bbaa8d6caab2bc3a6e668e8924ee1f034fddc 100644 (file)
Binary files a/test.exe and b/test.exe differ
index cea7c7d33afc1cef186fc34713398e040625aac9..d44b3468dbadf80d7f46bec24daf7d8c0e010284 100644 (file)
Binary files a/test2.exe and b/test2.exe differ