aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tokenize.c
diff options
authorChristopher Li <sparse@chrisli.org>2005-04-02 10:30:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:31 -0700
commitf765413f020fd2c97c22716320dc96b33cda7c43 (patch)
treebe5c71bd9cb3a12d52d2a97147418c175b5cd280 /tokenize.c
parent47115aa79de6d344493f0fbd4b862cf7709e9099 (diff)
downloadsparse-dev-f765413f020fd2c97c22716320dc96b33cda7c43.tar.gz
[PATCH] static declear
This patch add static declare to make sparse happy of checking itself.
Diffstat (limited to 'tokenize.c')
-rw-r--r--tokenize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tokenize.c b/tokenize.c
index b0eb2648..50c83bc6 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -44,7 +44,7 @@ const char *stream_name(int stream)
return input_streams[stream].name;
}
-struct position stream_pos(stream_t *stream)
+static struct position stream_pos(stream_t *stream)
{
struct position pos;
pos.type = 0;
@@ -78,7 +78,7 @@ const char *show_ident(const struct ident *ident)
return buffer;
}
-char *charstr(char *ptr, unsigned char c, unsigned char escape, unsigned char next)
+static char *charstr(char *ptr, unsigned char c, unsigned char escape, unsigned char next)
{
if (isprint(c)) {
if (c == escape || c == '\\')
@@ -679,7 +679,7 @@ static int get_one_special(int c, stream_t *stream)
#define ident_hash_end(hash) ((((hash) >> IDENT_HASH_BITS) + (hash)) & IDENT_HASH_MASK)
static struct ident *hash_table[IDENT_HASH_SIZE];
-int ident_hit, ident_miss, idents;
+static int ident_hit, ident_miss, idents;
void show_identifier_stats(void)
{