Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.

makes the code a lot simpler. While here rearrange the font handling functions
to be less shit.

ok and help okan@.
This commit is contained in:
oga
2008-06-15 02:47:46 +00:00
parent 96d7310b4a
commit 07cd0b1ac5
8 changed files with 56 additions and 222 deletions

View File

@@ -103,11 +103,7 @@ main : FONTNAME STRING {
if (conf->DefaultFontName != NULL &&
conf->DefaultFontName != DEFAULTFONTNAME)
free(conf->DefaultFontName);
if ((conf->DefaultFontName = xstrdup($2)) == NULL) {
free($2);
yyerror("string: asprintf");
YYERROR;
}
conf->DefaultFontName = xstrdup($2);
free($2);
}
| STICKY yesno {