]> git.proxmox.com Git - mirror_frr.git/commit
lib: parser: wrap state in struct parser_ctx
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 23 Nov 2016 08:02:08 +0000 (09:02 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 1 Dec 2016 17:45:27 +0000 (18:45 +0100)
commitb07a15f82dc1dd60316ab92edc4f612eced7ffa3
tree413acc50238015d1d559663ab975a89781e1da9f
parent2ab402707ff0ebe4b7b87ef0ffb3233e791cb92f
lib: parser: wrap state in struct parser_ctx

This encapsulates all parser state into a new "struct parser_ctx", which
is allocated on stack and passed around as pointer.  The parser no
longer has any global variables with this.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command_parse.y