Changeset 102


Ignore:
Timestamp:
Aug 12, 2009, 3:13:54 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

emxexpw.cmd: Surround E_BlaBla literals with quotes to avoid EXPRESSION HAS NO VALUE errors in Error calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/emxexpw.cmd

    r62 r102  
    9292
    9393/* check options */
    94 if (Opt.!DefFile == '') then call Error E_NoDefFile
    95 if (Opt.!Objects.0 == 0) then call Error E_NoObjectFiles
     94if (Opt.!DefFile == '') then call Error
     95if (Opt.!Objects.0 == 0) then call Error
    9696
    9797/* apply default options */
     
    102102/* check emxexp.exe existence */
    103103G.emxexp_exe = SysSearchPath('PATH', 'EMXEXP.EXE')
    104 if (G.emxexp_exe == '') then call Error E_CantFindEMXEXP
     104if (G.emxexp_exe == '') then call Error
    105105
    106106Opt.!ObjectsList = ''
     
    133133    rc = SysFileDelete(Opt.!DefFile)
    134134    if (rc \== 0 & rc \== 2) then
    135         call Error E_CantDeleteFile, Opt.!DefFile, rc
     135        call Error , Opt.!DefFile, rc
    136136
    137137    /* write object files to a responce file for EMXEXP */
     
    186186
    187187            if (rc \== 0) then
    188                 call Error E_EMXEXPFailed, rc
     188                call Error , rc
    189189        end
    190190
     
    212212        else
    213213            G.emxexp_exe Opt.!ObjectsList '>'G.!TempDefFile
    214         if (rc \== 0) then call Error E_EMXEXPFailed, rc
     214        if (rc \== 0) then call Error , rc
    215215
    216216        if (G.!ObjectListFile \= '') then do
     
    224224
    225225        if (G.!Exports.0 == 0) then
    226             call Error E_NoExports
     226            call Error
    227227
    228228        /* update the map file */
     
    230230        rc = SysFileDelete(Opt.!DefMap)
    231231        if (rc \== 0 & rc \== 2) then
    232             call Error E_CantDeleteFile, Opt.!DefMap, rc
     232            call Error , Opt.!DefMap, rc
    233233
    234234        stats = AppendExportsToFile(Opt.!DefMap)
     
    307307        parse value stream(Opt.!DefTemplate, 'C', 'OPEN READ') with status':'code
    308308        if (status \== 'READY') then
    309             call Error E_CantOpenFile, Opt.!DefTemplate, code
     309            call Error , Opt.!DefTemplate, code
    310310        do while lines(Opt.!DefTemplate)
    311311            str = linein(Opt.!DefTemplate)
     
    424424                parse value(G.!line.w) with '@'ordinal
    425425            if (\datatype(ordinal, 'W') | ordinal <= 0) then
    426                 call Error E_InvalidOrdinal, symbol, ordinal, file, ln
     426                call Error , symbol, ordinal, file, ln
    427427            w = w + 1
    428428            if (G.!line.0 < w | translate(G.!line.w) \== 'NONAME') then
    429                 call Error E_NoNoname, symbol, file, ln
     429                call Error , symbol, file, ln
    430430            w = w + 1
    431431        end
     
    457457            when (magicseg == 'TEXT32') then nop
    458458            otherwise
    459                 call Error E_InvalidMagicSeg, symbol, magicseg, file, ln
     459                call Error , symbol, magicseg, file, ln
    460460        end
    461461
     
    475475            signal on novalue
    476476            if (datatype(o, 'W')) then
    477                 call Error E_DuplicateSymbol, symbol, file, ln
     477                call Error , symbol, file, ln
    478478            G.!Exports.symbol = n /* back reference! */
    479479            if (G.!Exports.!maxOrd < ordinal) then
     
    596596            o = substr(G.!opts.i, 2)
    597597            if (stream(o, 'C', 'QUERY EXISTS') == '') then
    598                 call Error E_FileNotFound, o
     598                call Error , o
    599599            resp_options = resp_options || charin(o,, chars(o))
    600600        end
     
    640640                end
    641641                otherwise
    642                     call Error E_InvalidOption, o
     642                    call Error , o
    643643            end
    644644        end
     
    858858    eol = '0D0A'x
    859859
    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   =,
    869869        'The specified list of objects doesn''t export any symbols.'
    870     e.E_InvalidMagicSeg =,
     870    e.E_InvalidMagicSeg =,
    871871        'Invalid or missing magic segment ''%2'' for symbol "%1" in ''%3'' (line %4).'
    872     e.E_InvalidOrdinal  =,
     872    e.E_InvalidOrdinal  =,
    873873        'Invalid or missing ordinal ''%2'' for symbol "%1" in ''%3'' (line %4).'
    874     e.E_NoNoname        =,
     874    e.E_NoNoname        =,
    875875        'No NONAME keyword for symbol "%1" in ''%2'' (line %3).'
    876     e.E_DuplicateSymbol =,
     876    e.E_DuplicateSymbol =,
    877877        'Duplicate symbol symbol "%1" detected in ''%2'' (line %3).'
    878878
Note: See TracChangeset for help on using the changeset viewer.