mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
6
parse.y
6
parse.y
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user