summaryrefslogtreecommitdiffstats
path: root/compat/strftime.c
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2003-08-27 19:31:00 (GMT)
committerdavygrvy <davygrvy@pobox.com>2003-08-27 19:31:00 (GMT)
commitb0f40f531d4c704f3e9bd925fc44e798a23ffdec (patch)
treecce8c04cb52d510085e21d6a4880da52c8911449 /compat/strftime.c
parentc8bd825dece36f32278ec0a0373e570e4b978748 (diff)
downloadtcl-b0f40f531d4c704f3e9bd925fc44e798a23ffdec.zip
tcl-b0f40f531d4c704f3e9bd925fc44e798a23ffdec.tar.gz
tcl-b0f40f531d4c704f3e9bd925fc44e798a23ffdec.tar.bz2
Added missing CONST'ification usage.
Diffstat (limited to 'compat/strftime.c')
-rw-r--r--compat/strftime.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/compat/strftime.c b/compat/strftime.c
index 6ac229c..6bce830 100644
--- a/compat/strftime.c
+++ b/compat/strftime.c
@@ -10,7 +10,7 @@
*
* Changes 2002 Copyright (c) 2002 ActiveState Corporation.
*
- * RCS: @(#) $Id: strftime.c,v 1.13 2003/08/27 19:23:59 davygrvy Exp $
+ * RCS: @(#) $Id: strftime.c,v 1.14 2003/08/27 19:31:00 davygrvy Exp $
*/
/*
@@ -47,7 +47,7 @@
*/
#if defined(LIBC_SCCS)
-static char *rcsid = "$Id: strftime.c,v 1.13 2003/08/27 19:23:59 davygrvy Exp $";
+static char *rcsid = "$Id: strftime.c,v 1.14 2003/08/27 19:31:00 davygrvy Exp $";
#endif /* LIBC_SCCS */
#include <time.h>
@@ -109,15 +109,15 @@ static const _TimeLocale _DefaultTimeLocale =
"%I:%M:%S %p"
};
-static const _TimeLocale *_CurrentTimeLocale = &_DefaultTimeLocale;
+static CONST _TimeLocale *_CurrentTimeLocale = &_DefaultTimeLocale;
static int isGMT;
static size_t gsize;
static char *pt;
-static int _add _ANSI_ARGS_((const char* str));
+static int _add _ANSI_ARGS_((CONST char* str));
static int _conv _ANSI_ARGS_((int n, int digits, int pad));
-static int _secs _ANSI_ARGS_((const struct tm *t));
-static size_t _fmt _ANSI_ARGS_((const char *format,
+static int _secs _ANSI_ARGS_((CONST struct tm *t));
+static size_t _fmt _ANSI_ARGS_((CONST char *format,
const struct tm *t));
/*
@@ -143,9 +143,9 @@ size_t
TclpStrftime(s, maxsize, format, t, useGMT)
char *s; /* Buffer to hold the formatted string */
size_t maxsize; /* Size of the passed buffer */
- const char *format; /* Format to use (see the user documentation
+ CONST char *format; /* Format to use (see the user documentation
* for [clock] for details) */
- const struct tm *t; /* Time to format */
+ CONST struct tm *t; /* Time to format */
int useGMT; /* Flag == 1 if time is to be returned
* in UTC */
{
@@ -183,8 +183,8 @@ TclpStrftime(s, maxsize, format, t, useGMT)
static size_t
_fmt(format, t)
- const char *format;
- const struct tm *t;
+ CONST char *format;
+ CONST struct tm *t;
{
#ifdef __WIN32__
#define BUF_SIZ 256
@@ -434,7 +434,7 @@ _fmt(format, t)
static int
_secs(t)
- const struct tm *t;
+ CONST struct tm *t;
{
static char buf[15];
register time_t s;