1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-03-21 08:15:46 +00:00

Port 'bool' usage to Sun C 5.12.

* zic.c (inzcont, inzone, is_alpha, yearistype):
Fix prototype to match function, as the C standard requires.
* NEWS: Mention the use of 'bool'.
This commit is contained in:
Paul Eggert
2014-08-25 13:26:48 -07:00
parent 82f519e703
commit 9701f8b9cd
2 changed files with 6 additions and 4 deletions

2
NEWS
View File

@ -104,6 +104,8 @@ Unreleased, experimental changes
For easier maintenance later, some C code has been simplified
and some lint has been removed.
The C type 'bool' is now used for boolean values, instead of 'int'.
The long-obsolete LOCALE_HOME code has been removed.
The long-obsolete 'gtime' function has been removed.

8
zic.c
View File

@ -114,11 +114,11 @@ static void infile(const char * filename);
static void inleap(char ** fields, int nfields);
static void inlink(char ** fields, int nfields);
static void inrule(char ** fields, int nfields);
static int inzcont(char ** fields, int nfields);
static int inzone(char ** fields, int nfields);
static bool inzcont(char ** fields, int nfields);
static bool inzone(char ** fields, int nfields);
static bool inzsub(char **, int, bool);
static int itsdir(const char * name);
static int is_alpha(char a);
static bool is_alpha(char a);
static char lowerit(char);
static bool mkdirs(char *);
static void newabbr(const char * abbr);
@ -130,7 +130,7 @@ static void rulesub(struct rule * rp,
const char * typep, const char * monthp,
const char * dayp, const char * timep);
static zic_t tadd(zic_t t1, zic_t t2);
static int yearistype(int year, const char * type);
static bool yearistype(int year, const char * type);
static int charcnt;
static bool errors;