diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-13 18:20:39 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-13 18:22:00 +0300 |
commit | e51232e710dfd32764e2c2d0599df83ab85a9c74 (patch) | |
tree | 5eac93c05cf2fe77d2857a48a9fc55c7bf7e33d0 /src/apk_defines.h | |
parent | 25ff68a87e3264b6dfdc846823d4912b4dd870b2 (diff) | |
download | apk-tools-e51232e710dfd32764e2c2d0599df83ab85a9c74.tar.gz apk-tools-e51232e710dfd32764e2c2d0599df83ab85a9c74.tar.bz2 apk-tools-e51232e710dfd32764e2c2d0599df83ab85a9c74.tar.xz apk-tools-e51232e710dfd32764e2c2d0599df83ab85a9c74.zip |
errors: rewrite the logic how errors are reported
Instead of the dependency oriented logic, switch to print them
for each package or name needed. Might give a bit more readable
errors now. There's still few corner cases that proper error is
not output, which are cought by the test cases.
Diffstat (limited to 'src/apk_defines.h')
-rw-r--r-- | src/apk_defines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apk_defines.h b/src/apk_defines.h index ea4da76..629ca7b 100644 --- a/src/apk_defines.h +++ b/src/apk_defines.h @@ -143,6 +143,9 @@ void *apk_array_resize(void *array, size_t new_size, size_t elem_size); APK_ARRAY(apk_string_array, char *); +#define foreach_array_item(iter, array) \ + for (iter = &(array)->item[0]; iter < &(array)->item[(array)->num]; iter++) + #define LIST_END (void *) 0xe01 #define LIST_POISON1 (void *) 0xdeadbeef #define LIST_POISON2 (void *) 0xabbaabba |