mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Cleanup macros
This commit is contained in:
parent
cb37a6e6c1
commit
e9f92330fd
6
third-party/libscan/libscan/macros.h
vendored
6
third-party/libscan/libscan/macros.h
vendored
@ -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)); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user