From 579afe49d863e8a91655b6ab8a2c42a380c7129e Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 17 Apr 2013 13:30:38 +0000 Subject: add conf_ignore and move group_make_autogroup to conf_autogroup to match. --- parse.y | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index d93d080..8dc1dd0 100644 --- a/parse.y +++ b/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.39 2013/01/04 16:27:58 okan Exp $ */ +/* $OpenBSD: parse.y,v 1.40 2013/04/17 13:30:38 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -137,16 +137,11 @@ main : FONTNAME STRING { YYERROR; } - group_make_autogroup(conf, $3, $2); + conf_autogroup(conf, $2, $3); free($3); } | IGNORE STRING { - struct winmatch *wm; - - wm = xcalloc(1, sizeof(*wm)); - (void)strlcpy(wm->title, $2, sizeof(wm->title)); - TAILQ_INSERT_TAIL(&conf->ignoreq, wm, entry); - + conf_ignore(conf, $2); free($2); } | BIND STRING string { -- cgit v1.2.3-2-gb3c3