From: Tim-Philipp Müller Date: Sat, 17 Feb 2018 13:06:50 +0000 (+0000) Subject: Fix build with DEBUG defined X-Git-Tag: v1.0.2~18^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c97999ad09f683560bfdf69b4539558401cad41;p=fribidi Fix build with DEBUG defined Move up the struct declaration so we can use it in the DEBUG block. fribidi-bidi.c:264:33: error: unknown type name ‘FriBidiPairingNode’; did you mean ‘FriBidiParType’? static void print_pairing_nodes(FriBidiPairingNode *nodes) --- diff --git a/lib/fribidi-bidi.c b/lib/fribidi-bidi.c index 9d2ce79..873489c 100644 --- a/lib/fribidi-bidi.c +++ b/lib/fribidi-bidi.c @@ -56,6 +56,15 @@ #define RL_BRACKET_TYPE(list) ((list)->bracket_type) #define RL_ISOLATE_LEVEL(list) ((list)->isolate_level) +/* Pairing nodes are used for holding a pair of open/close brackets as + described in BD16. */ +struct _FriBidiPairingNodeStruct { + FriBidiRun *open; + FriBidiRun *close; + struct _FriBidiPairingNodeStruct *next; +}; +typedef struct _FriBidiPairingNodeStruct FriBidiPairingNode; + static FriBidiRun * merge_with_prev ( FriBidiRun *second @@ -392,15 +401,6 @@ fribidi_get_par_direction ( return FRIBIDI_PAR_ON; } -/* Pairing nodes are used for holding a pair of open/close brackets as - described in BD16. */ -struct _FriBidiPairingNodeStruct { - FriBidiRun *open; - FriBidiRun *close; - struct _FriBidiPairingNodeStruct *next; -}; -typedef struct _FriBidiPairingNodeStruct FriBidiPairingNode; - /* Push a new entry to the pairing linked list */ static FriBidiPairingNode * pairing_nodes_push(FriBidiPairingNode *nodes, FriBidiRun *open,