Changeset 8003 for trunk/tools/common/kDef2Wat.cpp
- Timestamp:
- Feb 24, 2002, 3:47:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/common/kDef2Wat.cpp
r5531 r8003 1 /* $Id: kDef2Wat.cpp,v 1. 2 2001-04-17 00:26:10bird Exp $1 /* $Id: kDef2Wat.cpp,v 1.3 2002-02-24 02:47:23 bird Exp $ 2 2 * 3 3 * Converter for IBM/MS linker definition files (.DEF) to Watcom linker directives and options. … … 14 14 * Header Files * 15 15 *******************************************************************************/ 16 #include <os2.h>17 16 #include "kTypes.h" 17 #include "kError.h" 18 18 #include "kFile.h" 19 #include "kFileInterfaces.h" 19 20 #include "kFileFormatBase.h" 20 #include "kInterfaces.h"21 21 #include "kFileDef.h" 22 22 … … 58 58 try 59 59 { 60 kFile InFile(pszInput); 61 kFileDef def(&InFile); 60 kFileDef def(new kFile(pszInput)); 62 61 try 63 62 { … … 75 74 kFile::StdOut.printf("Successfully converted %s to %s\n", pszInput, pszOutput); 76 75 } 77 catch ( int errorcode)76 catch (kError err) 78 77 { 79 kFile::StdErr.printf("Append file %s to %s, errorcode=%d\n", pszAppend, pszInput, err orcode);78 kFile::StdErr.printf("Append file %s to %s, errorcode=%d\n", pszAppend, pszInput, err.getErrno()); 80 79 return -3; 81 80 } 82 81 } 83 82 } 84 catch ( int errorcode)83 catch (kError err) 85 84 { 86 kFile::StdErr.printf("Failed to read .DEF file (%s), errorcode=%d\n", pszInput, err orcode);85 kFile::StdErr.printf("Failed to read .DEF file (%s), errorcode=%d\n", pszInput, err.getErrno()); 87 86 return -3; 88 87 } 89 88 } 90 catch ( int errorcode)89 catch (kError err) 91 90 { 92 kFile::StdErr.printf("Failed to read .DEF file (%s), errorcode=%d\n", pszInput, err orcode);91 kFile::StdErr.printf("Failed to read .DEF file (%s), errorcode=%d\n", pszInput, err.getErrno()); 93 92 return -2; 94 93 }
Note:
See TracChangeset
for help on using the changeset viewer.