mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
hg: move defines out of struct definition in cdatapack.c
Summary: The current location of these defines is really odd and does not work with the current version of `PACKEDSTRUCT` macro expansion (it expands everything in the same line, therefore `#defines` are inline, which fails to compile. Reviewed By: quark-zju Differential Revision: D6970926 fbshipit-source-id: ed01042760fa729004e159b492cf67a4afd25923
This commit is contained in:
parent
7d4f6a9033
commit
5d1139f87d
@ -49,6 +49,8 @@
|
||||
#include "lib/clib/portability/unistd.h"
|
||||
|
||||
#define MAX_PAGED_IN_DATAPACK (1024 * 1024 * 1024)
|
||||
#define VERSION 0
|
||||
#define LARGE_FANOUT 0x80
|
||||
|
||||
/**
|
||||
* This is an exact representation of an index entry on disk. Do not consume
|
||||
@ -96,10 +98,7 @@ typedef struct _pack_chain_t {
|
||||
* consume the fields directly, as they may need processing.
|
||||
*/
|
||||
PACKEDSTRUCT(typedef struct _disk_index_header_t {
|
||||
#define VERSION 0
|
||||
uint8_t version;
|
||||
|
||||
#define LARGE_FANOUT 0x80
|
||||
uint8_t config;
|
||||
}) disk_index_header_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user