SyncMacros.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CCN_SyncMacros
00022 #define CCN_SyncMacros
00023
00024 #define SYNC_VERSION 20110614
00025 #define SLICE_VERSION 20110614
00026
00027 #define DEFAULT_HASH_BYTES 32
00028 #define MAX_HASH_BYTES (DEFAULT_HASH_BYTES + sizeof(uintmax_t))
00029 #define MAX_NAME_BYTES (24*1024*1024 - 1)
00030 #define MAX_NREFS 256
00031
00032 #define NEW_ANY(N, T) ((T *) calloc(N, sizeof(T)))
00033 #define NEW_STRUCT(N, S) ((struct S *) calloc(N, sizeof(struct S)))
00034
00035 #define SET_SYNC_ERR(base, code) SetSyncErrInner(base, code, __FILE__ , __LINE__)
00036
00037 #endif