diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-08-02 21:44:15 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-22 14:57:53 -0400 |
commit | a54a8e53a97d104490966e36d40e9b0b419ad050 (patch) | |
tree | 0bffb1517c4daaa645a917d1938e067a44696322 /ini/ini_print.c | |
parent | fbaa3ff3a5e45bffea373d0bea4ccd206db37a45 (diff) | |
download | ding-libs-a54a8e53a97d104490966e36d40e9b0b419ad050.tar.gz ding-libs-a54a8e53a97d104490966e36d40e9b0b419ad050.tar.xz ding-libs-a54a8e53a97d104490966e36d40e9b0b419ad050.zip |
Introducing configuration file object
The patch contains two major pieces of work:
* The beginning of the new INI interface
significantly re-thought and reworked.
* The implementation of the file object.
Parsing was adjusted to use this object.
Diffstat (limited to 'ini/ini_print.c')
-rw-r--r-- | ini/ini_print.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ini/ini_print.c b/ini/ini_print.c index 60771d3..f12b27e 100644 --- a/ini/ini_print.c +++ b/ini/ini_print.c @@ -388,3 +388,25 @@ void print_config_parsing_errors(FILE *file, TRACE_FLOW_STRING("print_config_parsing_errors", "Exit"); } + + +/* Function to print errors from the list */ +void ini_print_errors(FILE *file, char **error_list) +{ + unsigned count = 0; + + TRACE_FLOW_ENTRY(); + + if (!error_list) { + TRACE_FLOW_STRING("List is empty.", ""); + return; + } + + while (error_list[count]) { + fprintf(file, "%s\n", error_list[count]); + count++; + } + + TRACE_FLOW_EXIT(); + return; +} |