Codebase list gtkwave / ddecf55
Imported Upstream version 3.3.94 أحمد المحمودي (Ahmed El-Mahmoudy) 5 years ago
7 changed file(s) with 66 addition(s) and 28 deletion(s). Raw diff Collapse all Expand all
16611661 Added xml2stems Verilator XML to rtlbrowse stems converter
16621662 to distribution. Eventually vermin will be removed.
16631663 Added missing realpath() in udp emission in vermin.
1664 3.3.94 03sep18 Applied ghwlib.c patch for dealing with null ranges.
1665 Added second chance algorithm for find_dumpfile() in case
1666 it fails.
00 ##########################################################################
11
2 GTKWave 3.3.93 Wave Viewer is Copyright (C) 1999-2018 Tony Bybell.
2 GTKWave 3.3.94 Wave Viewer is Copyright (C) 1999-2018 Tony Bybell.
33 Portions of GTKWave are Copyright (C) 1999-2018 Udi Finkelstein.
44 Context support is Copyright (C) 2007-2018 Kermin Elliott Fleming.
55 Trace group support is Copyright (C) 2009-2018 Donald Baltus.
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for gtkwave 3.3.93.
2 # Generated by GNU Autoconf 2.69 for gtkwave 3.3.94.
33 #
44 # Report bugs to <bybell@rocketmail.com>.
55 #
579579 # Identity of this package.
580580 PACKAGE_NAME='gtkwave'
581581 PACKAGE_TARNAME='gtkwave'
582 PACKAGE_VERSION='3.3.93'
583 PACKAGE_STRING='gtkwave 3.3.93'
582 PACKAGE_VERSION='3.3.94'
583 PACKAGE_STRING='gtkwave 3.3.94'
584584 PACKAGE_BUGREPORT='bybell@rocketmail.com'
585585 PACKAGE_URL=''
586586
14041404 # Omit some internal or obsolete options to make the list less imposing.
14051405 # This message is too long to be a string in the A/UX 3.1 sh.
14061406 cat <<_ACEOF
1407 \`configure' configures gtkwave 3.3.93 to adapt to many kinds of systems.
1407 \`configure' configures gtkwave 3.3.94 to adapt to many kinds of systems.
14081408
14091409 Usage: $0 [OPTION]... [VAR=VALUE]...
14101410
14701470
14711471 if test -n "$ac_init_help"; then
14721472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of gtkwave 3.3.93:";;
1473 short | recursive ) echo "Configuration of gtkwave 3.3.94:";;
14741474 esac
14751475 cat <<\_ACEOF
14761476
16291629 test -n "$ac_init_help" && exit $ac_status
16301630 if $ac_init_version; then
16311631 cat <<\_ACEOF
1632 gtkwave configure 3.3.93
1632 gtkwave configure 3.3.94
16331633 generated by GNU Autoconf 2.69
16341634
16351635 Copyright (C) 2012 Free Software Foundation, Inc.
22732273 This file contains any messages produced by compilers while
22742274 running configure, to aid debugging if configure makes a mistake.
22752275
2276 It was created by gtkwave $as_me 3.3.93, which was
2276 It was created by gtkwave $as_me 3.3.94, which was
22772277 generated by GNU Autoconf 2.69. Invocation command line was
22782278
22792279 $ $0 $@
31403140
31413141 # Define the identity of the package.
31423142 PACKAGE='gtkwave'
3143 VERSION='3.3.93'
3143 VERSION='3.3.94'
31443144
31453145
31463146 cat >>confdefs.h <<_ACEOF
1149811498 # report actual input values of CONFIG_FILES etc. instead of their
1149911499 # values after options handling.
1150011500 ac_log="
11501 This file was extended by gtkwave $as_me 3.3.93, which was
11501 This file was extended by gtkwave $as_me 3.3.94, which was
1150211502 generated by GNU Autoconf 2.69. Invocation command line was
1150311503
1150411504 CONFIG_FILES = $CONFIG_FILES
1156411564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1156511565 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1156611566 ac_cs_version="\\
11567 gtkwave config.status 3.3.93
11567 gtkwave config.status 3.3.94
1156811568 configured by $0, generated by GNU Autoconf 2.69,
1156911569 with options \\"\$ac_cs_config\\"
1157011570
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.59)
4 AC_INIT(gtkwave, 3.3.93, bybell@rocketmail.com)
4 AC_INIT(gtkwave, 3.3.94, bybell@rocketmail.com)
55 AC_CONFIG_SRCDIR([src/vcd.c])
66 AM_INIT_AUTOMAKE
77 AC_CONFIG_HEADER([config.h])
77 <key>CFBundleExecutable</key>
88 <string>gtkwave</string>
99 <key>CFBundleGetInfoString</key>
10 <string>3.3.93, (C) 1999-2018 Tony Bybell http://gtkwave.sourceforge.net</string>
10 <string>3.3.94, (C) 1999-2018 Tony Bybell http://gtkwave.sourceforge.net</string>
1111 <key>CFBundleIconFile</key>
1212 <string>gtkwave.icns</string>
1313 <key>CFBundleIdentifier</key>
1717 <key>CFBundlePackageType</key>
1818 <string>APPL</string>
1919 <key>CFBundleShortVersionString</key>
20 <string>3.3.93</string>
20 <string>3.3.94</string>
2121 <key>CFBundleSignature</key>
2222 <string>????</string>
2323 <key>CFBundleVersion</key>
24 <string>3.3.93</string>
24 <string>3.3.94</string>
2525 <key>NSHumanReadableCopyright</key>
2626 <string>Copyright 1999 - 2018 Tony Bybell, GNU General Public License.</string>
2727 <key>LSMinimumSystemVersion</key>
482482 int
483483 ghw_get_range_length (union ghw_range *rng)
484484 {
485 assert(rng); /* scan-view detects possible null pointer dereference here through a convoluted sequence of steps which probably violate what GHW would do*/
485 int res;
486
487 assert (rng != NULL);
486488
487489 switch (rng->kind)
488490 {
489491 case ghdl_rtik_type_i32:
490492 if (rng->i32.dir)
491 return (rng->i32.left - rng->i32.right + 1);
493 res = rng->i32.left - rng->i32.right + 1;
492494 else
493 return (rng->i32.right - rng->i32.left + 1);
495 res = rng->i32.right - rng->i32.left + 1;
496 break;
494497 case ghdl_rtik_type_b2:
495498 if (rng->b2.dir)
496 return (rng->b2.left - rng->b2.right + 1);
499 res = rng->b2.left - rng->b2.right + 1;
497500 else
498 return (rng->b2.right - rng->b2.left + 1);
501 res = rng->b2.right - rng->b2.left + 1;
502 break;
499503 case ghdl_rtik_type_e8:
500504 if (rng->e8.dir)
501 return (rng->e8.left - rng->e8.right + 1);
505 res = rng->e8.left - rng->e8.right + 1;
502506 else
503 return (rng->e8.right - rng->e8.left + 1);
507 res = rng->e8.right - rng->e8.left + 1;
508 break;
504509 default:
505510 fprintf (stderr, "get_range_length: unhandled kind %d\n", rng->kind);
506511 abort ();
507512 }
513 /* The length of a null range is 0. */
514 return (res <= 0) ? 0 : res;
508515 }
509516
510517 /* Create an array subtype using BASE and ranges read from H. */
674681 ph->nbr_units = 0;
675682 else
676683 {
677 unsigned ix; /* was "i", but fails -Wshadow */
684 unsigned j;
678685
679686 if (ghw_read_uleb128 (h, &ph->nbr_units) != 0)
680687 goto err_p32;
681688 ph->units = malloc (ph->nbr_units * sizeof (struct ghw_unit));
682 for (ix = 0; ix < ph->nbr_units; ix++)
689 for (j = 0; j < ph->nbr_units; j++)
683690 {
684 ph->units[ix].name = ghw_read_strid (h);
685 if (ghw_read_lsleb128 (h, &ph->units[ix].val) < 0)
691 ph->units[j].name = ghw_read_strid (h);
692 if (ghw_read_lsleb128 (h, &ph->units[j].val) < 0)
686693 goto err_p32;
687694 }
688695 }
12041211 struct ghw_hie **buf;
12051212 struct ghw_hie **end;
12061213
1207 assert (hie->name); /* scan view complains about possibility of depth=0 below on malloc */
1214 /* HIE must be valid. */
1215 assert (hie->name != NULL);
12081216
12091217 if (0 == full_names)
12101218 {
24222422 #endif
24232423
24242424
2425 char *find_dumpfile(char *orig_save, char *orig_dump, char *this_save)
2425 char *find_dumpfile_2(char *orig_save, char *orig_dump, char *this_save)
24262426 {
24272427 char *synth_nam = NULL;
24282428
24782478 }
24792479
24802480 return(synth_nam);
2481 }
2482
2483
2484 char *find_dumpfile(char *orig_save, char *orig_dump, char *this_save)
2485 {
2486 char *dfile = NULL;
2487
2488 dfile = find_dumpfile_2(orig_save, orig_dump, this_save);
2489 if(!dfile && orig_save && orig_dump)
2490 {
2491 const char *pfx = "/././";
2492 int pfxlen = strlen(pfx);
2493 char *orig_save2 = malloc_2(strlen(orig_save) + pfxlen + 1);
2494 char *orig_dump2 = malloc_2(strlen(orig_dump) + pfxlen + 1);
2495
2496 strcpy(orig_save2, pfx); strcat(orig_save2, orig_save);
2497 strcpy(orig_dump2, pfx); strcat(orig_dump2, orig_dump);
2498
2499 dfile = find_dumpfile_2(orig_save2, orig_dump2, this_save);
2500 if(!dfile)
2501 {
2502 free_2(orig_dump2);
2503 free_2(orig_save2);
2504 }
2505 }
2506
2507 return(dfile);
24812508 }
24822509
24832510 /******************************************************************/