aboutsummaryrefslogtreecommitdiffstats
path: root/posix
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-05-11 15:05:35 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-05-11 15:05:35 +0300
commite5353c0f447a8628985722296f57fc02dd2e0063 (patch)
treee41c41ba69b3c707cad6f6dbd3f1f9374e1eeafd /posix
parent4f8aff5908706e6f526b61337d10a412f4f66360 (diff)
downloadegawk-e5353c0f447a8628985722296f57fc02dd2e0063.tar.gz
egawk-e5353c0f447a8628985722296f57fc02dd2e0063.tar.bz2
egawk-e5353c0f447a8628985722296f57fc02dd2e0063.zip
Move to use of bool type, true, false, everywhere.
Diffstat (limited to 'posix')
-rw-r--r--posix/ChangeLog4
-rw-r--r--posix/gawkmisc.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index 425f1c91..bf36414f 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.c: Use `bool', `true', and `false' everywhere.
+
2012-03-20 Andrew J. Schorr <aschorr@telemetry-investments.com>
* gawkmisc.c (deflibpath): New global variable.
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c
index 270872ac..3baf852e 100644
--- a/posix/gawkmisc.c
+++ b/posix/gawkmisc.c
@@ -93,8 +93,8 @@ optimal_bufsize(int fd, struct stat *stb)
{
char *val;
static size_t env_val = 0;
- static short first = TRUE;
- static short exact = FALSE;
+ static bool first = true;
+ static bool exact = false;
/* force all members to zero in case OS doesn't use all of them. */
memset(stb, '\0', sizeof(struct stat));
@@ -104,11 +104,11 @@ optimal_bufsize(int fd, struct stat *stb)
fatal("can't stat fd %d (%s)", fd, strerror(errno));
if (first) {
- first = FALSE;
+ first = false;
if ((val = getenv("AWKBUFSIZE")) != NULL) {
if (strcmp(val, "exact") == 0)
- exact = TRUE;
+ exact = true;
else if (isdigit((unsigned char) *val)) {
for (; *val && isdigit((unsigned char) *val); val++)
env_val = (env_val * 10) + *val - '0';