From 59e9d4ca3bf14281329a9de62fa3f90205138796 Mon Sep 17 00:00:00 2001 From: luigi Date: Mon, 18 Apr 2016 11:52:24 +0000 Subject: [PATCH] more detailed message (HH) git-svn-id: https://foundry.supelec.fr/svn/luatex/trunk@5943 0b2b3880-5936-4365-a048-eb17d2e5a6bf --- source/texk/web2c/luatexdir/tex/texnodes.h | 2 +- source/texk/web2c/luatexdir/tex/texnodes.w | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/source/texk/web2c/luatexdir/tex/texnodes.h b/source/texk/web2c/luatexdir/tex/texnodes.h index 4db62bf61..93670b7f5 100644 --- a/source/texk/web2c/luatexdir/tex/texnodes.h +++ b/source/texk/web2c/luatexdir/tex/texnodes.h @@ -654,7 +654,7 @@ typedef enum { word_boundary, } boundary_subtypes ; -# define boundary_size 3 +# define boundary_node_size 3 # define boundary_value(a) vinfo((a)+2) # define special_node_size 3 diff --git a/source/texk/web2c/luatexdir/tex/texnodes.w b/source/texk/web2c/luatexdir/tex/texnodes.w index 4cbd0c00b..df7de17db 100644 --- a/source/texk/web2c/luatexdir/tex/texnodes.w +++ b/source/texk/web2c/luatexdir/tex/texnodes.w @@ -330,7 +330,7 @@ node_info node_data[] = { /* the last entry in a row is the etex number */ { ins_node, ins_node_size, node_fields_insert, "ins", 4 }, { mark_node, mark_node_size, node_fields_mark, "mark", 5 }, { adjust_node, adjust_node_size, node_fields_adjust, "adjust", 6 }, - { boundary_node, boundary_size, node_fields_boundary, "boundary", -1 }, + { boundary_node, boundary_node_size, node_fields_boundary, "boundary", -1 }, { disc_node, disc_node_size, node_fields_disc, "disc", 8 }, { whatsit_node, -1, NULL, "whatsit", 9 }, { local_par_node, local_par_size, node_fields_local_par, "local_par", -1 }, @@ -626,7 +626,13 @@ static int test_count = 1; #define check_action_ref(a) { dorangetest(p,a,var_mem_max); } #define check_attribute_ref(a) { dorangetest(p,a,var_mem_max); } -#define check_token_ref(a) { confusion("fuzzy token cleanup in node"); } +#define check_token_ref(a) { \ + if (type(p) == whatsit_node) { \ + formatted_error("nodes","fuzzy token cleanup in whatsit node with id %i and subtype %i",type(p),subtype(p)); \ + } else { \ + formatted_error("nodes","fuzzy token cleanup in node with id %i",type(p)); \ + } \ +} #ifdef CHECK_NODE_USAGE -- 2.11.4.GIT