diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-16 15:03:51 +0900 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-01 18:45:27 +0100 |
| commit | e9484f70b21ed49d0ca6dbf2899b3a6306ffd2e9 (patch) | |
| tree | 1148e8457c5599449c13d7b7a012d9f16af8e3da /lib/command_match.c | |
| parent | b07a15f82dc1dd60316ab92edc4f612eced7ffa3 (diff) | |
lib: parser: use reentrant mode on flex & bison
This removes remaining global variables from the lexer, pushing the
lexer state into struct parser_ctx too. At the same time, "cmd_yy" is
used as prefix for all parser & lexer routines.
The result is that (a) there is no collision anymore if a program uses
flex/bison and links libzebra, and (b) the parser is fully encapsulated
and could be called in parallel from multiple threads.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command_match.c')
0 files changed, 0 insertions, 0 deletions
