~pixelherodev/c3lib

3006401e489bb449e5eb8e3794a0157336642c3f — Noam Preil 3 months ago 1bc526e
[c3.h] fix packing on linux
1 files changed, 10 insertions(+), 9 deletions(-)

M c3.h
M c3.h => c3.h +10 -9
@@ 1,19 1,12 @@
#ifdef _PLAN9_SOURCE
#pragma pack on
#endif

typedef struct{
	uint32_t index;
	uint32_t length;
} c3string;

#pragma pack off

typedef struct{
	uint32_t version;
	c3string *strings;
	char *chars;
} c3core;

#pragma pack on
typedef union{
	uint32_t node_index;
	uint32_t string_index;


@@ 23,7 16,15 @@ typedef union{
	};
} c3node;

#ifdef _PLAN9_SOURCE
#pragma pack off
#endif

typedef struct{
	uint32_t version;
	c3string *strings;
	char *chars;
} c3core;

typedef struct{
	c3node *nodes;