- Formatting.

- Remove old code.


SVN revision: 29380
This commit is contained in:
Sebastian Dransfeld 2007-04-05 15:54:16 +00:00
parent d8988d3200
commit 2bc0592a68
5 changed files with 21 additions and 39 deletions

View File

@ -73,9 +73,13 @@ _edje_font_hash (Edje_File *edf)
Evas_List *l;
for (l = edf->font_dir->entries; l; l = evas_list_next(l))
{
Edje_Font_Directory_Entry *fnt = l->data;
int length = strlen (fnt->entry) + 7;
char *tmp = alloca (length);
Edje_Font_Directory_Entry *fnt;
int length;
char *tmp;
fnt = l->data;
length = strlen(fnt->entry) + 7;
tmp = alloca(length);
snprintf(tmp, length, "fonts/%s", fnt->entry);
fnt->path = evas_stringshare_add(tmp);

View File

@ -684,7 +684,9 @@ _edje_part_recalc_single(Edje *ed,
/* check if the font is embedded in the .eet */
if (ed->file->font_hash)
{
Edje_Font_Directory_Entry *fnt = evas_hash_find (ed->file->font_hash, font);
Edje_Font_Directory_Entry *fnt;
fnt = evas_hash_find(ed->file->font_hash, font);
if (fnt)
{

View File

@ -267,7 +267,7 @@ struct _Edje_Font_Directory
struct _Edje_Font_Directory_Entry
{
const char *entry; /* the name of the font */
char *path;
const char *path;
};

View File

@ -8,34 +8,10 @@
static int
_edje_font_is_embedded(Edje_File *edf, char *font)
{
Edje_Font_Directory_Entry *fnt = NULL;
if (!edf->font_dir) return 0;
/* fnt = evas_hash_find (edf->font_hash, font); */
/* if (fnt) */
/* if (fnt->entry && (!strcmp(fnt->entry, font))) */
/* return 1; */
return 1;
}
#if 0
static char *
_edje_str_deescape(char *str)
{
char *s2, *s, *d;
s2 = malloc(strlen(str) + 1);
if (!s2) return NULL;
for (s = str, d = s2; *s != 0; s++, d++)
{
if ((*s == '\\') && (s[1] != 0)) s++;
*d = *s;
}
*d = 0;
return s2;
}
#endif
/* Put a \ before and Space( ), \ or ' in a string.
* A newly allocated string is returned.
*/