From e445c3ad8a040ce5aa9ffd47e72de71f7cd3dd16 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 20 Dec 2004 11:34:27 +0000 Subject: 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@ --- bin/ksh/c_test.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'bin/ksh/c_test.h') 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 *); -- cgit v1.2.3