Ignore:
Timestamp:
Oct 10, 2006, 4:53:42 AM (19 years ago)
Author:
bird
Message:

A couple of fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/emx/src/emxomf/emxomfld.c

    r2812 r2818  
    12581258/* converts a def file statement to watcom responsfile lingo. */
    12591259
    1260 static def_2_watcom(struct _md *md, const _md_stmt *stmt, _md_token token, void *arg)
     1260static int def_2_watcom(struct _md *md, const _md_stmt *stmt, _md_token token, void *arg)
    12611261{
    12621262  switch (token)
     
    12861286          fprintf (response_file, "='%s'", stmt->export.internalname);
    12871287        if (stmt->export.flags & _MDEP_RESIDENTNAME)
    1288           fprintf (response_file, " RESIDENT", stmt->export.internalname);
     1288          fprintf (response_file, " RESIDENT");
    12891289        /** @todo _MDEP_NONAME */
    12901290        fprintf (response_file, "\n");
     
    13361336
    13371337      case _MD_STACKSIZE:
    1338         fprintf (response_file, "OPTION STACK=%#ld\n", stmt->stacksize.size);
     1338        fprintf (response_file, "OPTION STACK=%#lx\n", stmt->stacksize.size);
    13391339        break;
    13401340
    13411341      case _MD_STUB:
    1342         fprintf (response_file, "OPTION STUB='%s'\n", stmt->stub.name);
     1342        if (!stmt->stub.none)
     1343          fprintf (response_file, "OPTION STUB='%s'\n", stmt->stub.name);
     1344        else
     1345          fprintf (stderr, "emxomfld: warning: \"STUB NONE\" is not supported by wlink. ignoring\n");
    13431346        break;
    13441347
     
    20932096        fprintf (response_file, "OPTION MAP='%s'\n", map_fname);
    20942097      else if (map_flag)
    2095         fprintf (response_file, "OPTION MAP\n", map_fname);
     2098        fprintf (response_file, "OPTION MAP\n");
    20962099
    20972100      /* standard stuff */
     
    21402143      if (def_fname)
    21412144        {
    2142           _md_token token;
    21432145          struct _md *pMd = _md_open (def_fname);
    21442146          if (!pMd)
Note: See TracChangeset for help on using the changeset viewer.