… | |
… | |
58 | { |
58 | { |
59 | psiconv_config result; |
59 | psiconv_config result; |
60 | result = malloc(sizeof(*result)); |
60 | result = malloc(sizeof(*result)); |
61 | *result = default_config; |
61 | *result = default_config; |
62 | return result; |
62 | return result; |
|
|
63 | } |
|
|
64 | |
|
|
65 | void psiconv_config_free(psiconv_config config) |
|
|
66 | { |
|
|
67 | free(config); |
63 | } |
68 | } |
64 | |
69 | |
65 | void psiconv_config_parse_statement(const char *filename, |
70 | void psiconv_config_parse_statement(const char *filename, |
66 | int linenr, |
71 | int linenr, |
67 | const char *var, int value, |
72 | const char *var, int value, |
… | |
… | |
352 | } |
357 | } |
353 | |
358 | |
354 | psiconv_config_parse_file(filename,config); |
359 | psiconv_config_parse_file(filename,config); |
355 | free(filename); |
360 | free(filename); |
356 | } |
361 | } |
|
|
362 | free(path); |
357 | } |
363 | } |