Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2008-10-11 08:50:57 +0400
committerMiguel de Icaza <miguel@gnome.org>2008-10-11 08:50:57 +0400
commitb1f9f3b7235896427530c7655dc333abf21e9fab (patch)
tree77fc252f64aa34c1346c43e0293e2925230a9801 /eglib
parente01e4415390b2f23d9d1fef53d40de149d888086 (diff)
2008-10-11 Miguel de Icaza <miguel@novell.com>
* src/gpattern.c (compile_pattern): From Unity, use -1 in the enum for MatchType. svn path=/trunk/mono/; revision=115506
Diffstat (limited to 'eglib')
-rw-r--r--eglib/ChangeLog3
-rw-r--r--eglib/src/gpattern.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/eglib/ChangeLog b/eglib/ChangeLog
index 018daf45044..0fc7a17c57d 100644
--- a/eglib/ChangeLog
+++ b/eglib/ChangeLog
@@ -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,
diff --git a/eglib/src/gpattern.c b/eglib/src/gpattern.c
index 07fa7a1c59d..84861412e8a 100644
--- a/eglib/src/gpattern.c
+++ b/eglib/src/gpattern.c
@@ -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;