1*6ca2c52aSchristos /* This file is part of the program psim. 2*6ca2c52aSchristos 3*6ca2c52aSchristos Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au> 4*6ca2c52aSchristos 5*6ca2c52aSchristos This program is free software; you can redistribute it and/or modify 6*6ca2c52aSchristos it under the terms of the GNU General Public License as published by 7*6ca2c52aSchristos the Free Software Foundation; either version 3 of the License, or 8*6ca2c52aSchristos (at your option) any later version. 9*6ca2c52aSchristos 10*6ca2c52aSchristos This program is distributed in the hope that it will be useful, 11*6ca2c52aSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 12*6ca2c52aSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*6ca2c52aSchristos GNU General Public License for more details. 14*6ca2c52aSchristos 15*6ca2c52aSchristos You should have received a copy of the GNU General Public License 16*6ca2c52aSchristos along with this program; if not, see <http://www.gnu.org/licenses/>. 17*6ca2c52aSchristos 18*6ca2c52aSchristos */ 19*6ca2c52aSchristos 20*6ca2c52aSchristos 21*6ca2c52aSchristos typedef struct _filter filter; 22*6ca2c52aSchristos 23*6ca2c52aSchristos 24*6ca2c52aSchristos /* append the filter onto the end of the list */ 25*6ca2c52aSchristos 26*6ca2c52aSchristos extern filter *new_filter 27*6ca2c52aSchristos (const char *filt, 28*6ca2c52aSchristos filter *filters); 29*6ca2c52aSchristos 30*6ca2c52aSchristos 31*6ca2c52aSchristos /* returns true if the flags are non empty and some are missing from the filter list */ 32*6ca2c52aSchristos 33*6ca2c52aSchristos extern int is_filtered_out 34*6ca2c52aSchristos (const char *flags, 35*6ca2c52aSchristos filter *filters); 36*6ca2c52aSchristos 37*6ca2c52aSchristos /* true if the flag is in the list */ 38*6ca2c52aSchristos 39*6ca2c52aSchristos extern int it_is 40*6ca2c52aSchristos (const char *flag, 41*6ca2c52aSchristos const char *flags); 42*6ca2c52aSchristos 43