DOM test: refactor options parsing in sgml-parser
commitad6addbd92b651a330c736742a3666c184197a1c
authorJonas Fonseca <fonseca@diku.dk>
Sat, 26 May 2007 10:40:06 +0000 (26 12:40 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Sat, 26 May 2007 10:40:06 +0000 (26 12:40 +0200)
tree057d26bd9df85d1effa08be2cd62d4d5319079c5
parent17a76257f8c6f8228eac9d6698c76ed2969ea8b2
DOM test: refactor options parsing in sgml-parser

Introduce get_opt() to do the tedious work of getting the right
argument for options expecting them and handles both '--opt=arg'
and '--opt arg'. As a side effect it also removes an unneeded
assignment of the source string for stdin.
src/dom/test/sgml-parser.c