if (!result)
{
- ERR("%s: Error. Unknown type %i of part %s in collection %s.", progname, type, part, collection);
- exit(-1);
+ ERR("%s: Error. Unknown type %i of part %s in collection %s.", progname, type, part, collection);
+ exit(-1);
}
return result;
0, sizeof (Edje_Image_Directory_Entry));
if (!edje_file->image_dir->entries)
{
- ERR("%s: Error. No enough memory.", progname);
- exit(-1);
+ ERR("%s: Error. No enough memory.", progname);
+ exit(-1);
}
img = edje_file->image_dir->entries + edje_file->image_dir->entries_count - 1;
0, sizeof (Edje_Image_Directory_Set));
if (!edje_file->image_dir->sets)
{
- ERR("%s: Error. Not enough memory.", progname);
- exit(-1);
+ ERR("%s: Error. Not enough memory.", progname);
+ exit(-1);
}
edje_file->image_dir->sets[edje_file->image_dir->sets_count - 1].id = edje_file->image_dir->sets_count - 1;
}
stl = eina_list_data_get(eina_list_last(edje_file->styles));
if (stl->tags)
{
- ERR("%s: Error. parse error %s:%i. There is already a basic format for the style",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. There is already a basic format for the style",
+ progname, file_in, line - 1);
+ exit(-1);
}
tag = mem_alloc(SZ(Edje_Style_Tag));
tag->key = mem_strdup("DEFAULT");
{
Edje_Part_Collection *pc;
Code *cd;
-
+
if (current_de && !current_de->entry)
{
- ERR("%p: Error. A collection without a name was detected, that's not allowed.", progname);
- exit(-1);
+ ERR("%p: Error. A collection without a name was detected, that's not allowed.", progname);
+ exit(-1);
}
current_de = mem_alloc(SZ(Edje_Part_Collection_Directory_Entry));
pc->parts = realloc(pc->parts, pc->parts_count * sizeof (Edje_Part *));
if (!pc->parts)
{
- ERR("%s: Error. Not enough memory.", progname);
- exit(-1);
+ ERR("%s: Error. Not enough memory.", progname);
+ exit(-1);
}
current_part = pc->parts[pc->parts_count - 1] = ep;
if ((ep->type != EDJE_PART_TYPE_BOX) && (ep->type != EDJE_PART_TYPE_TABLE))
{
- ERR("%s: Error. parse error %s:%i. "
- "box attributes in non-BOX or TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "box attributes in non-BOX or TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ep->items_count++;
ep->items = realloc(ep->items, sizeof (Edje_Pack_Element*) * ep->items_count);
if (!ep->items)
{
- ERR("%s: Error. Not enough memory.", progname);
- exit(-1);
+ ERR("%s: Error. Not enough memory.", progname);
+ exit(-1);
}
item = mem_alloc(SZ(Edje_Pack_Element_Parser));
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
- ERR("%s: Error. parse error %s:%i. "
- "table attributes in non-TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "table attributes in non-TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
current_item->col = parse_int_range(0, 0, 0xffff);
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
- ERR("%s: Error. parse error %s:%i. "
- "table attributes in non-TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "table attributes in non-TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
current_item->colspan = parse_int_range(0, 1, 0xffff);
if (!ep->default_desc)
{
- current_desc = ep->default_desc = ed;
+ current_desc = ep->default_desc = ed;
}
else
{
- ep->other.desc_count++;
- ep->other.desc = realloc(ep->other.desc,
- sizeof (Edje_Part_Description_Common*) * ep->other.desc_count);
- current_desc = ep->other.desc[ep->other.desc_count - 1] = ed;
+ ep->other.desc_count++;
+ ep->other.desc = realloc(ep->other.desc,
+ sizeof (Edje_Part_Description_Common*) * ep->other.desc_count);
+ current_desc = ep->other.desc[ep->other.desc_count - 1] = ed;
}
ed->visible = 1;
if (current_part->type != EDJE_PART_TYPE_TEXT
&& current_part->type != EDJE_PART_TYPE_TEXTBLOCK)
{
- ERR("%s: Error. Setting color3 in part %s from %s not of type TEXT or TEXTBLOCK.", progname, current_part->name, pc->part);
- exit(-1);
+ ERR("%s: Error. Setting color3 in part %s from %s not of type TEXT or TEXTBLOCK.", progname, current_part->name, pc->part);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*)current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (current_part->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) current_desc;
if (ep->type != EDJE_PART_TYPE_IMAGE)
{
- ERR("%s: Error. parse error %s:%i. "
- "image attributes in non-IMAGE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "image attributes in non-IMAGE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Image*) ep->default_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*)current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
ed->text.size_range_max = parse_int_range(1, 0, 255);
if (ed->text.size_range_min > ed->text.size_range_max)
{
- ERR("%s: Error. parse error %s:%i. "
- "min size is bigger than max size.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "min size is bigger than max size.",
+ progname, file_in, line - 1);
+ exit(-1);
}
}
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*)current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if ((current_part->type != EDJE_PART_TYPE_TEXT) &&
(current_part->type != EDJE_PART_TYPE_TEXTBLOCK))
{
- ERR("%s: Error. parse error %s:%i. "
- "text attributes in non-TEXT part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "text attributes in non-TEXT part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Text*) current_desc;
if (current_part->type != EDJE_PART_TYPE_BOX)
{
- ERR("%s: Error. parse error %s:%i. "
- "box attributes in non-BOX part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "box attributes in non-BOX part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Box*) current_desc;
if (current_part->type != EDJE_PART_TYPE_BOX)
{
- ERR("%s: Error. parse error %s:%i. "
- "box attributes in non-BOX part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "box attributes in non-BOX part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Box*) current_desc;
if (current_part->type != EDJE_PART_TYPE_BOX)
{
- ERR("%s: Error. parse error %s:%i. "
- "box attributes in non-BOX part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "box attributes in non-BOX part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Box*) current_desc;
if (current_part->type != EDJE_PART_TYPE_BOX)
{
- ERR("%s: Error. parse error %s:%i. "
- "box attributes in non-BOX part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "box attributes in non-BOX part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Box*) current_desc;
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
- ERR("%s: Error. parse error %s:%i. "
- "table attributes in non-TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "table attributes in non-TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Table*) current_desc;
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
- ERR("%s: Error. parse error %s:%i. "
- "table attributes in non-TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "table attributes in non-TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Table*) current_desc;
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
- ERR("%s: Error. parse error %s:%i. "
- "table attributes in non-TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "table attributes in non-TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Table*) current_desc;
if (current_part->type != EDJE_PART_TYPE_TABLE)
{
- ERR("%s: Error. parse error %s:%i. "
- "box attributes in non-TABLE part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "box attributes in non-TABLE part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_Table*) current_desc;
if (current_part->type != EDJE_PART_TYPE_EXTERNAL)
{
- ERR("%s: Error. parse error %s:%i. "
- "params in non-EXTERNAL part.",
- progname, file_in, line - 1);
- exit(-1);
+ ERR("%s: Error. parse error %s:%i. "
+ "params in non-EXTERNAL part.",
+ progname, file_in, line - 1);
+ exit(-1);
}
ed = (Edje_Part_Description_External*) current_desc;