diff options
author | harti <harti@FreeBSD.org> | 2005-03-22 08:09:43 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-03-22 08:09:43 +0000 |
commit | 3c9bfe335d9419a4ad3c3a421f257181f4d52eb7 (patch) | |
tree | 2928eac9994bbeb076396678860352f6bee073f0 /usr.bin/make/var.h | |
parent | 9c7887893bf5a1122ab81fa7a1a93f6f8934b3e3 (diff) | |
download | FreeBSD-src-3c9bfe335d9419a4ad3c3a421f257181f4d52eb7.zip FreeBSD-src-3c9bfe335d9419a4ad3c3a421f257181f4d52eb7.tar.gz |
Return a Buf object from VarGetPattern() instead of a char * and a size_t.
Store a Buf object in struct VarPattern instead of a char * and a length.
Patch: 7.158
Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/var.h')
-rw-r--r-- | usr.bin/make/var.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/make/var.h b/usr.bin/make/var.h index bcccc13..3128b2b 100644 --- a/usr.bin/make/var.h +++ b/usr.bin/make/var.h @@ -73,10 +73,8 @@ typedef struct Var { #define VAR_MATCH_END 0x10 /* Match at end of word */ typedef struct { - char *lhs; /* String to match */ - size_t leftLen; /* Length of string */ - char *rhs; /* Replacement string (w/ &'s removed) */ - size_t rightLen; /* Length of replacement */ + struct Buffer *lhs; /* String to match */ + struct Buffer *rhs; /* Replacement string (w/ &'s removed) */ regex_t re; int nsub; |