Fix error printing when parsing and save the last error.
authorDana Jansens <danakj@orodu.net>
Sat, 15 Oct 2011 19:11:56 +0000 (15:11 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 30 Sep 2012 16:01:42 +0000 (12:01 -0400)
commit7fe2498d6528dc98d2599468ab6ecbac1bf64ec5
tree6f91ca5fa71e708df8e1509d2ede2fbe97b1bc10
parentc5216a46a6d0adfed2dcb554315b6cd2976a2089
Fix error printing when parsing and save the last error.

Errors would have a line number relative to the string of text being parsed,
but if this is in a larger file, then it's useless. So add a callback that
can modify the line number for parsing things nested in a larger document.

This gives proper errors for parsing actions in the xml config files.

Also, change how errors are given back when creating a new action. Instead of
printing it directly, return an error string so the parser can show what line
the invalid action was found on.
openbox/action.c
openbox/action.h
openbox/action_parser.c
openbox/action_parser.h
openbox/actions/cyclewindows.c
openbox/actions/directionalwindows.c
openbox/config.c
openbox/menu.c
openbox/openbox.c