Enlightenment CVS committal
Author : sarajervi
Project : misc
Module : erss
Dir : misc/erss/src
Modified Files:
erss.c parse.c
Log Message:
Better error reporting when parsing fails. And some bugfixes.
New configs: 3 new config files from creepy
===================================================================
RCS file: /cvsroot/enlightenment/misc/erss/src/erss.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- erss.c 14 Jan 2004 22:24:48 -0000 1.20
+++ erss.c 14 Jan 2004 22:58:10 -0000 1.21
@@ -220,11 +220,14 @@
server = NULL;
if (ewd_list_is_empty (list)) {
- printf ("\n%s error: parsing data\n", PACKAGE);
if (buf)
- printf ("%s\n", main_buffer);
- else
+ printf ("%s\n", temp);
+ else
printf ("%s error: could not connect to '%s'\n", PACKAGE,
cfg->url);
+
+ fprintf (stderr, "\n%s error: parsing data\n", PACKAGE);
+ fprintf (stderr, "%s error: are you sure you have to correct input in
your config file?\n", PACKAGE);
+
exit (-1);
}
===================================================================
RCS file: /cvsroot/enlightenment/misc/erss/src/parse.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- parse.c 14 Jan 2004 22:24:48 -0000 1.17
+++ parse.c 14 Jan 2004 22:58:10 -0000 1.18
@@ -107,6 +107,8 @@
cur = cur->xmlChildrenNode;
while (cur != NULL) {
+ if (ewd_list_nodes (list) >= cfg->num_stories)
+ return;
if (cfg->item_root) {
if (!strcmp(cur->name, cfg->item_root)) {
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs