summaryrefslogtreecommitdiff
path: root/usr.bin/make/nonints.h
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2009-01-17 13:29:37 +0000
committerdsl <dsl@NetBSD.org>2009-01-17 13:29:37 +0000
commit462d090d0f748eb6ce53359df0b97e2ddefe2ade (patch)
tree950b659773eaa3f3934efccd205e37e9edcaa978 /usr.bin/make/nonints.h
parentecef5ef3032b984a39dede3a6b195ec3c0ece5ff (diff)
Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure. Buf_Init() now takes ptr to Buffer to initialiase. Change Buf_Destroy() to return ptr to string when not freed. Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here. Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'. Keep 'count' not 'left' and 'inPtr', code is simplier with only one update. Fix fallou, no functional change.
Diffstat (limited to 'usr.bin/make/nonints.h')
-rw-r--r--usr.bin/make/nonints.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/nonints.h b/usr.bin/make/nonints.h
index cb2098b7d28..f60d3f67676 100644
--- a/usr.bin/make/nonints.h
+++ b/usr.bin/make/nonints.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.52 2009/01/13 18:22:34 dsl Exp $ */
+/* $NetBSD: nonints.h,v 1.53 2009/01/17 13:29:37 dsl Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -151,7 +151,7 @@ char **brk_string(const char *, int *, Boolean, char **);
char *Str_FindSubstring(const char *, const char *);
int Str_Match(const char *, const char *);
char *Str_SYSVMatch(const char *, const char *, int *len);
-void Str_SYSVSubst(Buffer, char *, char *, int);
+void Str_SYSVSubst(Buffer *, char *, char *, int);
/* suff.c */
void Suff_ClearSuffixes(void);