#include "defs.h"
#include <glib.h>
+#include <glib/gi18n.h>
-#include "intl.h"
#include "utils.h"
#include "filtering.h"
#include "matcher.h"
static GSList *matchers_list = NULL;
static MatcherList *cond;
-static gint score = 0;
static GSList *action_list = NULL;
static FilteringAction *action = NULL;
void * matcher_parser_scan_string(const char * str);
-FilteringProp *matcher_parser_get_filtering(const gchar *str)
+FilteringProp *matcher_parser_get_filtering(gchar *str)
{
void *bufstate;
return !(ret % 2);
}
-MatcherList *matcher_parser_get_cond(const gchar *str)
+MatcherList *matcher_parser_get_cond(gchar *str)
{
void *bufstate;
return cond;
}
-GSList *matcher_parser_get_action_list(const gchar *str)
+GSList *matcher_parser_get_action_list(gchar *str)
{
void *bufstate;
return action_list;
}
-MatcherProp *matcher_parser_get_prop(const gchar *str)
+MatcherProp *matcher_parser_get_prop(gchar *str)
{
MatcherList *list;
MatcherProp *prop;
gint criteria = 0;
criteria = MATCHCRITERIA_PARTIAL;
- prop = matcherprop_new(criteria, NULL, MATCHTYPE_MATCH, "SC-Partially-Retrieved", 0);
+ prop = matcherprop_new(criteria, NULL, 0, NULL, 0);
}
| MATCHER_NOT_PARTIAL
{
gint criteria = 0;
criteria = MATCHCRITERIA_NOT_PARTIAL;
- prop = matcherprop_new(criteria, NULL, MATCHTYPE_MATCH, "SC-Partially-Retrieved", 0);
+ prop = matcherprop_new(criteria, NULL, 0, NULL, 0);
}
| MATCHER_COLORLABEL MATCHER_INTEGER
{