diff options
author | 2004-12-20 11:34:26 +0000 | |
---|---|---|
committer | 2004-12-20 11:34:26 +0000 | |
commit | c5d5393cb54eef9fc7aa26d9a0b5b0ff0a72d53a (patch) | |
tree | 578f9ba5952348c09f786d0a80acecbc2203c84e /bin/ksh/c_test.h | |
parent | Add support for displaying Shared Spanning Tree Protocol frames, a minor (diff) | |
download | wireguard-openbsd-c5d5393cb54eef9fc7aa26d9a0b5b0ff0a72d53a.tar.xz wireguard-openbsd-c5d5393cb54eef9fc7aa26d9a0b5b0ff0a72d53a.zip |
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.h | 18 |
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 *); |