Cleanup macros

This commit is contained in:
simon987 2022-03-05 11:10:06 -05:00
parent cb37a6e6c1
commit e9f92330fd

View File

@ -20,8 +20,10 @@
#undef ABS
#define ABS(a) (((a) < 0) ? -(a) : (a))
#define SHA1_STR_LENGTH 41
#define SHA1_DIGEST_LENGTH 20
#define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
#define SHA1_STR_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1)
#define MD5_STR_LENGTH (MD5_DIGEST_LENGTH * 2 + 1)
#define APPEND_STR_META(doc, keyname, value) \
{meta_line_t *meta_str = malloc(sizeof(meta_line_t) + strlen(value)); \