27#if defined(HAVE_GETTEXT) && defined(ENABLE_NLS)
29#define _(s) gettext(s)
33#define nls_init() (void)0
38# define __STDC_FORMAT_MACROS
43typedef unsigned char uint8_t ;
44typedef unsigned long int uint32_t, uintptr_t;
45typedef signed char int8_t ;
46typedef signed long int int32_t ;
53# define __ATTRIBUTE__ __attribute__
55# define __ATTRIBUTE__(x)
60#elif HAVE_NETINET_IN_H
61#include <netinet/in.h>
63# include <arpa/inet.h>
67static inline uint32_t ntohl(uint32_t a) {
68 return (a << 24) + ((a & 0xFF00) << 8) + ((a >> 8) & 0xFF00) + (a >> 24) ;
72#ifndef HAVE_STRCASECMP
73#define strcasecmp strcmp
79#define xcfBE(a) ( ((uint32_t)xcf_file[(a) ] << 24) + \
80 ((uint32_t)xcf_file[(a)+1] << 16) + \
81 ((uint32_t)xcf_file[(a)+2] << 8 ) + \
82 ((uint32_t)xcf_file[(a)+3] ) )
83#define xcfLE(a) ( ((uint32_t)xcf_file[(a) ] ) + \
84 ((uint32_t)xcf_file[(a)+1] << 8 ) + \
85 ((uint32_t)xcf_file[(a)+2] << 16) + \
86 ((uint32_t)xcf_file[(a)+3] << 24) )
88#if defined(CAN_DO_UNALIGNED_WORDS)
89# define xcfL(a) ntohl(*(uint32_t *)(xcf_file + (a)))
91# define xcfL(a) ((a) & 3 ? xcfBE(a) : ntohl(*(uint32_t *)(xcf_file + (a))))
107#define XCF_PTR_EMPTY 0
133#define isSubrect(A,B) \
134 ((A).l >= (B).l && (A).r <= (B).r && (A).t >= (B).t && (A).b <= (B).b)
135#define disjointRects(A,B) \
136 ((A).l >= (B).r || (A).r <= (B).l || (A).t >= (B).b || (A).b <= (B).t)
147int xcfOffset(uint32_t addr,
int spaceafter, uint32_t* apparent);
150const
char*
xcfString(uint32_t ptr,uint32_t *after);
154#define TILE_WIDTH (1<<TILE_SHIFT)
155#define TILE_HEIGHT (1<<TILE_SHIFT)
161#define TILE_LEFT(x) ((x) & -TILE_WIDTH)
162#define TILE_TOP(y) ((y) & -TILE_HEIGHT)
163#define TILE_NUM(x) ((x) >> TILE_SHIFT)
XcfCompressionType compression
GimpLayerModeEffects mode
struct tileDimensions dim
const struct _convertParams * params