2008-10-11 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Sat, 11 Oct 2008 04:50:57 +0000 (04:50 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sat, 11 Oct 2008 04:50:57 +0000 (04:50 -0000)
* src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
for MatchType.

svn path=/trunk/mono/; revision=115506

eglib/ChangeLog
eglib/src/gpattern.c

index 018daf45044990c650982c76c8fc06dea44ade71..0fc7a17c57d9f8935579f711bb6cce60976e3687 100644 (file)
@@ -1,5 +1,8 @@
 2008-10-11  Miguel de Icaza  <miguel@novell.com>
 
+       * src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
+       for MatchType.
+
        * src/gpath.c: Split this one as well.
 
        * src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
index 07fa7a1c59d861965409008455ac2607bc30f62d..84861412e8ae05ac67fd6e84b39bd4ee68ab26a6 100644 (file)
@@ -37,7 +37,8 @@ typedef enum {
        MATCH_LITERAL,
        MATCH_ANYCHAR,
        MATCH_ANYTHING,
-       MATCH_ANYTHING_END
+       MATCH_ANYTHING_END,
+       MATCH_INVALID = -1
 } MatchType;
 
 typedef struct {
@@ -56,7 +57,7 @@ compile_pattern (const gchar *pattern)
        size_t i, len;
        PData *data;
        gchar c;
-       MatchType last = -1;
+       MatchType last = MATCH_INVALID;
        GString *str;
        gboolean free_str;