aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Mogenet <emogenet@gmail.com>2017-04-30 07:05:09 +0200
committerEmmanuel Mogenet <emogenet@gmail.com>2017-04-30 07:05:09 +0200
commit5cc4c64175b0d092f4eb4ba3e556a1ddf55b440e (patch)
treefaba66ac8acf81021576c3e20da4954136876871 /src
parent1bb2f354151d8d9c5497632656256e7543fdb782 (diff)
downloadghdl-5cc4c64175b0d092f4eb4ba3e556a1ddf55b440e.tar.gz
ghdl-5cc4c64175b0d092f4eb4ba3e556a1ddf55b440e.tar.bz2
ghdl-5cc4c64175b0d092f4eb4ba3e556a1ddf55b440e.zip
Actually match the ghdl format this time
Diffstat (limited to 'src')
-rw-r--r--src/grt/ghwlib.c9
1 files changed, 5 insertions, 4 deletions
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)
{