Changeset 102
- Timestamp:
- Aug 12, 2009, 3:13:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mkspecs/os2-g++/emxexpw.cmd
r62 r102 92 92 93 93 /* check options */ 94 if (Opt.!DefFile == '') then call Error E_NoDefFile95 if (Opt.!Objects.0 == 0) then call Error E_NoObjectFiles94 if (Opt.!DefFile == '') then call Error 95 if (Opt.!Objects.0 == 0) then call Error 96 96 97 97 /* apply default options */ … … 102 102 /* check emxexp.exe existence */ 103 103 G.emxexp_exe = SysSearchPath('PATH', 'EMXEXP.EXE') 104 if (G.emxexp_exe == '') then call Error E_CantFindEMXEXP104 if (G.emxexp_exe == '') then call Error 105 105 106 106 Opt.!ObjectsList = '' … … 133 133 rc = SysFileDelete(Opt.!DefFile) 134 134 if (rc \== 0 & rc \== 2) then 135 call Error E_CantDeleteFile, Opt.!DefFile, rc135 call Error , Opt.!DefFile, rc 136 136 137 137 /* write object files to a responce file for EMXEXP */ … … 186 186 187 187 if (rc \== 0) then 188 call Error E_EMXEXPFailed, rc188 call Error , rc 189 189 end 190 190 … … 212 212 else 213 213 G.emxexp_exe Opt.!ObjectsList '>'G.!TempDefFile 214 if (rc \== 0) then call Error E_EMXEXPFailed, rc214 if (rc \== 0) then call Error , rc 215 215 216 216 if (G.!ObjectListFile \= '') then do … … 224 224 225 225 if (G.!Exports.0 == 0) then 226 call Error E_NoExports226 call Error 227 227 228 228 /* update the map file */ … … 230 230 rc = SysFileDelete(Opt.!DefMap) 231 231 if (rc \== 0 & rc \== 2) then 232 call Error E_CantDeleteFile, Opt.!DefMap, rc232 call Error , Opt.!DefMap, rc 233 233 234 234 stats = AppendExportsToFile(Opt.!DefMap) … … 307 307 parse value stream(Opt.!DefTemplate, 'C', 'OPEN READ') with status':'code 308 308 if (status \== 'READY') then 309 call Error E_CantOpenFile, Opt.!DefTemplate, code309 call Error , Opt.!DefTemplate, code 310 310 do while lines(Opt.!DefTemplate) 311 311 str = linein(Opt.!DefTemplate) … … 424 424 parse value(G.!line.w) with '@'ordinal 425 425 if (\datatype(ordinal, 'W') | ordinal <= 0) then 426 call Error E_InvalidOrdinal, symbol, ordinal, file, ln426 call Error , symbol, ordinal, file, ln 427 427 w = w + 1 428 428 if (G.!line.0 < w | translate(G.!line.w) \== 'NONAME') then 429 call Error E_NoNoname, symbol, file, ln429 call Error , symbol, file, ln 430 430 w = w + 1 431 431 end … … 457 457 when (magicseg == 'TEXT32') then nop 458 458 otherwise 459 call Error E_InvalidMagicSeg, symbol, magicseg, file, ln459 call Error , symbol, magicseg, file, ln 460 460 end 461 461 … … 475 475 signal on novalue 476 476 if (datatype(o, 'W')) then 477 call Error E_DuplicateSymbol, symbol, file, ln477 call Error , symbol, file, ln 478 478 G.!Exports.symbol = n /* back reference! */ 479 479 if (G.!Exports.!maxOrd < ordinal) then … … 596 596 o = substr(G.!opts.i, 2) 597 597 if (stream(o, 'C', 'QUERY EXISTS') == '') then 598 call Error E_FileNotFound, o598 call Error , o 599 599 resp_options = resp_options || charin(o,, chars(o)) 600 600 end … … 640 640 end 641 641 otherwise 642 call Error E_InvalidOption, o642 call Error , o 643 643 end 644 644 end … … 858 858 eol = '0D0A'x 859 859 860 e.E_CantFindEMXEXP = 'Cannot find EMXEXP.EXE in the PATH.'861 e.E_CantOpenFile = 'Cannot open file ''%1'' (RC = %2).'862 e.E_CantDeleteFile = 'Cannot delete file ''%1'' (RC = %2).'863 e.E_InvalidOption = 'Invalid option: ''%1''.'864 e.E_FileNotFound = 'File not found: ''%1''.'865 e.E_NoDefFile = 'No output DEF file.'866 e.E_NoObjectFiles = 'No input object files.'867 e.E_EMXEXPFailed = 'EMXEXP.EXE failed with RC = %1.'868 e.E_NoExports =,860 e.E_CantFindEMXEXP = 'Cannot find EMXEXP.EXE in the PATH.' 861 e.E_CantOpenFile = 'Cannot open file ''%1'' (RC = %2).' 862 e.E_CantDeleteFile = 'Cannot delete file ''%1'' (RC = %2).' 863 e.E_InvalidOption = 'Invalid option: ''%1''.' 864 e.E_FileNotFound = 'File not found: ''%1''.' 865 e.E_NoDefFile = 'No output DEF file.' 866 e.E_NoObjectFiles = 'No input object files.' 867 e.E_EMXEXPFailed = 'EMXEXP.EXE failed with RC = %1.' 868 e.E_NoExports =, 869 869 'The specified list of objects doesn''t export any symbols.' 870 e.E_InvalidMagicSeg =,870 e.E_InvalidMagicSeg =, 871 871 'Invalid or missing magic segment ''%2'' for symbol "%1" in ''%3'' (line %4).' 872 e.E_InvalidOrdinal =,872 e.E_InvalidOrdinal =, 873 873 'Invalid or missing ordinal ''%2'' for symbol "%1" in ''%3'' (line %4).' 874 e.E_NoNoname =,874 e.E_NoNoname =, 875 875 'No NONAME keyword for symbol "%1" in ''%2'' (line %3).' 876 e.E_DuplicateSymbol =,876 e.E_DuplicateSymbol =, 877 877 'Duplicate symbol symbol "%1" detected in ''%2'' (line %3).' 878 878
Note:
See TracChangeset
for help on using the changeset viewer.