Code

liboconfig: Include the filename in error messages.
authorSebastian Harl <sh@tokkee.org>
Mon, 24 Mar 2008 11:06:49 +0000 (12:06 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 24 Mar 2008 11:13:44 +0000 (12:13 +0100)
commit7aee817a090f1f825e68c3a0288a373c52e16e03
treec4215606a630d0d0b477e4f9d033d254533903e7
parentd92709332ac43db953605921d0d820b456223261
liboconfig: Include the filename in error messages.

As collectd now supports more than one config file, this is more
convenient.

A module-global variable is used for that purpose. If no filename is
available (e.g. if the user uses oconfig_parse_fh() directly), a string
like "<fd#X>" is used instead, where X is replaced by the file descriptor.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/liboconfig/oconfig.c
src/liboconfig/parser.y