From 4c97999ad09f683560bfdf69b4539558401cad41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 17 Feb 2018 13:06:50 +0000 Subject: [PATCH] Fix build with DEBUG defined MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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) --- lib/fribidi-bidi.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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, -- 2.40.0