Changeset 539


Ignore:
Timestamp:
Aug 6, 2003, 1:28:35 PM (22 years ago)
Author:
bird
Message:

Works.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r538 r539  
    30033003            char        szTmp[1024];
    30043004            int         cch;
    3005             unsigned    iMDLine;
    30063005            PWLDSYM     pSymInt = NULL;
    30073006            PWLDSYM     pSymExp;
     
    30233022
    30243023            /* Copy line from org to new so we're up to date. */
    3025             iMDLine = _md_get_linenumber(pMD);
    3026             while (pParam->iLine < iMDLine)
     3024            while (pParam->iLine + 1 < pStmt->line_number)
    30273025            {
    30283026                if (!fgets(szTmp, 512 /* this is the size _md_* uses */, pParam->phOrgFile))
     
    30313029                    strcpy(szTmp, ";read error");
    30323030                }
    3033 
    3034                 if (++pParam->iLine >= iMDLine) /* skip last line. */
    3035                     break;
     3031                pParam->iLine++;
    30363032                if (fputs(szTmp, pParam->phNewFile) < 0)
    30373033                    return wldErr(pParam->pWld, "Write error.");
    30383034            }
    30393035
    3040             /* if the internal symbol is weak, replace it with the right $w$. */
     3036            /* Set the correct $w$ internal symbol. */
    30413037            if (pSymInt && (pSymInt->fFlags & WLDSF_WEAK))
    30423038                cch = sprintf(szTmp, "  \"%s\" = \"%s\"", pStmt->export.entryname, pSymInt->pszWeakName);
     
    30573053            if (fputs(szTmp, pParam->phNewFile) < 0)
    30583054                return wldErr(pParam->pWld, "Write error.");
     3055           
     3056            /* skip line */
     3057            pParam->iLine++;
     3058            fgets(szTmp, 512 /* this is the size _md_* uses */, pParam->phOrgFile);
    30593059            break;
    30603060        }
Note: See TracChangeset for help on using the changeset viewer.