projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5201e89
)
[REG_UNSET_VALUE]: Define to the address of a static variable rather than to
author
Jim Meyering
<jim@meyering.net>
Sun, 11 Dec 1994 23:16:11 +0000
(23:16 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 11 Dec 1994 23:16:11 +0000
(23:16 +0000)
((char *) -1). The latter got a warning on IRIX64.
regex.c
patch
|
blob
|
history
diff --git
a/regex.c
b/regex.c
index
fe527dd
..
2d291b3
100644
(file)
--- a/
regex.c
+++ b/
regex.c
@@
-1251,7
+1251,8
@@
typedef union
/* Registers are set to a sentinel when they haven't yet matched. */
-#define REG_UNSET_VALUE ((char *) -1)
+static char reg_unset_dummy;
+#define REG_UNSET_VALUE (®_unset_dummy)
#define REG_UNSET(e) ((e) == REG_UNSET_VALUE)