summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2007-05-04 18:04:18 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2007-05-04 18:04:18 (GMT)
commit081cd9ac803cc233fbc180bcd9a79996cfa3329b (patch)
treec2751279c97ee28f497ce1906e84845c46172099
parent45ba16a3055b23da16e3275473875be2d863443e (diff)
downloadtcl-081cd9ac803cc233fbc180bcd9a79996cfa3329b.zip
tcl-081cd9ac803cc233fbc180bcd9a79996cfa3329b.tar.gz
tcl-081cd9ac803cc233fbc180bcd9a79996cfa3329b.tar.bz2
Comment and open file as text
-rw-r--r--win/nmakehlp.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/win/nmakehlp.c b/win/nmakehlp.c
index 41419ef..5fb7917 100644
--- a/win/nmakehlp.c
+++ b/win/nmakehlp.c
@@ -5,12 +5,13 @@
* This is used to fix limitations within nmake and the environment.
*
* Copyright (c) 2002 by David Gravereaux.
+ * Copyright (c) 2006 by Pat Thoyts
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* ----------------------------------------------------------------------------
- * RCS: @(#) $Id: nmakehlp.c,v 1.16 2007/04/16 13:36:36 dkf Exp $
+ * RCS: @(#) $Id: nmakehlp.c,v 1.17 2007/05/04 18:04:18 patthoyts Exp $
* ----------------------------------------------------------------------------
*/
@@ -506,7 +507,7 @@ GrepForDefine(
/*
* GetVersionFromFile --
* Looks for a match string in a file and then returns the version
- * following the match where a version is anything acceptable to *
+ * following the match where a version is anything acceptable to
* package provide or package ifneeded.
*/
@@ -518,7 +519,7 @@ GetVersionFromFile(
size_t cbBuffer = 100;
static char szBuffer[100];
char *szResult = NULL;
- FILE *fp = fopen(filename, "r");
+ FILE *fp = fopen(filename, "rt");
if (fp != NULL) {
/*
@@ -557,3 +558,13 @@ GetVersionFromFile(
}
return szResult;
}
+
+/*
+ * Local variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * indent-tabs-mode: t
+ * tab-width: 8
+ * End:
+ */