sieve: rewrite lexer to use MU streams API.
* libmu_sieve/sieve.l (input_string_ptr, input_string_level): Remove. (input_stream): New static variable. (fillbuf): Use mu_stream_read (buffer_ctx)<yyin>: Replace with mu_stream_t input; (push_source, pop_source): Use stream API. (mu_sv_lex_begin_string): Likewise. * sieve/sieve.c (options): New option --expression. (expression_option): New variable. (parser): Handle the --expression option. (main): Treat SCRIPT as program text if given the --expression option.
Showing
3 changed files
with
51 additions
and
35 deletions
-
Please register or sign in to post a comment