small improvement - allow part names of "-" to mean "remove part name

itd and reset back to -1 - ie none". useful for to/to_x/to_y etc.



SVN revision: 70315
This commit is contained in:
Carsten Haitzler 2012-04-19 03:35:29 +00:00
parent b852081df5
commit 1bc29757ab
1 changed files with 24 additions and 17 deletions

View File

@ -1707,6 +1707,12 @@ data_process_lookups(void)
Edje_Part *ep;
unsigned int i;
if (!strcmp(part->name, "-"))
{
*(part->dest) = -1;
}
else
{
for (i = 0; i < part->pc->parts_count; ++i)
{
ep = part->pc->parts[i];
@ -1725,6 +1731,7 @@ data_process_lookups(void)
progname, part->name);
exit(-1);
}
}
free(part->name);
free(part);