summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Peel <jsyn@cvs.openbsd.org>2003-05-14 01:15:02 +0000
committerJason Peel <jsyn@cvs.openbsd.org>2003-05-14 01:15:02 +0000
commitc3c4fec98cc1e6f183cc83ed0d48df7913862371 (patch)
treecafc68b9f77eff89aabd04ba4299c04dafdb2525
parent6d48a060511a0b53cd8719e44eb187936cd4d3a8 (diff)
add prototypes; ok millert@ w/ 'static', 'no static', deraadt@
-rw-r--r--bin/expr/expr.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/bin/expr/expr.c b/bin/expr/expr.c
index d87cb15505b..27f67653a34 100644
--- a/bin/expr/expr.c
+++ b/bin/expr/expr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expr.c,v 1.13 2003/04/15 08:34:04 deraadt Exp $ */
+/* $OpenBSD: expr.c,v 1.14 2003/05/14 01:15:01 jsyn Exp $ */
/* $NetBSD: expr.c,v 1.3.6.1 1996/06/04 20:41:47 cgd Exp $ */
/*
@@ -14,6 +14,22 @@
#include <regex.h>
#include <err.h>
+struct val *make_int(int);
+struct val *make_str(char *);
+void free_value(struct val *);
+int is_integer(struct val *, int *);
+int to_integer(struct val *);
+void to_string(struct val *);
+int is_zero_or_null(struct val *);
+void nexttoken(int);
+__dead void error(void);
+struct val *eval6(void);
+struct val *eval5(void);
+struct val *eval4(void);
+struct val *eval3(void);
+struct val *eval2(void);
+struct val *eval1(void);
+struct val *eval0(void);
enum token {
OR, AND, EQ, LT, GT, ADD, SUB, MUL, DIV, MOD, MATCH, RP, LP,
@@ -217,7 +233,6 @@ error()
struct val *
eval6(void)
{
- struct val *eval0(void);
struct val *v;
if (token == OPERAND) {