Re: [PATCH 6/6] Replace all read_fd use with strbuf_read, and get rid of it.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux