Lines Matching defs:last
47 static int new_tok(struct tst_expr_tok **last, const char *tok, size_t tok_len)
52 if (!(*last))
55 (*last)->tok = tok;
56 (*last)->tok_len = tok_len;
57 (*last)->op = char_to_op(tok[0]);
58 (*last)->priv = NULL;
59 (*last)++;
64 static unsigned int tokenize(const char *expr, struct tst_expr_tok *last)
76 token_cnt += new_tok(&last, &expr[j], i - j);
77 token_cnt += new_tok(&last, &expr[i], 1);
82 token_cnt += new_tok(&last, &expr[j], i - j);
97 token_cnt += new_tok(&last, &expr[j], i - j);
208 * This is also used to check that the last token in expression is correct one.