26 Commits

Author SHA1 Message Date
Philippe Pepiot
658e26bd49 parse: detect empty file + fix memleak 2010-10-30 23:16:44 +02:00
Philippe Pepiot
464f06c5c1 parse: typo 2010-10-30 23:11:10 +02:00
Philippe Pepiot
3a021bf026 Parse: fix segfault 2010-09-05 22:08:38 +02:00
Philippe Pepiot
b91db6b431 Parser: free keywords list and free files 2010-08-31 01:55:42 +02:00
Philippe Pepiot
5aeeae4198 Parse: when syntax error, fallback to default config, fixes #45 2010-08-31 00:55:51 +02:00
Philippe Pepiot
4a3952f54f Parser: errors on calloc fail or buffer overflow 2010-08-30 19:37:04 +02:00
Philippe Pepiot
3366ec835f Parser and launcher: check asprintf return 2010-08-28 23:44:49 +02:00
Philippe Pepiot
36aa4ce43a Parser: when @include path can be prefixed by "~" or be relative to
parent file directory. refs #21
2010-08-28 21:26:42 +02:00
Philippe Pepiot
4f1742eef9 Parser: recode / independant from wmfs code / @include works, closes #21 2010-08-28 20:40:54 +02:00
Philippe Pepiot
fd9cedd695 Parser: simplification, don't abuse of macros (work in progress) 2010-08-27 03:06:30 +02:00
Martin Duquesnoy
4f42436098 Config: Apply second patch of mseed/PeVe about conf split: Can comment @include line in conf. 2010-08-18 23:42:31 +02:00
Martin Duquesnoy
cf565c9b57 Config: Apply mseed/PeVe great patch: Add conf split with @include "file". Thanks to Czech WMFS dev team :) 2010-08-18 13:36:55 +02:00
Martin Duquesnoy
461b45545a Conf/Systray: add [systray] section 2010-07-23 14:36:05 +02:00
Philippe Pepiot
5dd811b91e Parse: fix possible segfaults. Add syntax() for syntax errors 2010-05-09 03:03:03 +02:00
Philippe Pepiot
a635e7c2d6 Parse: fix possible issue in fetch_section_first() 2010-04-20 00:13:39 +02:00
Martin Duquesnoy
3811d61858 Parser: Fix fetch_section_first when the section doesn't exist 2010-04-17 14:24:08 +02:00
Philippe Pepiot
aca9e78491 Parse: better converting function in string_to_opt 2010-04-15 02:22:44 +02:00
Philippe Pepiot
18b702c112 Parse: return sections in real order 2010-04-15 01:57:35 +02:00
Philippe Pepiot
7f7bbd1f09 Parse: add comment and make some code cosmetics 2010-04-15 01:30:23 +02:00
Philippe Pepiot
41bf8e2052 [parse] add free_conf() 2010-04-14 01:18:45 +02:00
Philippe Pepiot
5c5e137fdd [parse] print warning when option is unused 2010-04-14 00:49:09 +02:00
Philippe Pepiot
9f7f4c40e4 Fix segfault when fetch_opt on a NULL section 2010-04-13 22:48:50 +02:00
Philippe Pepiot
d37dc481a1 New fonctions in parser
fetch_(opt|section)_first -> return the first (section|opt) found
fetch_(opt|section)_count -> return the size of (section|opt)
2010-04-13 22:05:01 +02:00
Martin Duquesnoy
b4705bbaa7 Conf: Fix button section bug 2010-04-13 20:41:41 +02:00
Philippe Pepiot
9b33623d33 New parser in use.
Warning : be prudent :)
2010-04-13 19:57:02 +02:00
Philippe Pepiot
611a5fc38d New parser (not yet in use) 2010-04-13 01:43:12 +02:00