Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/bin


Modified Files:
        edje_cc_handlers.c 


Log Message:
'custom' is an invalid description name
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_handlers.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- edje_cc_handlers.c  27 Oct 2004 16:17:12 -0000      1.51
+++ edje_cc_handlers.c  29 Oct 2004 14:11:54 -0000      1.52
@@ -906,6 +906,7 @@
    Edje_Part_Collection *pc;
    Edje_Part *ep;
    Edje_Part_Description *ed;
+   char *s;
 
    check_arg_count(2);
    
@@ -913,7 +914,17 @@
    ep = evas_list_data(evas_list_last(pc->parts));   
    ed = ep->default_desc;
    if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
-   ed->state.name = parse_str(0);
+
+   s = parse_str(0);
+   if (!strcmp (s, "custom"))
+     {
+       fprintf(stderr, "%s: Error. parse error %s:%i. "
+               "invalid state name: '%s'.\n",
+               progname, file_in, line - 1, s);
+       exit(-1);
+     }
+
+   ed->state.name = s;
    ed->state.value = parse_float_range(1, 0.0, 1.0);
 }
 




-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to