aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-searching-tokenizer.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-02 07:09:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-02 22:35:03 +0800
commit433eac7844481b8ceda0bae8bf08f6bb623185b0 (patch)
treed66a04ad4fa676b4bfce762dee09a82f4434d374 /mail/e-searching-tokenizer.c
parente6c6cbdfb5fd5723ff840b24b29690235be0d74d (diff)
downloadgsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.tar.gz
gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.tar.zst
gsoc2013-evolution-433eac7844481b8ceda0bae8bf08f6bb623185b0.zip
More code cleanup.
Diffstat (limited to 'mail/e-searching-tokenizer.c')
-rw-r--r--mail/e-searching-tokenizer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/e-searching-tokenizer.c b/mail/e-searching-tokenizer.c
index 277e80ca19..ed4a01c4c5 100644
--- a/mail/e-searching-tokenizer.c
+++ b/mail/e-searching-tokenizer.c
@@ -97,7 +97,7 @@ loop:
static const gchar *ignored_tags[] = {
"B", "I", "FONT", "TT", "EM", /* and more? */};
-static int
+static gint
ignore_tag (const gchar *tag)
{
gchar *t = alloca(strlen(tag)+1), c, *out;
@@ -533,7 +533,7 @@ output_match(struct _searcher *s, guint start, guint end)
/* output highlight/bold */
if (s->flags & SEARCH_BOLD) {
- sprintf(b, "%c<b>", (char)TAG_ESCAPE);
+ sprintf(b, "%c<b>", (gchar)TAG_ESCAPE);
append_token(&s->output, b, -1);
}
if (s->tags)
@@ -561,7 +561,7 @@ output_match(struct _searcher *s, guint start, guint end)
/* and close bold if we need to */
if (s->flags & SEARCH_BOLD) {
- sprintf(b, "%c</b>", (char)TAG_ESCAPE);
+ sprintf(b, "%c</b>", (gchar)TAG_ESCAPE);
append_token(&s->output, b, -1);
}
}
@@ -578,7 +578,7 @@ output_subpending (struct _searcher *s)
}
/* returns true if a merge took place */
-static int
+static gint
merge_subpending (struct _searcher *s, gint offstart, gint offend)
{
gint i;
@@ -771,7 +771,7 @@ searcher_peek_token(struct _searcher *s)
return tok;
}
-static int
+static gint
searcher_pending (struct _searcher *s)
{
return !(e_dlist_empty(&s->input) && e_dlist_empty(&s->output));