diff options
author | harti <harti@FreeBSD.org> | 2005-03-22 08:03:42 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-03-22 08:03:42 +0000 |
commit | 6218a3c3c190c9b7c1cc74eb3e3bc26cd51cbaba (patch) | |
tree | 5e579c29754720db4590d7eef5a57774010521d0 /usr.bin/make/var.h | |
parent | 5865566c6d67c2d3ae3c61d9437621ef0ccada63 (diff) | |
download | FreeBSD-src-6218a3c3c190c9b7c1cc74eb3e3bc26cd51cbaba.zip FreeBSD-src-6218a3c3c190c9b7c1cc74eb3e3bc26cd51cbaba.tar.gz |
Merge struct VarREPattern into struct VarPattern. This will help sorting
out common code.
Patch: 7.156
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/var.h')
-rw-r--r-- | usr.bin/make/var.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/make/var.h b/usr.bin/make/var.h index adce769..bcccc13 100644 --- a/usr.bin/make/var.h +++ b/usr.bin/make/var.h @@ -77,17 +77,14 @@ typedef struct { size_t leftLen; /* Length of string */ char *rhs; /* Replacement string (w/ &'s removed) */ size_t rightLen; /* Length of replacement */ + + regex_t re; + int nsub; + regmatch_t *matches; + int flags; } VarPattern; -typedef struct { - regex_t re; - int nsub; - regmatch_t *matches; - char *replace; - int flags; -} VarREPattern; - typedef Boolean VarModifyProc(const char *, Boolean, struct Buffer *, void *); /* |