summaryrefslogtreecommitdiffstats
path: root/win/nmakehlp.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-23 13:37:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-23 13:37:04 (GMT)
commit40af4f0e8c40ef3a1bc01189d45ddd921cc14550 (patch)
treea9da7654820286bfa57e894a9a1fb8e4de69b33c /win/nmakehlp.c
parent27afd154a9fc5f72d7a829b285c340766ef8c6ce (diff)
parent2057f61af78500da2956bf3aa83cc10878e93d09 (diff)
downloadtk-40af4f0e8c40ef3a1bc01189d45ddd921cc14550.zip
tk-40af4f0e8c40ef3a1bc01189d45ddd921cc14550.tar.gz
tk-40af4f0e8c40ef3a1bc01189d45ddd921cc14550.tar.bz2
sync nmakehlp.c with Tcl version
<p>purge spaces at end of lines <p>clean-up unix/Makefile.in after carbon removal
Diffstat (limited to 'win/nmakehlp.c')
-rw-r--r--win/nmakehlp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/win/nmakehlp.c b/win/nmakehlp.c
index d0edcf0..b1a1517 100644
--- a/win/nmakehlp.c
+++ b/win/nmakehlp.c
@@ -498,9 +498,10 @@ GetVersionFromFile(
p = strstr(szBuffer, match);
if (p != NULL) {
/*
- * Skip to first digit.
+ * Skip to first digit after the match.
*/
+ p += strlen(match);
while (*p && !isdigit(*p)) {
++p;
}
@@ -630,11 +631,11 @@ SubstituteFile(
}
}
#endif
-
+
/*
* Run the substitutions over each line of the input
*/
-
+
while (fgets(szBuffer, cbBuffer, fp) != NULL) {
list_item_t *p = NULL;
for (p = substPtr; p != NULL; p = p->nextPtr) {
@@ -654,7 +655,7 @@ SubstituteFile(
}
printf(szBuffer);
}
-
+
list_free(&substPtr);
}
fclose(fp);