gc-sections found size optimisation chances
This commit is contained in:
parent
efaa268a88
commit
d5edc79f5a
4
check.t
4
check.t
@ -1,4 +1,4 @@
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.506 2011/12/29 23:36:21 tg Exp $
|
||||
# $MirOS: src/bin/mksh/check.t,v 1.507 2011/12/31 00:27:23 tg Exp $
|
||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
||||
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||
@ -28,7 +28,7 @@
|
||||
# http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/bin/test/regress.sh?rev=HEAD
|
||||
|
||||
expected-stdout:
|
||||
@(#)MIRBSD KSH R40 2011/12/29
|
||||
@(#)MIRBSD KSH R40 2011/12/30
|
||||
description:
|
||||
Check version of shell.
|
||||
stdin:
|
||||
|
10
sh.h
10
sh.h
@ -151,9 +151,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef EXTERN
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.515 2011/12/30 21:00:30 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.516 2011/12/31 00:27:25 tg Exp $");
|
||||
#endif
|
||||
#define MKSH_VERSION "R40 2011/12/29"
|
||||
#define MKSH_VERSION "R40 2011/12/30"
|
||||
|
||||
/* arithmetics types */
|
||||
typedef int32_t mksh_ari_t;
|
||||
@ -162,7 +162,7 @@ typedef uint32_t mksh_uari_t;
|
||||
/* boolean type (no <stdbool.h> deliberately) */
|
||||
typedef unsigned char mksh_bool;
|
||||
#undef bool
|
||||
/* false MUST equal 0 */
|
||||
/* false MUST equal the same 0 as written by static storage initialisation */
|
||||
#undef false
|
||||
#undef true
|
||||
/* access macros for boolean type */
|
||||
@ -1448,8 +1448,6 @@ EXTERN YYSTYPE yylval; /* result from yylex */
|
||||
EXTERN struct ioword *heres[HERES], **herep;
|
||||
EXTERN char ident[IDENT+1];
|
||||
|
||||
#define HISTORYSIZE 500 /* size of saved history */
|
||||
|
||||
EXTERN char **history; /* saved commands */
|
||||
EXTERN char **histptr; /* last history item */
|
||||
EXTERN mksh_ari_t histsize; /* history size */
|
||||
@ -1631,8 +1629,10 @@ void sethistsize(mksh_ari_t);
|
||||
#if HAVE_PERSISTENT_HISTORY
|
||||
void sethistfile(const char *);
|
||||
#endif
|
||||
#if !MKSH_S_NOVI
|
||||
char **histpos(void);
|
||||
int histnum(int);
|
||||
#endif
|
||||
int findhist(int, int, const char *, int);
|
||||
char **hist_get_newest(bool);
|
||||
void inittraps(void);
|
||||
|
4
tree.c
4
tree.c
@ -22,7 +22,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.54 2011/12/29 23:36:25 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.55 2011/12/31 00:27:27 tg Exp $");
|
||||
|
||||
#define INDENT 8
|
||||
|
||||
@ -895,7 +895,7 @@ dumptree(struct shf *shf, struct op *t)
|
||||
int i;
|
||||
const char **w, *name;
|
||||
struct op *t1;
|
||||
static int nesting = 0;
|
||||
static int nesting;
|
||||
|
||||
for (i = 0; i < nesting; ++i)
|
||||
shf_putc('\t', shf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user