aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-19 18:38:33 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-07-23 23:25:39 +0200
commit0de9fc21de2cc26038b9b07d3b80e9c5cd84ec30 (patch)
treef9d5fd7b763f4b9d938e7021bb2d7aee4a75044c
parent06ce9117090be44b6b1b5b34c074f6605f1d9a7d (diff)
downloadsparse-0de9fc21de2cc26038b9b07d3b80e9c5cd84ec30.tar.gz
remove now unused match_idents()
match_idents() is now unused and identifier matching should preferably be done via the keyword table. So, remove this function. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--parse.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/parse.c b/parse.c
index ec69e0c6..c7ca3dce 100644
--- a/parse.c
+++ b/parse.c
@@ -678,24 +678,6 @@ static void fn_local_symbol(struct symbol *sym)
add_symbol(function_symbol_list, sym);
}
-static int SENTINEL_ATTR match_idents(struct token *token, ...)
-{
- va_list args;
- struct ident * next;
-
- if (token_type(token) != TOKEN_IDENT)
- return 0;
-
- va_start(args, token);
- do {
- next = va_arg(args, struct ident *);
- } while (next && token->ident != next);
- va_end(args);
-
- return next && token->ident == next;
-}
-
-
struct statement *alloc_statement(struct position pos, int type)
{
struct statement *stmt = __alloc_statement(0);