Ignore:
Timestamp:
Mar 14, 2011, 5:35:17 PM (15 years ago)
Author:
dmik
Message:

tools/wrc: Restored generating GAS output by default. MASM output is now generated by specifying the -M option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/wrc/wrc.c

    r6113 r21589  
    8282    "   -L          Leave case of embedded filenames as is\n"
    8383    "   -m          Do not remap numerical resource IDs\n"
     84    "   -M          Use MASM syntax for the generated .s file instead of GAS\n"
    8485    "   -n          Do not generate .s file\n"
    8586    "   -N          Do not preprocess input\n"
     
    242243int remap = 1;
    243244
     245/*
     246 * Set when MASM syntax is requested (-M option)
     247 */
     248int masm_mode = 0;
     249
    244250char *output_name;      /* The name given by the -o option */
    245251char *input_name;       /* The name given on the command-line */
     
    294300    }
    295301
    296     while((optc = getopt(argc, argv, "a:AbB:cC:d:D:eEghH:I:l:LmnNo:p:rstTVw:W")) != EOF)
     302    while((optc = getopt(argc, argv, "a:AbB:cC:d:D:eEghH:I:l:LmMnNo:p:rstTVw:W")) != EOF)
    297303    {
    298304        switch(optc)
     
    370376            remap = 0;
    371377            break;
     378        case 'M':
     379            masm_mode = 1;
     380            break;
    372381        case 'n':
    373382            create_s = 0;
Note: See TracChangeset for help on using the changeset viewer.