From 5cc4c64175b0d092f4eb4ba3e556a1ddf55b440e Mon Sep 17 00:00:00 2001 From: Emmanuel Mogenet Date: Sun, 30 Apr 2017 07:05:09 +0200 Subject: Actually match the ghdl format this time --- src/grt/ghwlib.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/grt/ghwlib.c b/src/grt/ghwlib.c index 1b3c4e683..0f7e50224 100644 --- a/src/grt/ghwlib.c +++ b/src/grt/ghwlib.c @@ -1038,9 +1038,10 @@ print_name (struct ghw_hie *hie, int full_names) } putchar (' '); + putchar ('/'); for (i = 0; i < depth; ++i) { - printf ("%s%s", i ? "." : "", buf[i]->name); + printf ("%s%s", i ? "/" : "", buf[i]->name); } putchar (':'); putchar (' '); @@ -1060,8 +1061,9 @@ ghw_disp_hie (struct ghw_handler *h, struct ghw_hie *top) while (1) { - for (i = 0; i < indent; i++) - fputc (' ', stdout); + if (0 == h->flag_full_names) + for (i = 0; i < indent; i++) + fputc (' ', stdout); printf ("%s", ghw_get_hie_name (hie)); switch (hie->kind) @@ -1145,7 +1147,6 @@ ghw_read_eoh (struct ghw_handler *h) return 0; } - int ghw_read_base (struct ghw_handler *h) { -- cgit v1.2.3