diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:21:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:21:17 (GMT) |
commit | 5792b6c860810915d62365125cafc6bff096e405 (patch) | |
tree | 066866c023a3fb9e6d0e2cb36a295e9b8f727669 /src/format/format.h | |
parent | 562a56f01cfb81ff7538418dd183aaa53e90b17c (diff) |
Handled Dalvik code definition loading with more care.
Diffstat (limited to 'src/format/format.h')
-rw-r--r-- | src/format/format.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/format/format.h b/src/format/format.h index 09ac07a..8247478 100644 --- a/src/format/format.h +++ b/src/format/format.h @@ -109,9 +109,13 @@ const char * const *g_binary_format_get_source_files(const GBinFormat *, size_t /* Types d'erreurs détectées */ + +#define FMT_ERROR(idx) ((idx << 2) | (0 << 0)) + typedef enum _BinaryFormatError { - BFE_STRUCTURE = ((0 << 2) | (0 << 0)) /* Code non reconnu */ + BFE_SPECIFICATION = FMT_ERROR(0), /* Non respect des specs */ + BFE_STRUCTURE = FMT_ERROR(1) /* Code non reconnu */ } BinaryFormatError; |