@matheusbsbs / matheus-bagliano / commits / bbaf458428
Fork 0

Use 'unsigned:1' when we mean boolean options

These options are all strictly boolean (true/false). Its easier to document this implicitly by making their storage type a single bit. There is no compelling memory space reduction reason for this change, it just makes the structure definition slightly more readable. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Sep 18, 2007 at 04:55 UTC bbaf4584286657582a92d5bb4038a5a06654ebb1
1 file changed +6 -6
fetch-pack.h
+6 -6
@@ -4,14 +4,14 @@
4 struct fetch_pack_args
5 {
6 const char *uploadpack;
7 - int quiet;
8 - int keep_pack;
7 int unpacklimit;
10 - int use_thin_pack;
11 - int fetch_all;
12 - int verbose;
8 int depth;
14 - int no_progress;
9 + unsigned quiet:1,
10 + keep_pack:1,
11 + use_thin_pack:1,
12 + fetch_all:1,
13 + verbose:1,
14 + no_progress:1;
15 };
16
17 void setup_fetch_pack(struct fetch_pack_args *args);