Imported Upstream version 3.3.94
أحمد المحمودي (Ahmed El-Mahmoudy)
5 years ago
1661 | 1661 | Added xml2stems Verilator XML to rtlbrowse stems converter |
1662 | 1662 | to distribution. Eventually vermin will be removed. |
1663 | 1663 | 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. |
0 | 0 | ########################################################################## |
1 | 1 | |
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. | |
3 | 3 | Portions of GTKWave are Copyright (C) 1999-2018 Udi Finkelstein. |
4 | 4 | Context support is Copyright (C) 2007-2018 Kermin Elliott Fleming. |
5 | 5 | Trace group support is Copyright (C) 2009-2018 Donald Baltus. |
0 | 0 | #! /bin/sh |
1 | 1 | # 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. | |
3 | 3 | # |
4 | 4 | # Report bugs to <bybell@rocketmail.com>. |
5 | 5 | # |
579 | 579 | # Identity of this package. |
580 | 580 | PACKAGE_NAME='gtkwave' |
581 | 581 | 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' | |
584 | 584 | PACKAGE_BUGREPORT='bybell@rocketmail.com' |
585 | 585 | PACKAGE_URL='' |
586 | 586 | |
1404 | 1404 | # Omit some internal or obsolete options to make the list less imposing. |
1405 | 1405 | # This message is too long to be a string in the A/UX 3.1 sh. |
1406 | 1406 | 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. | |
1408 | 1408 | |
1409 | 1409 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1410 | 1410 | |
1470 | 1470 | |
1471 | 1471 | if test -n "$ac_init_help"; then |
1472 | 1472 | 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:";; | |
1474 | 1474 | esac |
1475 | 1475 | cat <<\_ACEOF |
1476 | 1476 | |
1629 | 1629 | test -n "$ac_init_help" && exit $ac_status |
1630 | 1630 | if $ac_init_version; then |
1631 | 1631 | cat <<\_ACEOF |
1632 | gtkwave configure 3.3.93 | |
1632 | gtkwave configure 3.3.94 | |
1633 | 1633 | generated by GNU Autoconf 2.69 |
1634 | 1634 | |
1635 | 1635 | Copyright (C) 2012 Free Software Foundation, Inc. |
2273 | 2273 | This file contains any messages produced by compilers while |
2274 | 2274 | running configure, to aid debugging if configure makes a mistake. |
2275 | 2275 | |
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 | |
2277 | 2277 | generated by GNU Autoconf 2.69. Invocation command line was |
2278 | 2278 | |
2279 | 2279 | $ $0 $@ |
3140 | 3140 | |
3141 | 3141 | # Define the identity of the package. |
3142 | 3142 | PACKAGE='gtkwave' |
3143 | VERSION='3.3.93' | |
3143 | VERSION='3.3.94' | |
3144 | 3144 | |
3145 | 3145 | |
3146 | 3146 | cat >>confdefs.h <<_ACEOF |
11498 | 11498 | # report actual input values of CONFIG_FILES etc. instead of their |
11499 | 11499 | # values after options handling. |
11500 | 11500 | 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 | |
11502 | 11502 | generated by GNU Autoconf 2.69. Invocation command line was |
11503 | 11503 | |
11504 | 11504 | CONFIG_FILES = $CONFIG_FILES |
11564 | 11564 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11565 | 11565 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
11566 | 11566 | ac_cs_version="\\ |
11567 | gtkwave config.status 3.3.93 | |
11567 | gtkwave config.status 3.3.94 | |
11568 | 11568 | configured by $0, generated by GNU Autoconf 2.69, |
11569 | 11569 | with options \\"\$ac_cs_config\\" |
11570 | 11570 |
1 | 1 | # Process this file with autoconf to produce a configure script. |
2 | 2 | |
3 | 3 | AC_PREREQ(2.59) |
4 | AC_INIT(gtkwave, 3.3.93, bybell@rocketmail.com) | |
4 | AC_INIT(gtkwave, 3.3.94, bybell@rocketmail.com) | |
5 | 5 | AC_CONFIG_SRCDIR([src/vcd.c]) |
6 | 6 | AM_INIT_AUTOMAKE |
7 | 7 | AC_CONFIG_HEADER([config.h]) |
7 | 7 | <key>CFBundleExecutable</key> |
8 | 8 | <string>gtkwave</string> |
9 | 9 | <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> | |
11 | 11 | <key>CFBundleIconFile</key> |
12 | 12 | <string>gtkwave.icns</string> |
13 | 13 | <key>CFBundleIdentifier</key> |
17 | 17 | <key>CFBundlePackageType</key> |
18 | 18 | <string>APPL</string> |
19 | 19 | <key>CFBundleShortVersionString</key> |
20 | <string>3.3.93</string> | |
20 | <string>3.3.94</string> | |
21 | 21 | <key>CFBundleSignature</key> |
22 | 22 | <string>????</string> |
23 | 23 | <key>CFBundleVersion</key> |
24 | <string>3.3.93</string> | |
24 | <string>3.3.94</string> | |
25 | 25 | <key>NSHumanReadableCopyright</key> |
26 | 26 | <string>Copyright 1999 - 2018 Tony Bybell, GNU General Public License.</string> |
27 | 27 | <key>LSMinimumSystemVersion</key> |
482 | 482 | int |
483 | 483 | ghw_get_range_length (union ghw_range *rng) |
484 | 484 | { |
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); | |
486 | 488 | |
487 | 489 | switch (rng->kind) |
488 | 490 | { |
489 | 491 | case ghdl_rtik_type_i32: |
490 | 492 | if (rng->i32.dir) |
491 | return (rng->i32.left - rng->i32.right + 1); | |
493 | res = rng->i32.left - rng->i32.right + 1; | |
492 | 494 | else |
493 | return (rng->i32.right - rng->i32.left + 1); | |
495 | res = rng->i32.right - rng->i32.left + 1; | |
496 | break; | |
494 | 497 | case ghdl_rtik_type_b2: |
495 | 498 | if (rng->b2.dir) |
496 | return (rng->b2.left - rng->b2.right + 1); | |
499 | res = rng->b2.left - rng->b2.right + 1; | |
497 | 500 | else |
498 | return (rng->b2.right - rng->b2.left + 1); | |
501 | res = rng->b2.right - rng->b2.left + 1; | |
502 | break; | |
499 | 503 | case ghdl_rtik_type_e8: |
500 | 504 | if (rng->e8.dir) |
501 | return (rng->e8.left - rng->e8.right + 1); | |
505 | res = rng->e8.left - rng->e8.right + 1; | |
502 | 506 | else |
503 | return (rng->e8.right - rng->e8.left + 1); | |
507 | res = rng->e8.right - rng->e8.left + 1; | |
508 | break; | |
504 | 509 | default: |
505 | 510 | fprintf (stderr, "get_range_length: unhandled kind %d\n", rng->kind); |
506 | 511 | abort (); |
507 | 512 | } |
513 | /* The length of a null range is 0. */ | |
514 | return (res <= 0) ? 0 : res; | |
508 | 515 | } |
509 | 516 | |
510 | 517 | /* Create an array subtype using BASE and ranges read from H. */ |
674 | 681 | ph->nbr_units = 0; |
675 | 682 | else |
676 | 683 | { |
677 | unsigned ix; /* was "i", but fails -Wshadow */ | |
684 | unsigned j; | |
678 | 685 | |
679 | 686 | if (ghw_read_uleb128 (h, &ph->nbr_units) != 0) |
680 | 687 | goto err_p32; |
681 | 688 | 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++) | |
683 | 690 | { |
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) | |
686 | 693 | goto err_p32; |
687 | 694 | } |
688 | 695 | } |
1204 | 1211 | struct ghw_hie **buf; |
1205 | 1212 | struct ghw_hie **end; |
1206 | 1213 | |
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); | |
1208 | 1216 | |
1209 | 1217 | if (0 == full_names) |
1210 | 1218 | { |
2422 | 2422 | #endif |
2423 | 2423 | |
2424 | 2424 | |
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) | |
2426 | 2426 | { |
2427 | 2427 | char *synth_nam = NULL; |
2428 | 2428 | |
2478 | 2478 | } |
2479 | 2479 | |
2480 | 2480 | 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); | |
2481 | 2508 | } |
2482 | 2509 | |
2483 | 2510 | /******************************************************************/ |