Re: [PATCH 11/24] untracked cache: load from UNTR index extension
From: Junio C Hamano <hidden> Date: 2016-06-15 23:03:46
Nguyễn Thái Ngọc Duy [off-list ref] writes:
+static int read_one_dir(struct untracked_cache_dir **untracked_,
+ struct read_data *rd)
+{
+#define NEXT(x) \
+ next = data + (x); \
+ if (next > rd->end) \
+ return -1;
Please do not do this, and instead write them at two places they are
used. It is not clear to those who are reading the use sites that
this can break the control flow and return to the caller.