summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorredman <redman>1999-07-22 01:08:03 (GMT)
committerredman <redman>1999-07-22 01:08:03 (GMT)
commit54b6980992593dd026c12db3f5aaef9dce67e0e3 (patch)
tree5dbfa8778122c25040f24668b6e635cf0ab23b40 /compat
parent0921ebbcedf454aec8e95005807f6f564f812299 (diff)
downloadtcl-54b6980992593dd026c12db3f5aaef9dce67e0e3.zip
tcl-54b6980992593dd026c12db3f5aaef9dce67e0e3.tar.gz
tcl-54b6980992593dd026c12db3f5aaef9dce67e0e3.tar.bz2
* doc/Utf.3:
* generic/tcl.decls: * generic/tclInt.decls: * generic/tclDecls.h: * generic/tclIntDecls.h: * generic/tclUtf.c: * compat/strftime.c: * unix/tclUnixTime.c: Changed function declarations in non-platform-specific APIs to use "unsigned long" instead of "size_t", which may not be defined on certain compilers (rather than include sys/types.h, which may not exist).
Diffstat (limited to 'compat')
-rw-r--r--compat/strftime.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/compat/strftime.c b/compat/strftime.c
index d588433..8f93a1a 100644
--- a/compat/strftime.c
+++ b/compat/strftime.c
@@ -8,7 +8,7 @@
* source. See the copyright notice below for details on redistribution
* restrictions. The "license.terms" file does not apply to this file.
*
- * RCS: @(#) $Id: strftime.c,v 1.3 1999/04/16 00:46:30 stanton Exp $
+ * RCS: @(#) $Id: strftime.c,v 1.4 1999/07/22 01:08:04 redman Exp $
*/
/*
@@ -45,7 +45,7 @@
*/
#if defined(LIBC_SCCS)
-static char *rcsid = "$Id: strftime.c,v 1.3 1999/04/16 00:46:30 stanton Exp $";
+static char *rcsid = "$Id: strftime.c,v 1.4 1999/07/22 01:08:04 redman Exp $";
#endif /* LIBC_SCCS */
#include <time.h>
@@ -104,7 +104,7 @@ static int _secs _ANSI_ARGS_((const struct tm *t));
static size_t _fmt _ANSI_ARGS_((const char *format,
const struct tm *t));
-size_t
+unsigned long
TclpStrftime(s, maxsize, format, t)
char *s;
size_t maxsize;
@@ -115,12 +115,12 @@ TclpStrftime(s, maxsize, format, t)
pt = s;
if ((gsize = maxsize) < 1)
- return(0);
+ return (unsigned long)(0);
if (_fmt(format, t)) {
*pt = '\0';
- return(maxsize - gsize);
+ return (unsigned long) (maxsize - gsize);
}
- return(0);
+ return (unsigned long)(0);
}
#define SUN_WEEK(t) (((t)->tm_yday + 7 - \