El 10/9/2007, a las 11:04, Pierre Habouzit escribió:
I also think about extending strbuf_init the same way (this time
with
a size_t), and if the second argument is non zero, then it performs a
strbuf_grow(...) of that size, because we often have:
strbuf_init(&sb);
strbuf_grow(&sb, size_hint);
and it's definitely better to read:
strbuf_init(&sb, size_hint);
Agreed that the latter reads better.
Cheers,
Wincent
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html