Codebase list gtkwave / upstream/3.3.26
Imported Upstream version 3.3.26 أحمد المحمودي (Ahmed El-Mahmoudy) 12 years ago
26 changed file(s) with 145 addition(s) and 108 deletion(s). Raw diff Collapse all Expand all
10371037 Added custom filters to GtkFileChooser dialogue.
10381038 Fix in lxt2_read.c/.h for negative msb/lsb indices.
10391039 Fix in vzt_read.c/.h for negative msb/lsb indices.
1040 3.3.26 25sep11 Mac OSX fixes: removed restrictions for twinwave on OSX,
1041 OSX compile fixes for Tcl detection, printf warning
1042 fixes (xcode gcc uses stricter warnings).
1043 More generic warning fixes from recent feature adds.
100100 -140409ajb bybell@nc.rr.com
101101
102102 ===============================================================================
103
104 Note for Mac OSX users:
105
106 ./configure --prefix=/opt/local --enable-judy --enable-struct-pack CFLAGS=-I/opt/local/include -O2 -g LDFLAGS=-L/opt/local/lib --no-create --no-recursion
107
108 Install the Judy and lzma/xz packages in MacPorts.
109 Tcl works on OSX as of 3.3.26. At this point all features working on Linux
110 should be functional on the Mac.
111
112 -260911ajb bybell@nc.rr.com
113
114 ===============================================================================
00 ##########################################################################
11
2 GTKWave 3.3.25 Wave Viewer is Copyright (C) 1999-2011 Tony Bybell.
2 GTKWave 3.3.26 Wave Viewer is Copyright (C) 1999-2011 Tony Bybell.
33 Portions of GTKWave are Copyright (C) 1999-2011 Udi Finkelstein.
44 Context support is Copyright (C) 2007-2011 Kermin Elliott Fleming.
55 Trace group support is Copyright (C) 2009-2011 Donald Baltus.
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for gtkwave 3.3.25.
2 # Generated by GNU Autoconf 2.59 for gtkwave 3.3.26.
33 #
44 # Report bugs to <bybell@nc.rr.com>.
55 #
268268 # Identity of this package.
269269 PACKAGE_NAME='gtkwave'
270270 PACKAGE_TARNAME='gtkwave'
271 PACKAGE_VERSION='3.3.25'
272 PACKAGE_STRING='gtkwave 3.3.25'
271 PACKAGE_VERSION='3.3.26'
272 PACKAGE_STRING='gtkwave 3.3.26'
273273 PACKAGE_BUGREPORT='bybell@nc.rr.com'
274274
275275 ac_unique_file="src/vcd.c"
791791 # Omit some internal or obsolete options to make the list less imposing.
792792 # This message is too long to be a string in the A/UX 3.1 sh.
793793 cat <<_ACEOF
794 \`configure' configures gtkwave 3.3.25 to adapt to many kinds of systems.
794 \`configure' configures gtkwave 3.3.26 to adapt to many kinds of systems.
795795
796796 Usage: $0 [OPTION]... [VAR=VALUE]...
797797
853853
854854 if test -n "$ac_init_help"; then
855855 case $ac_init_help in
856 short | recursive ) echo "Configuration of gtkwave 3.3.25:";;
856 short | recursive ) echo "Configuration of gtkwave 3.3.26:";;
857857 esac
858858 cat <<\_ACEOF
859859
10071007 test -n "$ac_init_help" && exit 0
10081008 if $ac_init_version; then
10091009 cat <<\_ACEOF
1010 gtkwave configure 3.3.25
1010 gtkwave configure 3.3.26
10111011 generated by GNU Autoconf 2.59
10121012
10131013 Copyright (C) 2003 Free Software Foundation, Inc.
10211021 This file contains any messages produced by compilers while
10221022 running configure, to aid debugging if configure makes a mistake.
10231023
1024 It was created by gtkwave $as_me 3.3.25, which was
1024 It was created by gtkwave $as_me 3.3.26, which was
10251025 generated by GNU Autoconf 2.59. Invocation command line was
10261026
10271027 $ $0 $@
16651665
16661666 # Define the identity of the package.
16671667 PACKAGE='gtkwave'
1668 VERSION='3.3.25'
1668 VERSION='3.3.26'
16691669
16701670
16711671 cat >>confdefs.h <<_ACEOF
1227212272 fi
1227312273 fi
1227412274 else
12275 if test "X$OSTYPE" = "Xdarwin" ; then
12276 # skip Tcl_CreateInterp check on darwin (until we figure out)...
12277 if test "X$STUBIFY" = "Xyes" ; then
12278 TCL_DEFADD="-DHAVE_LIBTCL -DWAVE_TCL_STUBIFY -DUSE_TCL_STUBS -DUSE_TK_STUBS"
12279 TCL_LDADD="${TCL_STUB_LIB_SPEC}"
12280 TK_LDADD="${TK_STUB_LIB_SPEC}"
12281 else
12282 TCL_DEFADD="-DHAVE_LIBTCL"
12283 TCL_LDADD="${TCL_LIB_SPEC}"
12284 TK_LDADD="${TK_LIB_SPEC}"
12285 fi
12286 else
1227512287 if test "X$OSTYPE" = "Xmsys" ; then
12276 # skip Tcl_CreateInterp check on MingW (until we figure out)...
12288 # skip Tcl_CreateInterp check on mingw (until we figure out)...
1227712289 if test "X$STUBIFY" = "Xyes" ; then
1227812290 TCL_DEFADD="-DHAVE_LIBTCL -DWAVE_TCL_STUBIFY -DUSE_TCL_STUBS -DUSE_TK_STUBS"
1227912291 TCL_LDADD="${TCL_STUB_LIB_SPEC}"
1237612388 fi
1237712389 fi
1237812390 LDFLAGS="${OLD_LDFLAGS}"
12391 fi
1237912392 fi
1238012393 fi
1238112394 fi
1286112874 } >&5
1286212875 cat >&5 <<_CSEOF
1286312876
12864 This file was extended by gtkwave $as_me 3.3.25, which was
12877 This file was extended by gtkwave $as_me 3.3.26, which was
1286512878 generated by GNU Autoconf 2.59. Invocation command line was
1286612879
1286712880 CONFIG_FILES = $CONFIG_FILES
1292412937
1292512938 cat >>$CONFIG_STATUS <<_ACEOF
1292612939 ac_cs_version="\\
12927 gtkwave config.status 3.3.25
12940 gtkwave config.status 3.3.26
1292812941 configured by $0, generated by GNU Autoconf 2.59,
1292912942 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1293012943
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.59)
4 AC_INIT(gtkwave, 3.3.25, bybell@nc.rr.com)
4 AC_INIT(gtkwave, 3.3.26, bybell@nc.rr.com)
55 AC_CONFIG_SRCDIR([src/vcd.c])
66 AM_INIT_AUTOMAKE
77 AC_CONFIG_HEADER([config.h])
593593 fi
594594 fi
595595 else
596 if test "X$OSTYPE" = "Xdarwin" ; then
597 # skip Tcl_CreateInterp check on darwin (until we figure out)...
598 if test "X$STUBIFY" = "Xyes" ; then
599 TCL_DEFADD="-DHAVE_LIBTCL -DWAVE_TCL_STUBIFY -DUSE_TCL_STUBS -DUSE_TK_STUBS"
600 TCL_LDADD="${TCL_STUB_LIB_SPEC}"
601 TK_LDADD="${TK_STUB_LIB_SPEC}"
602 else
603 TCL_DEFADD="-DHAVE_LIBTCL"
604 TCL_LDADD="${TCL_LIB_SPEC}"
605 TK_LDADD="${TK_LIB_SPEC}"
606 fi
607 else
596608 if test "X$OSTYPE" = "Xmsys" ; then
597 # skip Tcl_CreateInterp check on MingW (until we figure out)...
609 # skip Tcl_CreateInterp check on mingw (until we figure out)...
598610 if test "X$STUBIFY" = "Xyes" ; then
599611 TCL_DEFADD="-DHAVE_LIBTCL -DWAVE_TCL_STUBIFY -DUSE_TCL_STUBS -DUSE_TK_STUBS"
600612 TCL_LDADD="${TCL_STUB_LIB_SPEC}"
625637 fi
626638 fi
627639 LDFLAGS="${OLD_LDFLAGS}"
640 fi
628641 fi
629642 fi
630643 fi
3737 #include "generic.h"
3838 #include "dlgdef.h"
3939
40 /* OSX warning fix */
41 #define GR_INT int
42
4043 /* char is only thing that is pretty much always known == 8 bits
4144 * This allows output of antlr (set stuff, anyway) to be androgynous (portable)
4245 */
575578 fprintf(ErrFile, "SetWordType %s%s[%d] = {",
576579 name,
577580 suffix,
578 NumWords(TokenNum-1)*sizeof(unsigned));
581 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
579582 }
580583 else {
581584 fprintf(ErrFile, "SetWordType zzerr%d[%d] = {",
582585 esetnum,
583 NumWords(TokenNum-1)*sizeof(unsigned));
586 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
584587 }
585588 while ( p < endp )
586589 {
641644
642645 if ( name!=NULL ) {
643646 fprintf(Parser_h, "\tstatic SetWordType %s%s[%d];\n", name, suffix,
644 NumWords(TokenNum-1)*sizeof(unsigned));
647 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
645648 fprintf(Parser_c, "SetWordType %s::%s%s[%d] = {",
646649 CurrentClassName,
647650 name,
648651 suffix,
649 NumWords(TokenNum-1)*sizeof(unsigned));
652 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
650653 }
651654 else {
652655 fprintf(Parser_c, "SetWordType %s::err%d[%d] = {",
653656 CurrentClassName,
654657 esetnum,
655 NumWords(TokenNum-1)*sizeof(unsigned));
658 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
656659 fprintf(Parser_h, "\tstatic SetWordType err%d[%d];\n", esetnum,
657 NumWords(TokenNum-1)*sizeof(unsigned));
660 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
658661 }
659662
660663 while ( p < endp )
792795 OutputLL_k,
793796 FoundGuessBlk,
794797 DemandLookahead,
795 NumWords(TokenNum-1)*sizeof(unsigned));
798 (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
796799 fprintf(Parser_c, "{\n");
797800 fprintf(Parser_c, "\ttoken_tbl = _token_tbl;\n");
798801 if (TraceGen) {
911914 #ifdef DUM
912915 if ( LexGen ) fprintf(ErrFile, "#define zzEOF_TOKEN %d\n", (TokenInd!=NULL?TokenInd[EofToken]:EofToken));
913916 #endif
914 fprintf(ErrFile, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned));
917 fprintf(ErrFile, "#define zzSET_SIZE %d\n", (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
915918 if ( DemandLookahead ) fprintf(ErrFile, "#define DEMAND_LOOK\n");
916919 fprintf(ErrFile, "#include \"antlr.h\"\n");
917920 if ( GenAST ) fprintf(ErrFile, "#include \"ast.h\"\n");
3838 #include "hash.h"
3939 #include "generic.h"
4040 #include "dlgdef.h"
41
42 /* OSX warning fix */
43 #define GR_INT int
4144
4245 #define NumExprPerLine 4
4346 static int on1line=0;
39103913 }
39113914 #endif
39123915 /* ###WARNING: This will have to change when SetWordSize changes */
3913 if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned));
3916 if ( !GenCC ) _gen1("#define zzSET_SIZE %d\n", (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
39143917 if (TraceGen) {
39153918 _gen("#ifndef zzTRACE_RULES\n"); /* MR20 */
39163919 _gen("#define zzTRACE_RULES\n"); /* MR20 */
41244127 if ( LexGen ) fprintf(f, "#define zzEOF_TOKEN %d\n", (TokenInd!=NULL?TokenInd[EofToken]:EofToken));
41254128 #endif
41264129 /* ###WARNING: This will have to change when SetWordSize changes */
4127 fprintf(f, "#define zzSET_SIZE %d\n", NumWords(TokenNum-1)*sizeof(unsigned));
4130 fprintf(f, "#define zzSET_SIZE %d\n", (GR_INT)(NumWords(TokenNum-1)*sizeof(unsigned)));
41284131 if (TraceGen) {
41294132 fprintf(f,"#ifndef zzTRACE_RULES\n"); /* MR20 */
41304133 fprintf(f,"#define zzTRACE_RULES\n"); /* MR20 */
4141 #endif
4242 #include <string.h>
4343
44 /* OSX warning fix */
45 #define GR_INT int
4446
4547 #define StrSame 0
4648 #define fatal(err) \
140142
141143 if ( q != NULL && low==0 ) low = p-table;
142144 len = 0;
143 if ( q != NULL ) fprintf(stderr, "[%d]", p-table);
145 if ( q != NULL ) fprintf(stderr, "[%d]", (GR_INT)(p-table));
144146 while ( q != NULL )
145147 {
146148 len++;
5454 /* make arg1 a set big enough to hold max elem # of arg2 */
5555 #define set_new(a,_max) \
5656 if (((a).setword=(unsigned *)calloc(NumWords(_max),BytesPerWord))==NULL) \
57 fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", _max); \
57 fprintf(stderr, "set_new: Cannot allocate set with max of %d\n", (int)(_max)); \
5858 (a).n = NumWords(_max);
5959
6060 #define set_free(a) \
5151
5252
5353 static
54 gboolean filter_edit_cb (GtkWidget *widget, GdkEventKey *ev, gpointer *data)
54 void filter_edit_cb (GtkWidget *widget, GdkEventKey *ev, gpointer *data)
5555 {
5656 const char *t;
5757 gchar *folder_filename;
644644 if (n->extvals)
645645 printf (" ext: %d - %d\n", n->msi, n->lsi);
646646 for (h = &n->head; h; h = h->next)
647 printf (" time:"GHWLLD" flags:%02x vect:%p\n",
647 printf (" time:"TTFormat" flags:%02x vect:%p\n",
648648 h->time, h->flags, h->v.h_vector);
649649 }
650650 }
11481148
11491149 GLOBALS->is_ghw = 1;
11501150
1151 fprintf(stderr, "["GHWLLD"] start time.\n["GHWLLD"] end time.\n", GLOBALS->min_time*GLOBALS->time_scale, GLOBALS->max_time*GLOBALS->time_scale);
1151 fprintf(stderr, "["TTFormat"] start time.\n["TTFormat"] end time.\n", GLOBALS->min_time*GLOBALS->time_scale, GLOBALS->max_time*GLOBALS->time_scale);
11521152 if(GLOBALS->num_glitches_ghw_c_1) fprintf(stderr, "Warning: encountered %d glitch%s across %d glitch region%s.\n",
11531153 GLOBALS->num_glitches_ghw_c_1, (GLOBALS->num_glitches_ghw_c_1!=1)?"es":"",
11541154 GLOBALS->num_glitch_regions_ghw_c_1, (GLOBALS->num_glitch_regions_ghw_c_1!=1)?"s":"");
3131 #ifdef HAVE_CONFIG_H
3232 # include <config.h>
3333 #endif
34
35 /* fix for 64-bit OSX compiles */
36 #define GR_INT int
3437
3538 #ifndef PARAMS
3639 # if defined __GNUC__ || (defined __STDC__ && __STDC__)
685688 /* Loop over pattern commands. */
686689 while (p < pend)
687690 {
688 printf ("%d:\t", p - start);
691 printf ("%d:\t", (GR_INT)(p - start));
689692
690693 switch ((re_opcode_t) *p++)
691694 {
775778
776779 case on_failure_jump:
777780 extract_number_and_incr (&mcnt, &p);
778 printf ("/on_failure_jump to %d", p + mcnt - start);
781 printf ("/on_failure_jump to %d", (GR_INT)(p + mcnt - start));
779782 break;
780783
781784 case on_failure_keep_string_jump:
782785 extract_number_and_incr (&mcnt, &p);
783 printf ("/on_failure_keep_string_jump to %d", p + mcnt - start);
786 printf ("/on_failure_keep_string_jump to %d", (GR_INT)(p + mcnt - start));
784787 break;
785788
786789 case dummy_failure_jump:
787790 extract_number_and_incr (&mcnt, &p);
788 printf ("/dummy_failure_jump to %d", p + mcnt - start);
791 printf ("/dummy_failure_jump to %d", (GR_INT)(p + mcnt - start));
789792 break;
790793
791794 case push_dummy_failure:
794797
795798 case maybe_pop_jump:
796799 extract_number_and_incr (&mcnt, &p);
797 printf ("/maybe_pop_jump to %d", p + mcnt - start);
800 printf ("/maybe_pop_jump to %d", (GR_INT)(p + mcnt - start));
798801 break;
799802
800803 case pop_failure_jump:
801804 extract_number_and_incr (&mcnt, &p);
802 printf ("/pop_failure_jump to %d", p + mcnt - start);
805 printf ("/pop_failure_jump to %d", (GR_INT)(p + mcnt - start));
803806 break;
804807
805808 case jump_past_alt:
806809 extract_number_and_incr (&mcnt, &p);
807 printf ("/jump_past_alt to %d", p + mcnt - start);
810 printf ("/jump_past_alt to %d", (GR_INT)(p + mcnt - start));
808811 break;
809812
810813 case jump:
811814 extract_number_and_incr (&mcnt, &p);
812 printf ("/jump to %d", p + mcnt - start);
815 printf ("/jump to %d", (GR_INT)(p + mcnt - start));
813816 break;
814817
815818 case succeed_n:
816819 extract_number_and_incr (&mcnt, &p);
817820 p1 = p + mcnt;
818821 extract_number_and_incr (&mcnt2, &p);
819 printf ("/succeed_n to %d, %d times", p1 - start, mcnt2);
822 printf ("/succeed_n to %d, %d times", (GR_INT)(p1 - start), mcnt2);
820823 break;
821824
822825 case jump_n:
823826 extract_number_and_incr (&mcnt, &p);
824827 p1 = p + mcnt;
825828 extract_number_and_incr (&mcnt2, &p);
826 printf ("/jump_n to %d, %d times", p1 - start, mcnt2);
829 printf ("/jump_n to %d, %d times", (GR_INT)(p1 - start), mcnt2);
827830 break;
828831
829832 case set_number_at:
830833 extract_number_and_incr (&mcnt, &p);
831834 p1 = p + mcnt;
832835 extract_number_and_incr (&mcnt2, &p);
833 printf ("/set_number_at location %d to %d", p1 - start, mcnt2);
836 printf ("/set_number_at location %d to %d", (GR_INT)(p1 - start), mcnt2);
834837 break;
835838
836839 case wordbound:
897900 putchar ('\n');
898901 }
899902
900 printf ("%d:\tend of pattern.\n", p - start);
903 printf ("%d:\tend of pattern.\n", (GR_INT)(p - start));
901904 }
902905
903906
917920 print_fastmap (bufp->fastmap);
918921 }
919922
920 printf ("re_nsub: %d\t", bufp->re_nsub);
923 printf ("re_nsub: %d\t", (GR_INT)(bufp->re_nsub));
921924 printf ("regs_alloc: %d\t", bufp->regs_allocated);
922925 printf ("can_be_null: %d\t", bufp->can_be_null);
923926 printf ("newline_anchor: %d\n", bufp->newline_anchor);
41004103 fails at this starting point in the input data. */
41014104 for (;;)
41024105 {
4103 #ifdef _LIBC
41044106 DEBUG_PRINT2 ("\n%p: ", p);
4105 #else
4106 DEBUG_PRINT2 ("\n0x%x: ", p);
4107 #endif
41084107
41094108 if (p == pend)
41104109 { /* End of pattern means we might have succeeded. */
46834682 DEBUG_PRINT1 ("EXECUTING on_failure_keep_string_jump");
46844683
46854684 EXTRACT_NUMBER_AND_INCR (mcnt, p);
4686 #ifdef _LIBC
46874685 DEBUG_PRINT3 (" %d (to %p):\n", mcnt, p + mcnt);
4688 #else
4689 DEBUG_PRINT3 (" %d (to 0x%x):\n", mcnt, p + mcnt);
4690 #endif
46914686
46924687 PUSH_FAILURE_POINT (p + mcnt, NULL, -2);
46934688 break;
47104705 DEBUG_PRINT1 ("EXECUTING on_failure_jump");
47114706
47124707 EXTRACT_NUMBER_AND_INCR (mcnt, p);
4713 #ifdef _LIBC
47144708 DEBUG_PRINT3 (" %d (to %p)", mcnt, p + mcnt);
4715 #else
4716 DEBUG_PRINT3 (" %d (to 0x%x)", mcnt, p + mcnt);
4717 #endif
47184709
47194710 /* If this on_failure_jump comes right before a group (i.e.,
47204711 the original * applied to a group), save the information
49194910 /* Note fall through. */
49204911
49214912 unconditional_jump:
4922 #ifdef _LIBC
49234913 DEBUG_PRINT2 ("\n%p: ", p);
4924 #else
4925 DEBUG_PRINT2 ("\n0x%x: ", p);
4926 #endif
49274914 /* Note fall through. */
49284915
49294916 /* Unconditionally jump (without popping any failure points). */
49314918 EXTRACT_NUMBER_AND_INCR (mcnt, p); /* Get the amount to jump. */
49324919 DEBUG_PRINT2 ("EXECUTING jump %d ", mcnt);
49334920 p += mcnt; /* Do the jump. */
4934 #ifdef _LIBC
49354921 DEBUG_PRINT2 ("(to %p).\n", p);
4936 #else
4937 DEBUG_PRINT2 ("(to 0x%x).\n", p);
4938 #endif
49394922 break;
49404923
49414924
49844967 mcnt--;
49854968 p += 2;
49864969 STORE_NUMBER_AND_INCR (p, mcnt);
4987 #ifdef _LIBC
49884970 DEBUG_PRINT3 (" Setting %p to %d.\n", p - 2, mcnt);
4989 #else
4990 DEBUG_PRINT3 (" Setting 0x%x to %d.\n", p - 2, mcnt);
4991 #endif
49924971 }
49934972 else if (mcnt == 0)
49944973 {
4995 #ifdef _LIBC
49964974 DEBUG_PRINT2 (" Setting two bytes from %p to no_op.\n", p+2);
4997 #else
4998 DEBUG_PRINT2 (" Setting two bytes from 0x%x to no_op.\n", p+2);
4999 #endif
50004975 p[2] = (unsigned char) no_op;
50014976 p[3] = (unsigned char) no_op;
50024977 goto on_failure;
50124987 {
50134988 mcnt--;
50144989 STORE_NUMBER (p + 2, mcnt);
5015 #ifdef _LIBC
50164990 DEBUG_PRINT3 (" Setting %p to %d.\n", p + 2, mcnt);
5017 #else
5018 DEBUG_PRINT3 (" Setting 0x%x to %d.\n", p + 2, mcnt);
5019 #endif
50204991 goto unconditional_jump;
50214992 }
50224993 /* If don't have to jump any more, skip over the rest of command. */
50315002 EXTRACT_NUMBER_AND_INCR (mcnt, p);
50325003 p1 = p + mcnt;
50335004 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5034 #ifdef _LIBC
50355005 DEBUG_PRINT3 (" Setting %p to %d.\n", p1, mcnt);
5036 #else
5037 DEBUG_PRINT3 (" Setting 0x%x to %d.\n", p1, mcnt);
5038 #endif
50395006 STORE_NUMBER (p1, mcnt);
50405007 break;
50415008 }
405405
406406 "Note that EVCDFILE is optional provided the --filename\n"
407407 "option is specified. VCD is emitted to stdout.\n\n"
408 "Report bugs to <bybell@nc.rr.com>.\n",nam);
408 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
409409 #else
410410 printf(
411411 "Usage: %s [OPTION]... [EVCDFILE]\n\n"
414414
415415 "Note that EVCDFILE is optional provided the --filename\n"
416416 "option is specified. VCD is emitted to stdout.\n\n"
417 "Report bugs to <bybell@nc.rr.com>.\n",nam);
417 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
418418 #endif
419419
420420 exit(0);
3636 " -f, --fstname=FILE specify FST input filename\n"
3737 " -h, --help display this help then exit\n\n"
3838 "VCD is emitted to stdout.\n\n"
39 "Report bugs to <bybell@nc.rr.com>.\n",nam);
39 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
4040 #else
4141 printf(
4242 "Usage: %s [OPTION]... [FSTFILE]\n\n"
4444 " -h display this help then exit\n\n"
4545
4646 "FST is emitted to stdout.\n\n"
47 "Report bugs to <bybell@nc.rr.com>.\n",nam);
47 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
4848 #endif
4949
5050 exit(0);
159159 " -c, --comprehensive do not stop after first match\n"
160160 " -h, --help display this help then exit\n\n"
161161 "First occurrence of facnames with times and matching values are emitted to\nstdout. Using -n generates a gtkwave save file.\n\n"
162 "Report bugs to <bybell@nc.rr.com>.\n",nam);
162 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
163163 #else
164164 printf(
165165 "Usage: %s [OPTION]... [VZTFILE]\n\n"
170170 " -c do not stop after first match\n"
171171 " -h display this help then exit (gtkwave savefile)\n\n"
172172 "First occurrence of facnames with times and matching values are emitted to\nstdout. Using -n generates a gtkwave save file.\n\n"
173 "Report bugs to <bybell@nc.rr.com>.\n",nam);
173 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
174174 #endif
175175
176176 exit(0);
312312 " -n, --notruncate do not shorten bitvectors\n"
313313 " -h, --help display this help then exit\n\n"
314314 "VCD is emitted to stdout.\n\n"
315 "Report bugs to <bybell@nc.rr.com>.\n",nam);
315 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
316316 #else
317317 printf(
318318 "Usage: %s [OPTION]... [LXT2FILE]\n\n"
322322 " -h display this help then exit\n\n"
323323
324324 "VCD is emitted to stdout.\n\n"
325 "Report bugs to <bybell@nc.rr.com>.\n",nam);
325 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
326326 #endif
327327
328328 exit(0);
785785
786786 "Note that VCDFILE and FSTFILE are optional provided the\n"
787787 "--vcdname and --fstname options are specified.\n\n"
788 "Report bugs to <bybell@nc.rr.com>.\n",nam);
788 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
789789 #else
790790 printf(
791791 "Usage: %s [OPTION]... [VCDFILE] [FSTFILE]\n\n"
797797
798798 "Note that VCDFILE and FSTFILE are optional provided the\n"
799799 "--vcdname and --fstname options are specified.\n\n"
800 "Report bugs to <bybell@nc.rr.com>.\n",nam);
800 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
801801 #endif
802802
803803 exit(0);
18671867 "VCD files may be compressed with zip or gzip. Note that VCDFILE and LXTFILE\n"
18681868 "are optional provided the --vcdname and --lxtname options are specified.\n"
18691869 "Use \"-\" as a VCD filename to accept uncompressed input from stdin.\n\n"
1870 "Report bugs to <bybell@nc.rr.com>.\n",nam);
1870 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
18711871 #else
18721872 printf(
18731873 "Usage: %s [OPTION]... [VCDFILE] [LXT2FILE]\n\n"
18831883 "VCD files may be compressed with zip or gzip. Note that VCDFILE and LXTFILE\n"
18841884 "are optional provided the --vcdname and --lxtname options are specified.\n"
18851885 "Use \"-\" as a VCD filename to accept uncompressed input from stdin.\n\n"
1886 "Report bugs to <bybell@nc.rr.com>.\n",nam);
1886 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
18871887 #endif
18881888
18891889 exit(0);
18691869 "VCD files may be compressed with zip or gzip. Note that VCDFILE and VZTFILE\n"
18701870 "are optional provided the --vcdname and --vztname options are specified.\n"
18711871 "Use \"-\" as a VCD filename to accept uncompressed input from stdin.\n\n"
1872 "Report bugs to <bybell@nc.rr.com>.\n",nam);
1872 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
18731873 #else
18741874 printf(
18751875 "Usage: %s [OPTION]... [VCDFILE] [VZTFILE]\n\n"
18861886 "VCD files may be compressed with zip or gzip. Note that VCDFILE and VZTFILE\n"
18871887 "are optional provided the --vcdname and --vztname options are specified.\n"
18881888 "Use \"-\" as a VCD filename to accept uncompressed input from stdin.\n\n"
1889 "Report bugs to <bybell@nc.rr.com>.\n",nam);
1889 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
18901890 #endif
18911891
18921892 exit(0);
322322 " -n, --notruncate do not shorten bitvectors\n"
323323 " -h, --help display this help then exit\n\n"
324324 "VCD is emitted to stdout.\n\n"
325 "Report bugs to <bybell@nc.rr.com>.\n",nam);
325 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
326326 #else
327327 printf(
328328 "Usage: %s [OPTION]... [VZTFILE]\n\n"
333333 " -h display this help then exit\n\n"
334334
335335 "VCD is emitted to stdout.\n\n"
336 "Report bugs to <bybell@nc.rr.com>.\n",nam);
336 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
337337 #endif
338338
339339 exit(0);
161161 " -c, --comprehensive do not stop after first match\n"
162162 " -h, --help display this help then exit\n\n"
163163 "First occurrence of facnames with times and matching values are emitted to\nstdout. Using -n generates a gtkwave save file.\n\n"
164 "Report bugs to <bybell@nc.rr.com>.\n",nam);
164 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
165165 #else
166166 printf(
167167 "Usage: %s [OPTION]... [VZTFILE]\n\n"
172172 " -c do not stop after first match\n"
173173 " -h display this help then exit (gtkwave savefile)\n\n"
174174 "First occurrence of facnames with times and matching values are emitted to\nstdout. Using -n generates a gtkwave save file.\n\n"
175 "Report bugs to <bybell@nc.rr.com>.\n",nam);
175 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
176176 #endif
177177
178178 exit(0);
3030 #include <sys/types.h>
3131 #endif
3232
33 #if !defined _MSC_VER && !defined OS_X && defined WAVE_USE_GTK2
33 #if !defined _MSC_VER && defined WAVE_USE_GTK2
3434 #define WAVE_USE_XID
3535 #else
3636 #undef WAVE_USE_XID
3737 #endif
38
3938
4039 #ifdef HAVE_GETOPT_LONG
4140 #include <getopt.h>
300299 "Note that DUMPFILE is optional if the --dump or --nocli options are specified.\n"
301300 "SAVEFILE and RCFILE are always optional.\n\n"
302301
303 "Report bugs to <bybell@nc.rr.com>.\n",nam);
302 "Report bugs to <"PACKAGE_BUGREPORT">.\n",nam);
304303
305304 exit(0);
306305 }
28282828 void make_tcl_interpreter(char *argv[])
28292829 {
28302830 int i;
2831 char commandName[256];
2831 char commandName[32768];
28322832 GtkItemFactoryEntry *ife;
28332833 int num_menu_items;
28342834 int n = 0;
28362836 #ifndef WAVE_TCL_STUBIFY
28372837 Tcl_FindExecutable(argv[0]);
28382838 #endif
2839 #if (defined(__MACH__) && defined(__APPLE__))
2840 {
2841 uint32_t size = sizeof(commandName);
2842 if(_NSGetExecutablePath(commandName, &size) == 0)
2843 {
2844 set_globals_interp(commandName, 0);
2845 }
2846 else
2847 {
2848 char *p = calloc_2(1, size+1);
2849 size++;
2850 if(_NSGetExecutablePath(p, &size) == 0)
2851 {
2852 set_globals_interp(p, 0);
2853 }
2854 else
2855 {
2856 fprintf(stderr, "GTKWAVE | Problem with _NSGetExecutablePath, exiting.\n");
2857 exit(255);
2858 }
2859 free_2(p);
2860 }
2861 }
2862 #else
28392863 #ifdef WIN32
28402864 if(!GetModulePathName(NULL, commandName, 256))
28412865 n = -1 ;
28492873 commandName[n] = '\0' ;
28502874 }
28512875 set_globals_interp(commandName, 0);
2876 #endif
28522877
28532878 #ifndef WAVE_TCL_STUBIFY
28542879 if (TCL_OK != Tcl_Init(GLOBALS->interp))
5757 # define SHLIB_SUFFIX ".dll"
5858 # endif
5959
60 #elif defined(XP_MACOSX) /* Mac OS X */
60 #elif (defined(__MACH__) && defined(__APPLE__)) /* Mac OS X */
6161
6262 # include <stdio.h>
63 # include <Carbon/Carbon.h>
63 /* # include <Carbon/Carbon.h> */ /* Commented out: ajb 25sep11 */
6464
6565 # if HAVE_UNISTD_H
6666 # include <sys/types.h>
2121
2222 #include "debug.h"
2323
24 #if !defined _MSC_VER && !defined OS_X && defined WAVE_USE_GTK2
24 #if !defined _MSC_VER && defined WAVE_USE_GTK2
2525
2626 static int plug_removed(GtkWidget *widget, gpointer data)
2727 {
423423 fprintf(stderr, "Sorry, this doesn't run under Win32!\n");
424424 #endif
425425
426 #ifdef OS_X
427 fprintf(stderr, "Sorry, this doesn't run under OS_X!\n");
428 #endif
429
430426 fprintf(stderr, "If you find that this program works on your platform, please report this to the maintainers.\n");
431427
432428 return(255);
99 #ifndef WAVE_VERSION_H
1010 #define WAVE_VERSION_H
1111
12 #define WAVE_VERSION_INFO "GTKWave Analyzer v3.3.25 (w)1999-2011 BSI"
12 #define WAVE_VERSION_INFO "GTKWave Analyzer v3.3.26 (w)1999-2011 BSI"
1313
1414 #endif