summaryrefslogtreecommitdiff
path: root/bin/ksh/c_test.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-12-20 11:34:27 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-12-20 11:34:27 +0000
commite445c3ad8a040ce5aa9ffd47e72de71f7cd3dd16 (patch)
treef321abeceffdba61fb97e64b666e8793cf6e1d4e /bin/ksh/c_test.h
parentc6e78b160bb0e446bb146be6b8b66890b48e5b31 (diff)
Ansification plus some minor knf. No binary change on i386 and
sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
Diffstat (limited to 'bin/ksh/c_test.h')
-rw-r--r--bin/ksh/c_test.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/bin/ksh/c_test.h b/bin/ksh/c_test.h
index 33df5721a8e..8b569e04b51 100644
--- a/bin/ksh/c_test.h
+++ b/bin/ksh/c_test.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: c_test.h,v 1.3 2004/12/18 20:55:52 millert Exp $ */
+/* $OpenBSD: c_test.h,v 1.4 2004/12/20 11:34:26 otto Exp $ */
/* Various types of operations. Keeping things grouped nicely
* (unary,binary) makes switch() statements more efficient.
@@ -42,14 +42,12 @@ struct test_env {
XPtrV *av; /* used by dbtestp_* */
} pos;
char **wp_end; /* used by ptest_* */
- int (*isa)(Test_env *te, Test_meta meta);
- const char *(*getopnd) (Test_env *te, Test_op op, int do_eval);
- int (*eval)(Test_env *te, Test_op op, const char *opnd1,
- const char *opnd2, int do_eval);
- void (*error)(Test_env *te, int offset, const char *msg);
+ int (*isa)(Test_env *, Test_meta);
+ const char *(*getopnd) (Test_env *, Test_op, int);
+ int (*eval)(Test_env *, Test_op, const char *, const char *, int);
+ void (*error)(Test_env *, int, const char *);
};
-Test_op test_isop(Test_env *te, Test_meta meta, const char *s);
-int test_eval(Test_env *te, Test_op op, const char *opnd1,
- const char *opnd2, int do_eval);
-int test_parse(Test_env *te);
+Test_op test_isop(Test_env *, Test_meta, const char *);
+int test_eval(Test_env *, Test_op, const char *, const char *, int);
+int test_parse(Test_env *);