aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
Diffstat (limited to 'extension')
-rw-r--r--extension/ChangeLog4
-rw-r--r--extension/arrayparm.c6
-rw-r--r--extension/dl.c4
-rw-r--r--extension/filefuncs.c6
-rw-r--r--extension/fork.c2
-rw-r--r--extension/ordchr.c4
-rw-r--r--extension/readfile.c2
-rw-r--r--extension/rwarray.c8
-rw-r--r--extension/testarg.c8
9 files changed, 24 insertions, 20 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 7c6976de..a38ce15c 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-11 Arnold D. Robbins <arnold@skeeve.com>
+
+ Sweeping change: Use `bool', `true', and `false' everywhere.
+
2012-04-11 Andrew J. Schorr <aschorr@telemetry-investments.com>
* filefuncs.c (array_set): New function to set an array element.
diff --git a/extension/arrayparm.c b/extension/arrayparm.c
index 1e28811e..02b8c2e4 100644
--- a/extension/arrayparm.c
+++ b/extension/arrayparm.c
@@ -52,9 +52,9 @@ do_mkarray(int nargs)
if (do_lint && nargs > 3)
lintwarn("mkarray: called with too many arguments");
- var = get_array_argument(0, FALSE);
- sub = get_scalar_argument(1, FALSE);
- val = get_scalar_argument(2, FALSE);
+ var = get_array_argument(0, false);
+ sub = get_scalar_argument(1, false);
+ val = get_scalar_argument(2, false);
printf("var->type = %s\n", nodetype2str(var->type));
printf("sub->type = %s\n", nodetype2str(sub->type));
diff --git a/extension/dl.c b/extension/dl.c
index afc16af5..ee3b08fe 100644
--- a/extension/dl.c
+++ b/extension/dl.c
@@ -47,7 +47,7 @@ zaxxon(int nargs)
for (i = 0; i < nargs; i++) {
- obj = get_scalar_argument(i, TRUE);
+ obj = get_scalar_argument(i, true);
if (obj == NULL)
break;
@@ -63,7 +63,7 @@ zaxxon(int nargs)
/*
* Do something useful
*/
- obj = get_scalar_argument(0, FALSE);
+ obj = get_scalar_argument(0, false);
if (obj != NULL) {
force_string(obj);
diff --git a/extension/filefuncs.c b/extension/filefuncs.c
index 8e5e8daa..9758ba8e 100644
--- a/extension/filefuncs.c
+++ b/extension/filefuncs.c
@@ -42,7 +42,7 @@ do_chdir(int nargs)
if (do_lint && nargs != 1)
lintwarn("chdir: called with incorrect number of arguments");
- newdir = get_scalar_argument(0, FALSE);
+ newdir = get_scalar_argument(0, false);
(void) force_string(newdir);
ret = chdir(newdir->stptr);
if (ret < 0)
@@ -239,8 +239,8 @@ do_stat(int nargs)
lintwarn("stat: called with too many arguments");
/* file is first arg, array to hold results is second */
- file = get_scalar_argument(0, FALSE);
- array = get_array_argument(1, FALSE);
+ file = get_scalar_argument(0, false);
+ array = get_array_argument(1, false);
/* empty out the array */
assoc_clear(array);
diff --git a/extension/fork.c b/extension/fork.c
index 7e6bb731..3c288c04 100644
--- a/extension/fork.c
+++ b/extension/fork.c
@@ -78,7 +78,7 @@ do_waitpid(int nargs)
if (do_lint && nargs > 1)
lintwarn("waitpid: called with too many arguments");
- pidnode = get_scalar_argument(0, FALSE);
+ pidnode = get_scalar_argument(0, false);
if (pidnode != NULL) {
pidval = get_number_d(pidnode);
pid = (int) pidval;
diff --git a/extension/ordchr.c b/extension/ordchr.c
index a979607b..6abda181 100644
--- a/extension/ordchr.c
+++ b/extension/ordchr.c
@@ -43,7 +43,7 @@ do_ord(int nargs)
if (do_lint && nargs > 1)
lintwarn("ord: called with too many arguments");
- str = get_scalar_argument(0, FALSE);
+ str = get_scalar_argument(0, false);
if (str != NULL) {
(void) force_string(str);
ret = str->stptr[0];
@@ -70,7 +70,7 @@ do_chr(int nargs)
if (do_lint && nargs > 1)
lintwarn("chr: called with too many arguments");
- num = get_scalar_argument(0, FALSE);
+ num = get_scalar_argument(0, false);
if (num != NULL) {
val = get_number_d(num);
ret = val; /* convert to int */
diff --git a/extension/readfile.c b/extension/readfile.c
index 57cf6cdd..17e70a6d 100644
--- a/extension/readfile.c
+++ b/extension/readfile.c
@@ -53,7 +53,7 @@ do_readfile(int nargs)
if (do_lint && nargs > 1)
lintwarn("readfile: called with too many arguments");
- filename = get_scalar_argument(0, FALSE);
+ filename = get_scalar_argument(0, false);
if (filename != NULL) {
(void) force_string(filename);
diff --git a/extension/rwarray.c b/extension/rwarray.c
index f4f8cd58..fed040fc 100644
--- a/extension/rwarray.c
+++ b/extension/rwarray.c
@@ -86,8 +86,8 @@ do_writea(int nargs)
lintwarn("writea: called with too many arguments");
/* directory is first arg, array to dump is second */
- file = get_scalar_argument(0, FALSE);
- array = get_array_argument(1, FALSE);
+ file = get_scalar_argument(0, false);
+ array = get_array_argument(1, false);
/* open the file, if error, set ERRNO and return */
(void) force_string(file);
@@ -254,8 +254,8 @@ do_reada(int nargs)
lintwarn("reada: called with too many arguments");
/* directory is first arg, array to dump is second */
- file = get_scalar_argument(0, FALSE);
- array = get_array_argument(1, FALSE);
+ file = get_scalar_argument(0, false);
+ array = get_array_argument(1, false);
(void) force_string(file);
fd = open(file->stptr, O_RDONLY);
diff --git a/extension/testarg.c b/extension/testarg.c
index 4d012db5..32481b33 100644
--- a/extension/testarg.c
+++ b/extension/testarg.c
@@ -10,13 +10,13 @@ do_check_arg(int nargs)
printf("arg count: defined = 3, supplied = %d\n", nargs);
- arg1 = get_scalar_argument(0, FALSE);
- arg2 = get_array_argument(1, FALSE);
- arg3 = get_scalar_argument(2, TRUE); /* optional */
+ arg1 = get_scalar_argument(0, false);
+ arg2 = get_array_argument(1, false);
+ arg3 = get_scalar_argument(2, true); /* optional */
if (nargs > 3) {
/* try to use an extra arg */
NODE *arg4;
- arg4 = get_array_argument(3, TRUE);
+ arg4 = get_array_argument(3, true);
printf("Shouldn't see this line\n");
}
if (arg3 != NULL) {