-/* $OpenBSD: wsfont.c,v 1.38 2014/12/13 21:05:33 doug Exp $ */
+/* $OpenBSD: wsfont.c,v 1.39 2015/01/11 13:00:05 deraadt Exp $ */
/* $NetBSD: wsfont.c,v 1.17 2001/02/07 13:59:24 ad Exp $ */
/*-
u_short cookie;
u_short flg;
};
-TAILQ_HEAD(, font) list;
+TAILQ_HEAD(, font) fontlist;
/* Our list of built-in fonts */
static struct font builtin_fonts[] = {
s = splhigh();
- TAILQ_FOREACH(ent, &list, chain)
+ TAILQ_FOREACH(ent, &fontlist, chain)
if (cb(cbarg, ent->font) != 0)
break;
return;
again = 1;
- TAILQ_INIT(&list);
+ TAILQ_INIT(&fontlist);
for (i = 0; i < nitems(builtin_fonts); i++) {
- TAILQ_INSERT_TAIL(&list, &builtin_fonts[i], chain);
+ TAILQ_INSERT_TAIL(&fontlist, &builtin_fonts[i], chain);
}
}
{
struct font *ent;
- TAILQ_FOREACH(ent, &list, chain)
+ TAILQ_FOREACH(ent, &fontlist, chain)
if (ent->cookie == cookie)
return (ent);
s = splhigh();
- TAILQ_FOREACH(ent, &list, chain) {
+ TAILQ_FOREACH(ent, &fontlist, chain) {
if (height != 0 && ent->font->fontheight != height)
continue;
}
/* Now link into the list and return */
- TAILQ_INSERT_TAIL(&list, ent, chain);
+ TAILQ_INSERT_TAIL(&fontlist, ent, chain);
splx(s);
return (0);
}