* support old environments without libgen.h (ancient GNU/Linux)

and stdbool.h (ancient GNU/Linux; NetBSD® 1.6.1)
* __dead must come after, not before, to accomodate gcc 2.7.2.3
This commit is contained in:
tg
2007-01-17 22:51:47 +00:00
parent 8fea7398d3
commit ddd2dac47d
6 changed files with 43 additions and 16 deletions

5
expr.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/expr.c,v 1.7 2007/01/12 01:49:27 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/expr.c,v 1.8 2007/01/17 22:51:46 tg Exp $");
/* The order of these enums is constrained by the order of opinfo[] */
enum token {
@ -126,7 +126,8 @@ enum error_type {
ET_LVALUE, ET_RDONLY, ET_STR
};
static __dead void evalerr(Expr_state *, enum error_type, const char *);
static void evalerr(Expr_state *, enum error_type, const char *)
__attribute__((noreturn));
static struct tbl *evalexpr(Expr_state *, enum prec);
static void token(Expr_state *);
static struct tbl *do_ppmm(Expr_state *, enum token, struct tbl *, bool);