Changeset 1341 for trunk/eas.c
- Timestamp:
- Dec 14, 2008, 11:18:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eas.c
r1215 r1341 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2002, 200 7Steven H.Levine9 Copyright (c) 2002, 2008 Steven H.Levine 10 10 11 11 16 Oct 02 SHL Reformat … … 14 14 08 Apr 07 SHL Minor reformat 15 15 10 May 08 SHL Correct compare typo 16 14 Dec 08 SHL Add exception handler support 16 17 17 18 ***********************************************************************/ 18 19 19 #include <stdlib.h>20 20 #include <string.h> 21 21 22 22 #define INCL_DOS 23 23 #define INCL_WIN 24 #define INCL_DOSEXCEPTIONS // XCTP_... 25 #define INCL_DOSERRORS // NO_ERROR 24 26 25 27 #include "dll\fm3dll.h" 26 #include "dll\notebook.h" // Data declaration(s) 27 #include "dll\mainwnd.h" // Data declaration(s) 28 #include "dll\mainwnd.h" // FM3ModHandle 28 29 #include "dll\fm3dlg.h" 29 #include "dll\makelist.h" 30 #include "dll\makelist.h" // AddToList 30 31 #include "dll\eas.h" // DisplayEAsProc 31 32 #include "dll\init.h" // InitFM3DLL 32 33 #include "dll\valid.h" // IsFile 33 #include "dll\wrappers.h" // xfree 34 #include "dll\getnames.h" // insert_filename 34 #include "dll\wrappers.h" // xfree 35 #include "dll\getnames.h" // insert_filename 36 #include "dll\errutil.h" // Error reporting 37 #include "dll\excputil.h" // Exception handlers 35 38 36 39 static PSZ pszSrcFile = __FILE__; … … 42 45 CHAR fullname[CCHMAXPATH]; 43 46 CHAR **list = NULL; 44 UINT x,numfiles = 0,numalloc = 0; 47 UINT x; 48 UINT numfiles = 0; 49 UINT numalloc = 0; 50 APIRET regRet; 51 EXCEPTIONREGISTRATIONRECORD regRec = { NULL, NULL }; 45 52 46 53 DosError(FERR_DISABLEHARDERR); 54 55 regRec.ExceptionHandler = HandleException; 56 regRet = DosSetExceptionHandler(®Rec); 57 if (regRet != NO_ERROR) { 58 DbgMsg(pszSrcFile, __LINE__, 59 "DosSetExceptionHandler failed with error %u", regRet); 60 } 61 47 62 for(x = 1; x < argc; x++) { 48 63 if (!strchr("/;,`\'",*argv[x]) && IsFile(argv[x]) != -1) { … … 54 69 } 55 70 } 71 56 72 hab = WinInitialize(0); 57 73 if (hab) {
Note:
See TracChangeset
for help on using the changeset viewer.