Changeset 9110 for trunk/tools
- Timestamp:
- Aug 24, 2002, 6:33:52 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/MapSym.cmd
r8369 r9110 1 /* $Id: MapSym.cmd,v 1. 6 2002-05-05 19:03:32 bird Exp $1 /* $Id: MapSym.cmd,v 1.7 2002-08-24 04:33:52 bird Exp $ 2 2 * 3 3 * Helper script for calling MAPSYM.EXE. … … 15 15 sIBMOld = ';vac3xx;vac365;vac308;link386;emx;emxpgcc;mscv6;mscv6-16;ibmold;' 16 16 sVAC40 = ';vac40;' 17 sLinkers = strip(sVAC40, 'T', ';')||strip(sIBMOld, 'T', ';')||strip(sWatcom, 'T', ';')||';' 17 sLinkers= strip(sVAC40, 'T', ';')||strip(sIBMOld, 'T', ';')||strip(sWatcom, 'T', ';')||';' 18 /* look for 4os2 */ 19 f4OS2 = 0; 20 Address CMD 'set 4os2test_env=%@eval[2 + 2]'; 21 if (value('4os2test_env',, 'OS2ENVIRONMENT') = '4') then 22 f4OS2 = 1; 23 sCopy = '@copy' 24 if (f4OS2) then 25 sCopy = '@copy /Q' 18 26 19 27 /* … … 107 115 when (sLinker = 'IBMOLD') then 108 116 do 109 '@copy'sMapFile sTmpMapFile117 sCopy sMapFile sTmpMapFile 110 118 if (rc <> 0) then 111 119 do … … 161 169 * Copy the symfile to the target path. 162 170 */ 163 '@copy'left(sTmpMapFile, length(sTmpMapFile) - 4)||'.sym' sSymFile;171 sCopy left(sTmpMapFile, length(sTmpMapFile) - 4)||'.sym' sSymFile; 164 172 if (rc <> 0) then 165 173 do … … 287 295 if (length(sSegName) < 22) then sSegName = left(sSegName, 22, ' '); 288 296 call lineout sOutFile, ' '||strip(iSeg)':'iSegOffset right(DecToHex(cbSegment), 9, '0'), 289 ||'H 297 ||'H '||sSegName||' '||strip(sSegClass); 290 298 sSegment = ''; 291 299 cbSegment = 0; … … 301 309 if (sState = sNewState) then 302 310 do 303 sLine = translate(sLine, '', '"' );311 sLine = translate(sLine, '', '"'||d2c(9)); 304 312 if ((strip(sLine) <> '') & (pos('|', sLine) <= 0) & (pos('@', sLine) <= 0)) then 305 call lineout sOutFile, sLine;313 call lineout sOutFile, ' '||word(sLine, 1)||' '||word(sLine, 2); 306 314 end 307 315 else if (sNewState = 'PublicValue') then
Note:
See TracChangeset
for help on using the changeset viewer.