if (!prefix) {
continue;
}
- gchar **prefixes = g_strsplit(prefix, ":", -1);
+ gchar **prefixes;
+ prefixes = g_strsplit(prefix, ":", -1);
for (gchar **p = prefixes; *p; p++) {
ctx->build_path_fn(ctx, *p, d.path);
if (debug) {
#include "theme.h"
/* state-machine variables for processing <item></item> */
-static bool in_item = false;
+static bool in_item;
static struct menuitem *current_item;
#define MENUWIDTH (110)
static void
entry(xmlNode *node, char *nodename, char *content, struct menu *menu)
{
- static bool in_root_menu = false;
+ static bool in_root_menu;
if (!nodename) {
return;
static void
traverse(xmlNode *n, struct menu *menu)
{
+ xmlAttr *attr;
+
process_node(n, menu);
- for (xmlAttr *attr = n->properties; attr; attr = attr->next) {
+ for (attr = n->properties; attr; attr = attr->next) {
xml_tree_walk(attr->children, menu);
}
xml_tree_walk(n->children, menu);