diff options
author | ed <ed@FreeBSD.org> | 2011-10-31 08:59:17 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-10-31 08:59:17 +0000 |
commit | f58d00c87a547a1f65cf7b990fda6f4e36feb314 (patch) | |
tree | b068d06018284af5aa8b3feab9edb06109d847bc /bin/test | |
parent | 6458f63cb36a7883be28c39ca995cf3e03bfce69 (diff) | |
download | FreeBSD-src-f58d00c87a547a1f65cf7b990fda6f4e36feb314.zip FreeBSD-src-f58d00c87a547a1f65cf7b990fda6f4e36feb314.tar.gz |
Put some static keywords in the source code.
For these simple utilities, it doesn't harm to make all global variables
static. In fact, this allows the compiler to perform better forms of
optimisation and analysis.
Diffstat (limited to 'bin/test')
-rw-r--r-- | bin/test/test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/test/test.c b/bin/test/test.c index 62c0309..394988e 100644 --- a/bin/test/test.c +++ b/bin/test/test.c @@ -118,7 +118,7 @@ enum token_types { PAREN }; -struct t_op { +static struct t_op { const char *op_text; short op_num, op_type; } const ops [] = { @@ -165,10 +165,10 @@ struct t_op { {0, 0, 0} }; -struct t_op const *t_wp_op; -int nargc; -char **t_wp; -int parenlevel; +static struct t_op const *t_wp_op; +static int nargc; +static char **t_wp; +static int parenlevel; static int aexpr(enum token); static int binop(void); |