artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
252697d
)
Make a proper lvalue in INC
author
tholo
<tholo@openbsd.org>
Mon, 25 Mar 1996 23:12:10 +0000
(23:12 +0000)
committer
tholo
<tholo@openbsd.org>
Mon, 25 Mar 1996 23:12:10 +0000
(23:12 +0000)
lib/libc/regex/regexec.c
patch
|
blob
|
history
diff --git
a/lib/libc/regex/regexec.c
b/lib/libc/regex/regexec.c
index
82921b3
..
4933408
100644
(file)
--- a/
lib/libc/regex/regexec.c
+++ b/
lib/libc/regex/regexec.c
@@
-82,7
+82,7
@@
static int nope = 0; /* for use in asserts; shuts lint up */
#define SETUP(v) ((v) = 0)
#define onestate long
#define INIT(o, n) ((o) = (unsigned long)1 << (n))
-#define INC(o)
((unsigned long)(o) <<=
1)
+#define INC(o)
((o) = (unsigned long)(o) <<
1)
#define ISSTATEIN(v, o) (((v) & (o)) != 0)
/* some abbreviations; note that some of these know variable names! */
/* do "if I'm here, I can also be there" etc without branches */