From 1a5850f8ccb916e3bc3c4504f528b25a0c422c86 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 5 May 2025 22:19:37 +0300 Subject: automatically use the current date when building with Autotools * It's actually the time of running ./configure that will be used. * On OpenWatcom, it does not seem to be possible to set variables based on external processes, so you will still have to update AUTO_DATE in teco.h when releasing for DOS. --- tecbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tecbuf.c') diff --git a/tecbuf.c b/tecbuf.c index 03c1983..1bdfb13 100644 --- a/tecbuf.c +++ b/tecbuf.c @@ -34,7 +34,7 @@ struct buff_header *buff_create( char *name, char internal_flag ); #include "teco.h" #include "tecparse.h" -char rcs_date[] = AUTO_DATE; +static const char rcs_date[] = AUTO_DATE; /* * Global Storage is defined here for lack of a better place. @@ -1075,7 +1075,7 @@ register struct buff_header *hbp; char tmp_buffer[LINE_BUFFER_SIZE],padd_buffer[LINE_BUFFER_SIZE]; register int i; int count; -register char *cp; +register const char *cp; int max_length; PREAMBLE(); -- cgit v1.2.3