Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
correct FLEXPTR_* example in comment
author
René Scharfe
<l.s.r@web.de>
Sat, 13 Aug 2016 09:01:21 +0000
(11:01 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 14 Aug 2016 02:44:03 +0000
(19:44 -0700)
This section is about "The FLEXPTR_* variants", so use FLEXPTR_ALLOC_STR
in the example.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
8d5b332
)
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 1459f9b87e9d939af3460d3461ad4ec805e1ef29..17918d028a25a19bc4fd55db51b9418b2881b68a 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-803,7
+803,7
@@
extern FILE *fopen_for_writing(const char *path);
* you can do:
*
* struct foo *f;
- * FLEX_ALLOC_STR(f, name, src);
+ * FLEX
PTR
_ALLOC_STR(f, name, src);
*
* and "name" will point to a block of memory after the struct, which will be
* freed along with the struct (but the pointer can be repointed anywhere).