static char **argv; /* The argument list. */
static bool test_unop (char const *s);
-static bool binop (char *s);
static bool unary_operator (void);
static bool binary_operator (bool);
static bool two_arguments (void);
return ok;
}
+/* Return true if S is one of the test command's binary operators. */
+static bool
+binop (char const *s)
+{
+ return ((STREQ (s, "=")) || (STREQ (s, "!=")) || (STREQ (s, "-nt")) ||
+ (STREQ (s, "-ot")) || (STREQ (s, "-ef")) || (STREQ (s, "-eq")) ||
+ (STREQ (s, "-ne")) || (STREQ (s, "-lt")) || (STREQ (s, "-le")) ||
+ (STREQ (s, "-gt")) || (STREQ (s, "-ge")));
+}
+
/*
* term - parse a term and return 1 or 0 depending on whether the term
* evaluates to true or false, respectively.
return or (); /* Same with this. */
}
-/* Return true if S is one of the test command's binary operators. */
-static bool
-binop (char const *s)
-{
- return ((STREQ (s, "=")) || (STREQ (s, "!=")) || (STREQ (s, "-nt")) ||
- (STREQ (s, "-ot")) || (STREQ (s, "-ef")) || (STREQ (s, "-eq")) ||
- (STREQ (s, "-ne")) || (STREQ (s, "-lt")) || (STREQ (s, "-le")) ||
- (STREQ (s, "-gt")) || (STREQ (s, "-ge")));
-}
-
/* Return true if OP is one of the test command's unary operators. */
static bool
test_unop (char const *op)