From f6e3b2f8a59922405f42c8bc283e0f5546c25d0e Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 11 Oct 2007 22:36:28 +0800 Subject: [ARITH] Add assignment and intmax_t support This patch adds assignment operator support in arithmetic expansions. It also changes the type used to intmax_t. --- src/expand.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/expand.h') diff --git a/src/expand.h b/src/expand.h index 4dfbc43..225b004 100644 --- a/src/expand.h +++ b/src/expand.h @@ -34,6 +34,8 @@ * @(#)expand.h 8.2 (Berkeley) 5/4/95 */ +#include + struct strlist { struct strlist *next; char *text; @@ -68,7 +70,7 @@ char *_rmescapes(char *, int); int casematch(union node *, char *); /* From arith.y */ -int arith(const char *); +intmax_t arith(const char *); int expcmd(int , char **); #ifdef USE_LEX void arith_lex_reset(void); -- cgit 1.4.1