Small improvement to cpio

This commit is contained in:
topjohnwu
2017-09-07 19:22:30 +08:00
parent cd5f5d702f
commit 7e65296470
5 changed files with 34 additions and 50 deletions

View File

@@ -32,4 +32,6 @@ struct vector *vec_dup(struct vector *v);
e = v ? (v)->data[(v)->size - 1] : NULL; \
for (size_t _ = (v)->size; v && _ > 0; --_, e = (v)->data[_ - 1])
#define vec_cur(v) vec_entry(v)[_]
#endif