author | Sebastian Harl <sh@tokkee.org> | |
Thu, 25 Oct 2012 09:32:38 +0000 (11:32 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 25 Oct 2012 09:32:38 +0000 (11:32 +0200) | ||
commit | fbb3f791c3b072dc09e8ecd339f6e4808fdd8299 | |
tree | 7764da836dea0075c4fdcc828a3313f17d4efef0 | tree | snapshot |
parent | 5e586437f8ed210d7d0e9b9316376773c457adfc | commit | diff |
oconfig: Allow empty statement lists (in blocks and files).
This allows to use empty blocks (which is useful during development and
testing) and empty files (which may happen when including config directories,
cf. Debian #592881).
In order not to generate a shift/reduce error, rather than allowing a
'statement_list' to be empty, this has been implemented by explicitly allowing
empty blocks and an empty 'entire_file'.
This allows to use empty blocks (which is useful during development and
testing) and empty files (which may happen when including config directories,
cf. Debian #592881).
In order not to generate a shift/reduce error, rather than allowing a
'statement_list' to be empty, this has been implemented by explicitly allowing
empty blocks and an empty 'entire_file'.
src/liboconfig/parser.y | diff | blob | history |