Changeset 1167
- Timestamp:
- Feb 9, 2018, 10:52:57 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mkspecs/os2-g++/wmapsym.cmd
r1106 r1167 41 41 G.StartDir = directory() 42 42 43 parse arg aArgs44 if ( aArgs== '') then do43 parse arg G.WatMapFile aOpts 44 if (G.WatMapFile == '') then do 45 45 say 46 46 say 'Creates a .SYM file from the Watcom .MAP file using IBM MAPSYM' 47 say 'Version 1. 1 (2011-12-18)'48 say 'Copyright (C) 201 1Dmitriy Kuminov'47 say 'Version 1.2 (2018-02-09)' 48 say 'Copyright (C) 2018 Dmitriy Kuminov' 49 49 say 50 50 say 'Usage: ' 51 51 say 52 say ' 'G.ScriptFile' <watcom_map_file>' 52 say ' 'G.ScriptFile' <watcom_map_file> [/m]' 53 say 54 say ' /m - Don''t run MAPSYM and only produce an IBM map file (.NNNNN-map)' 53 55 54 56 call Done 0 55 57 end 56 58 57 G.WatMapFile = aArgs 59 G.MapOnly = 0 60 if (translate(aOpts) == '/m') then G.MapOnly = 1 58 61 59 62 call Main … … 199 202 call lineout G.IbmMapFile, ' Start Length Name Class' 200 203 do i = 1 to segments.0 201 call lineout G.IbmMapFile, ' 'segments.i.!addr' 0'segments.i.!size'H 'segments.i.!name 204 205 call lineout G.IbmMapFile, ' 'segments.i.!addr' 0'segments.i.!size'H 'AlignLeft(segments.i.!name, 22) segments.i.!class '32-bit' 202 206 end 203 207 call lineout G.IbmMapFile, '' … … 235 239 call lineout G.IbmMapFile 236 240 241 if (G.MapOnly) then do 242 say 'Created IBM map file:' G.IbmMapFile 243 return 244 end 245 237 246 cmdline = 'mapsym.exe' G.IbmMapFile 238 247 cmdline … … 251 260 utility functions 252 261 ------------------------------------------------------------------------------*/ 262 263 /** 264 * Pad the given string with the pad character on the right to the requested 265 * width. If the string length is equal or greater than the requested width, it 266 * is returned as is. 267 * 268 * @param aStr String to align. 269 * @param aWidth Minimum width of the resulting stiring. 270 * @param aPad h Pad character (blank by default). 271 * @return Resulting string. 272 */ 273 AlignLeft: procedure expose (Globals) 274 parse arg aStr, aWidth, aPad 275 len = length(aStr) 276 if (len >= aWidth) then return aStr 277 if (aPad == "") then aPad = " " 278 return aStr || copies(aPad, aWidth - len) 253 279 254 280 /**
Note:
See TracChangeset
for help on using the changeset viewer.