Changeset 539
- Timestamp:
- Aug 6, 2003, 1:28:35 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/emxomf/weakld.c
-
Property cvs2svn:cvs-rev
changed from
1.14
to1.15
r538 r539 3003 3003 char szTmp[1024]; 3004 3004 int cch; 3005 unsigned iMDLine;3006 3005 PWLDSYM pSymInt = NULL; 3007 3006 PWLDSYM pSymExp; … … 3023 3022 3024 3023 /* 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) 3027 3025 { 3028 3026 if (!fgets(szTmp, 512 /* this is the size _md_* uses */, pParam->phOrgFile)) … … 3031 3029 strcpy(szTmp, ";read error"); 3032 3030 } 3033 3034 if (++pParam->iLine >= iMDLine) /* skip last line. */ 3035 break; 3031 pParam->iLine++; 3036 3032 if (fputs(szTmp, pParam->phNewFile) < 0) 3037 3033 return wldErr(pParam->pWld, "Write error."); 3038 3034 } 3039 3035 3040 /* if the internal symbol is weak, replace it with the right $w$. */3036 /* Set the correct $w$ internal symbol. */ 3041 3037 if (pSymInt && (pSymInt->fFlags & WLDSF_WEAK)) 3042 3038 cch = sprintf(szTmp, " \"%s\" = \"%s\"", pStmt->export.entryname, pSymInt->pszWeakName); … … 3057 3053 if (fputs(szTmp, pParam->phNewFile) < 0) 3058 3054 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); 3059 3059 break; 3060 3060 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.