Changeset 69286 in vbox for trunk/src/bldprogs/scmrw.cpp
- Timestamp:
- Oct 25, 2017 11:31:24 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/scmrw.cpp
r69280 r69286 1034 1034 { 1035 1035 const char *pszNextLine = (const char *)memchr(pszBody, '\n', cchBody); 1036 while (pszNextLine && pszNextLine[1] != '\n') 1037 pszNextLine = (const char *)memchr(pszNextLine + 1, '\n', cchBody); 1036 1038 if (pszNextLine) 1037 1039 { … … 1444 1446 if (Info.pszContributedBy) 1445 1447 { 1446 ScmStreamWrite(pOut, g_aCopyrightCommentPrefix[enmCommentStyle].psz, 1447 g_aCopyrightCommentPrefix[enmCommentStyle].cch); 1448 ScmStreamWrite(pOut, Info.pszContributedBy, strlen(Info.pszContributedBy)); 1449 ScmStreamPutEol(pOut, enmEol); 1448 const char *psz = Info.pszContributedBy; 1449 for (;;) 1450 { 1451 const char *pszEol = strchr(psz, '\n'); 1452 size_t cchLine = pszEol ? pszEol - psz : strlen(psz); 1453 ScmStreamWrite(pOut, g_aCopyrightCommentPrefix[enmCommentStyle].psz, 1454 g_aCopyrightCommentPrefix[enmCommentStyle].cch); 1455 ScmStreamWrite(pOut, psz, cchLine); 1456 ScmStreamPutEol(pOut, enmEol); 1457 if (!pszEol) 1458 break; 1459 psz = pszEol + 1; 1460 } 1450 1461 1451 1462 ScmStreamPutLine(pOut, g_aCopyrightCommentEmpty[enmCommentStyle].psz,
Note:
See TracChangeset
for help on using the changeset viewer.