Imported Upstream version 3.3.63
أحمد المحمودي (Ahmed El-Mahmoudy)
9 years ago
1483 | 1483 | interface (dbus enabled by --with-gconf). |
1484 | 1484 | Updated LZ4 to version r120 (r121 files are the same). |
1485 | 1485 | Compiler warnings fixes for gtk+-1.2 (-Wall -Wshadow -Wextra). |
1486 | 3.3.63 06nov14 Updated LZ4 for version r123. | |
1487 | Added fine horiz scrolling in wavewindow (when using the wheel | |
1488 | on a mouse) if shift pressed. | |
1489 | Timescale fix for Verilator where it emits 0ps as a timescale. | |
1490 | Added sample gtkwave.appdata.xml file in share/appdata. |
0 | 0 | ########################################################################## |
1 | 1 | |
2 | GTKWave 3.3.62 Wave Viewer is Copyright (C) 1999-2014 Tony Bybell. | |
2 | GTKWave 3.3.63 Wave Viewer is Copyright (C) 1999-2014 Tony Bybell. | |
3 | 3 | Portions of GTKWave are Copyright (C) 1999-2014 Udi Finkelstein. |
4 | 4 | Context support is Copyright (C) 2007-2014 Kermin Elliott Fleming. |
5 | 5 | Trace group support is Copyright (C) 2009-2014 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.62. | |
2 | # Generated by GNU Autoconf 2.69 for gtkwave 3.3.63. | |
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.62' | |
583 | PACKAGE_STRING='gtkwave 3.3.62' | |
582 | PACKAGE_VERSION='3.3.63' | |
583 | PACKAGE_STRING='gtkwave 3.3.63' | |
584 | 584 | PACKAGE_BUGREPORT='bybell@rocketmail.com' |
585 | 585 | PACKAGE_URL='' |
586 | 586 | |
1382 | 1382 | # Omit some internal or obsolete options to make the list less imposing. |
1383 | 1383 | # This message is too long to be a string in the A/UX 3.1 sh. |
1384 | 1384 | cat <<_ACEOF |
1385 | \`configure' configures gtkwave 3.3.62 to adapt to many kinds of systems. | |
1385 | \`configure' configures gtkwave 3.3.63 to adapt to many kinds of systems. | |
1386 | 1386 | |
1387 | 1387 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1388 | 1388 | |
1448 | 1448 | |
1449 | 1449 | if test -n "$ac_init_help"; then |
1450 | 1450 | case $ac_init_help in |
1451 | short | recursive ) echo "Configuration of gtkwave 3.3.62:";; | |
1451 | short | recursive ) echo "Configuration of gtkwave 3.3.63:";; | |
1452 | 1452 | esac |
1453 | 1453 | cat <<\_ACEOF |
1454 | 1454 | |
1594 | 1594 | test -n "$ac_init_help" && exit $ac_status |
1595 | 1595 | if $ac_init_version; then |
1596 | 1596 | cat <<\_ACEOF |
1597 | gtkwave configure 3.3.62 | |
1597 | gtkwave configure 3.3.63 | |
1598 | 1598 | generated by GNU Autoconf 2.69 |
1599 | 1599 | |
1600 | 1600 | Copyright (C) 2012 Free Software Foundation, Inc. |
2238 | 2238 | This file contains any messages produced by compilers while |
2239 | 2239 | running configure, to aid debugging if configure makes a mistake. |
2240 | 2240 | |
2241 | It was created by gtkwave $as_me 3.3.62, which was | |
2241 | It was created by gtkwave $as_me 3.3.63, which was | |
2242 | 2242 | generated by GNU Autoconf 2.69. Invocation command line was |
2243 | 2243 | |
2244 | 2244 | $ $0 $@ |
3105 | 3105 | |
3106 | 3106 | # Define the identity of the package. |
3107 | 3107 | PACKAGE='gtkwave' |
3108 | VERSION='3.3.62' | |
3108 | VERSION='3.3.63' | |
3109 | 3109 | |
3110 | 3110 | |
3111 | 3111 | cat >>confdefs.h <<_ACEOF |
10322 | 10322 | |
10323 | 10323 | |
10324 | 10324 | |
10325 | ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile contrib/pccts/IBM_VISUAL_AGE_PROJECTS/Makefile contrib/pccts/Makefile contrib/pccts/antlr/Makefile contrib/pccts/dlg/Makefile contrib/pccts/h/Makefile contrib/pccts/sorcerer/Makefile contrib/pccts/sorcerer/h/Makefile contrib/pccts/sorcerer/lib/Makefile contrib/pccts/sorcerer/test/Makefile contrib/pccts/sorcerer/test/test7/Makefile contrib/pccts/sorcerer/testcpp/Makefile contrib/pccts/support/DECmms/Makefile contrib/pccts/support/Makefile contrib/pccts/support/genmk/Makefile contrib/pccts/support/rexpr/Makefile contrib/pccts/support/set/Makefile contrib/pccts/support/sym/Makefile contrib/pccts/testcpp/Makefile contrib/rtlbrowse/Makefile contrib/vermin/Makefile contrib/bundle_for_osx/Makefile contrib/fst_jni/Makefile contrib/wlf2vcd/Makefile contrib/fsdb2vcd/Makefile examples/Makefile man/Makefile src/Makefile src/cocoa/Makefile src/helpers/Makefile src/liblzma/Makefile src/libbz2/Makefile src/libz/Makefile src/helpers/fst/Makefile share/Makefile share/mime/Makefile share/mime/packages/Makefile share/icons/Makefile share/icons/gnome/Makefile share/icons/gnome/16x16/Makefile share/icons/gnome/16x16/mimetypes/Makefile share/icons/gnome/32x32/Makefile share/icons/gnome/32x32/mimetypes/Makefile share/icons/gnome/48x48/Makefile share/icons/gnome/48x48/mimetypes/Makefile share/applications/Makefile" | |
10325 | ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile contrib/pccts/IBM_VISUAL_AGE_PROJECTS/Makefile contrib/pccts/Makefile contrib/pccts/antlr/Makefile contrib/pccts/dlg/Makefile contrib/pccts/h/Makefile contrib/pccts/sorcerer/Makefile contrib/pccts/sorcerer/h/Makefile contrib/pccts/sorcerer/lib/Makefile contrib/pccts/sorcerer/test/Makefile contrib/pccts/sorcerer/test/test7/Makefile contrib/pccts/sorcerer/testcpp/Makefile contrib/pccts/support/DECmms/Makefile contrib/pccts/support/Makefile contrib/pccts/support/genmk/Makefile contrib/pccts/support/rexpr/Makefile contrib/pccts/support/set/Makefile contrib/pccts/support/sym/Makefile contrib/pccts/testcpp/Makefile contrib/rtlbrowse/Makefile contrib/vermin/Makefile contrib/bundle_for_osx/Makefile contrib/fst_jni/Makefile contrib/wlf2vcd/Makefile contrib/fsdb2vcd/Makefile examples/Makefile man/Makefile src/Makefile src/cocoa/Makefile src/helpers/Makefile src/liblzma/Makefile src/libbz2/Makefile src/libz/Makefile src/helpers/fst/Makefile share/Makefile share/mime/Makefile share/mime/packages/Makefile share/icons/Makefile share/icons/gnome/Makefile share/icons/gnome/16x16/Makefile share/icons/gnome/16x16/mimetypes/Makefile share/icons/gnome/32x32/Makefile share/icons/gnome/32x32/mimetypes/Makefile share/icons/gnome/48x48/Makefile share/icons/gnome/48x48/mimetypes/Makefile share/applications/Makefile share/appdata/Makefile" | |
10326 | 10326 | |
10327 | 10327 | |
10328 | 10328 | |
10991 | 10991 | # report actual input values of CONFIG_FILES etc. instead of their |
10992 | 10992 | # values after options handling. |
10993 | 10993 | ac_log=" |
10994 | This file was extended by gtkwave $as_me 3.3.62, which was | |
10994 | This file was extended by gtkwave $as_me 3.3.63, which was | |
10995 | 10995 | generated by GNU Autoconf 2.69. Invocation command line was |
10996 | 10996 | |
10997 | 10997 | CONFIG_FILES = $CONFIG_FILES |
11057 | 11057 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11058 | 11058 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
11059 | 11059 | ac_cs_version="\\ |
11060 | gtkwave config.status 3.3.62 | |
11060 | gtkwave config.status 3.3.63 | |
11061 | 11061 | configured by $0, generated by GNU Autoconf 2.69, |
11062 | 11062 | with options \\"\$ac_cs_config\\" |
11063 | 11063 | |
11236 | 11236 | "share/icons/gnome/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES share/icons/gnome/48x48/Makefile" ;; |
11237 | 11237 | "share/icons/gnome/48x48/mimetypes/Makefile") CONFIG_FILES="$CONFIG_FILES share/icons/gnome/48x48/mimetypes/Makefile" ;; |
11238 | 11238 | "share/applications/Makefile") CONFIG_FILES="$CONFIG_FILES share/applications/Makefile" ;; |
11239 | "share/appdata/Makefile") CONFIG_FILES="$CONFIG_FILES share/appdata/Makefile" ;; | |
11239 | 11240 | |
11240 | 11241 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
11241 | 11242 | esac |
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.62, bybell@rocketmail.com) | |
4 | AC_INIT(gtkwave, 3.3.63, bybell@rocketmail.com) | |
5 | 5 | AC_CONFIG_SRCDIR([src/vcd.c]) |
6 | 6 | AM_INIT_AUTOMAKE |
7 | 7 | AC_CONFIG_HEADER([config.h]) |
912 | 912 | share/icons/gnome/48x48/Makefile |
913 | 913 | share/icons/gnome/48x48/mimetypes/Makefile |
914 | 914 | share/applications/Makefile |
915 | share/appdata/Makefile | |
915 | 916 | ]) |
916 | 917 | |
917 | 918 |
7 | 7 | <key>CFBundleExecutable</key> |
8 | 8 | <string>gtkwave</string> |
9 | 9 | <key>CFBundleGetInfoString</key> |
10 | <string>3.3.62, (C) 1999-2014 Tony Bybell http://gtkwave.sourceforge.net</string> | |
10 | <string>3.3.63, (C) 1999-2014 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.62</string> | |
20 | <string>3.3.63</string> | |
21 | 21 | <key>CFBundleSignature</key> |
22 | 22 | <string>????</string> |
23 | 23 | <key>CFBundleVersion</key> |
24 | <string>3.3.62</string> | |
24 | <string>3.3.63</string> | |
25 | 25 | <key>NSHumanReadableCopyright</key> |
26 | 26 | <string>Copyright 1999 - 2014 Tony Bybell, GNU General Public License.</string> |
27 | 27 | <key>LSMinimumSystemVersion</key> |
0 | 0 | ## -*- makefile |
1 | 1 | ## |
2 | 2 | |
3 | SUBDIRS= mime icons applications | |
3 | SUBDIRS= mime icons applications appdata | |
4 | 4 |
285 | 285 | top_build_prefix = @top_build_prefix@ |
286 | 286 | top_builddir = @top_builddir@ |
287 | 287 | top_srcdir = @top_srcdir@ |
288 | SUBDIRS = mime icons applications | |
288 | SUBDIRS = mime icons applications appdata | |
289 | 289 | all: all-recursive |
290 | 290 | |
291 | 291 | .SUFFIXES: |
0 | # Makefile.in generated by automake 1.13.1 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
4 | ||
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | VPATH = @srcdir@ | |
16 | am__make_dryrun = \ | |
17 | { \ | |
18 | am__dry=no; \ | |
19 | case $$MAKEFLAGS in \ | |
20 | *\\[\ \ ]*) \ | |
21 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
22 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
23 | *) \ | |
24 | for am__flg in $$MAKEFLAGS; do \ | |
25 | case $$am__flg in \ | |
26 | *=*|--*) ;; \ | |
27 | *n*) am__dry=yes; break;; \ | |
28 | esac; \ | |
29 | done;; \ | |
30 | esac; \ | |
31 | test $$am__dry = yes; \ | |
32 | } | |
33 | pkgdatadir = $(datadir)/@PACKAGE@ | |
34 | pkgincludedir = $(includedir)/@PACKAGE@ | |
35 | pkglibdir = $(libdir)/@PACKAGE@ | |
36 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
37 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
38 | install_sh_DATA = $(install_sh) -c -m 644 | |
39 | install_sh_PROGRAM = $(install_sh) -c | |
40 | install_sh_SCRIPT = $(install_sh) -c | |
41 | INSTALL_HEADER = $(INSTALL_DATA) | |
42 | transform = $(program_transform_name) | |
43 | NORMAL_INSTALL = : | |
44 | PRE_INSTALL = : | |
45 | POST_INSTALL = : | |
46 | NORMAL_UNINSTALL = : | |
47 | PRE_UNINSTALL = : | |
48 | POST_UNINSTALL = : | |
49 | subdir = share/appdata | |
50 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am | |
51 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
52 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
53 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
54 | $(ACLOCAL_M4) | |
55 | mkinstalldirs = $(install_sh) -d | |
56 | CONFIG_HEADER = $(top_builddir)/config.h | |
57 | CONFIG_CLEAN_FILES = | |
58 | CONFIG_CLEAN_VPATH_FILES = | |
59 | AM_V_P = $(am__v_P_@AM_V@) | |
60 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
61 | am__v_P_0 = false | |
62 | am__v_P_1 = : | |
63 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
64 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
65 | am__v_GEN_0 = @echo " GEN " $@; | |
66 | am__v_GEN_1 = | |
67 | AM_V_at = $(am__v_at_@AM_V@) | |
68 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
69 | am__v_at_0 = @ | |
70 | am__v_at_1 = | |
71 | SOURCES = | |
72 | DIST_SOURCES = | |
73 | am__can_run_installinfo = \ | |
74 | case $$AM_UPDATE_INFO_DIR in \ | |
75 | n|no|NO) false;; \ | |
76 | *) (install-info --version) >/dev/null 2>&1;; \ | |
77 | esac | |
78 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
79 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
80 | ACLOCAL = @ACLOCAL@ | |
81 | AET2_CFLAGS = @AET2_CFLAGS@ | |
82 | AET2_LDADD = @AET2_LDADD@ | |
83 | ALLOCA = @ALLOCA@ | |
84 | AMTAR = @AMTAR@ | |
85 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
86 | AUTOCONF = @AUTOCONF@ | |
87 | AUTOHEADER = @AUTOHEADER@ | |
88 | AUTOMAKE = @AUTOMAKE@ | |
89 | AWK = @AWK@ | |
90 | CC = @CC@ | |
91 | CCDEPMODE = @CCDEPMODE@ | |
92 | CFLAGS = @CFLAGS@ | |
93 | COCOA_GTK_CFLAGS = @COCOA_GTK_CFLAGS@ | |
94 | COCOA_GTK_LDADD = @COCOA_GTK_LDADD@ | |
95 | COCOA_GTK_LDFLAGS = @COCOA_GTK_LDFLAGS@ | |
96 | CPP = @CPP@ | |
97 | CPPFLAGS = @CPPFLAGS@ | |
98 | CXX = @CXX@ | |
99 | CXXDEPMODE = @CXXDEPMODE@ | |
100 | CXXFLAGS = @CXXFLAGS@ | |
101 | CYGPATH_W = @CYGPATH_W@ | |
102 | DEFS = @DEFS@ | |
103 | DEPDIR = @DEPDIR@ | |
104 | ECHO_C = @ECHO_C@ | |
105 | ECHO_N = @ECHO_N@ | |
106 | ECHO_T = @ECHO_T@ | |
107 | EGREP = @EGREP@ | |
108 | EXEEXT = @EXEEXT@ | |
109 | EXTDEBUG = @EXTDEBUG@ | |
110 | EXTDEBUG2 = @EXTDEBUG2@ | |
111 | EXTDEBUG3 = @EXTDEBUG3@ | |
112 | EXTDEBUG4 = @EXTDEBUG4@ | |
113 | EXTLOAD_CFLAGS = @EXTLOAD_CFLAGS@ | |
114 | FASTTREE_CFLAGS = @FASTTREE_CFLAGS@ | |
115 | FSDB_CFLAGS = @FSDB_CFLAGS@ | |
116 | FSDB_LDADD = @FSDB_LDADD@ | |
117 | GCONF_CFLAGS = @GCONF_CFLAGS@ | |
118 | GCONF_LIBS = @GCONF_LIBS@ | |
119 | GEDITTEST = @GEDITTEST@ | |
120 | GEDIT_CFLAGS = @GEDIT_CFLAGS@ | |
121 | GPERF = @GPERF@ | |
122 | GREP = @GREP@ | |
123 | GTK_CFLAGS = @GTK_CFLAGS@ | |
124 | GTK_CONFIG = @GTK_CONFIG@ | |
125 | GTK_LIBS = @GTK_LIBS@ | |
126 | GTK_MAC_CFLAGS = @GTK_MAC_CFLAGS@ | |
127 | GTK_MAC_LIBS = @GTK_MAC_LIBS@ | |
128 | GTK_UNIX_PRINT_CFLAGS = @GTK_UNIX_PRINT_CFLAGS@ | |
129 | GTK_UNIX_PRINT_LIBS = @GTK_UNIX_PRINT_LIBS@ | |
130 | INSTALL = @INSTALL@ | |
131 | INSTALL_DATA = @INSTALL_DATA@ | |
132 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
133 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
134 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
135 | LDFLAGS = @LDFLAGS@ | |
136 | LEX = @LEX@ | |
137 | LEXLIB = @LEXLIB@ | |
138 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | |
139 | LIBBZ2_CFLAGS = @LIBBZ2_CFLAGS@ | |
140 | LIBBZ2_DIR = @LIBBZ2_DIR@ | |
141 | LIBBZ2_LDADD = @LIBBZ2_LDADD@ | |
142 | LIBJUDY_CFLAGS = @LIBJUDY_CFLAGS@ | |
143 | LIBJUDY_LDADD = @LIBJUDY_LDADD@ | |
144 | LIBOBJS = @LIBOBJS@ | |
145 | LIBS = @LIBS@ | |
146 | LIBXZ_CFLAGS = @LIBXZ_CFLAGS@ | |
147 | LIBXZ_LDADD = @LIBXZ_LDADD@ | |
148 | LIBZ_CFLAGS = @LIBZ_CFLAGS@ | |
149 | LIBZ_DIR = @LIBZ_DIR@ | |
150 | LIBZ_LDADD = @LIBZ_LDADD@ | |
151 | LTLIBOBJS = @LTLIBOBJS@ | |
152 | MAINT = @MAINT@ | |
153 | MAKEINFO = @MAKEINFO@ | |
154 | MINGW_LDADD = @MINGW_LDADD@ | |
155 | MKDIR_P = @MKDIR_P@ | |
156 | OBJEXT = @OBJEXT@ | |
157 | PACKAGE = @PACKAGE@ | |
158 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
159 | PACKAGE_NAME = @PACKAGE_NAME@ | |
160 | PACKAGE_STRING = @PACKAGE_STRING@ | |
161 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
162 | PACKAGE_URL = @PACKAGE_URL@ | |
163 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
164 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
165 | PKG_CONFIG = @PKG_CONFIG@ | |
166 | POW_LIB = @POW_LIB@ | |
167 | RANLIB = @RANLIB@ | |
168 | SET_MAKE = @SET_MAKE@ | |
169 | SHELL = @SHELL@ | |
170 | STRIP = @STRIP@ | |
171 | STRUCT_PACK = @STRUCT_PACK@ | |
172 | TCL_DEFADD = @TCL_DEFADD@ | |
173 | TCL_INCLUDE_SPEC = @TCL_INCLUDE_SPEC@ | |
174 | TCL_LDADD = @TCL_LDADD@ | |
175 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ | |
176 | TCL_MAJOR_VERSION = @TCL_MAJOR_VERSION@ | |
177 | TCL_MINOR_VERSION = @TCL_MINOR_VERSION@ | |
178 | TK_INCLUDE_SPEC = @TK_INCLUDE_SPEC@ | |
179 | TK_LDADD = @TK_LDADD@ | |
180 | TK_LIB_SPEC = @TK_LIB_SPEC@ | |
181 | UPDATE_DESKTOP_DATABASE = @UPDATE_DESKTOP_DATABASE@ | |
182 | UPDATE_MIME_DATABASE = @UPDATE_MIME_DATABASE@ | |
183 | VERSION = @VERSION@ | |
184 | XDGDATADIR = @XDGDATADIR@ | |
185 | abs_builddir = @abs_builddir@ | |
186 | abs_srcdir = @abs_srcdir@ | |
187 | abs_top_builddir = @abs_top_builddir@ | |
188 | abs_top_srcdir = @abs_top_srcdir@ | |
189 | ac_ct_CC = @ac_ct_CC@ | |
190 | ac_ct_CXX = @ac_ct_CXX@ | |
191 | am__include = @am__include@ | |
192 | am__leading_dot = @am__leading_dot@ | |
193 | am__quote = @am__quote@ | |
194 | am__tar = @am__tar@ | |
195 | am__untar = @am__untar@ | |
196 | bindir = @bindir@ | |
197 | build_alias = @build_alias@ | |
198 | builddir = @builddir@ | |
199 | datadir = @datadir@ | |
200 | datarootdir = @datarootdir@ | |
201 | docdir = @docdir@ | |
202 | dvidir = @dvidir@ | |
203 | exec_prefix = @exec_prefix@ | |
204 | host_alias = @host_alias@ | |
205 | htmldir = @htmldir@ | |
206 | includedir = @includedir@ | |
207 | infodir = @infodir@ | |
208 | install_sh = @install_sh@ | |
209 | libdir = @libdir@ | |
210 | libexecdir = @libexecdir@ | |
211 | localedir = @localedir@ | |
212 | localstatedir = @localstatedir@ | |
213 | mandir = @mandir@ | |
214 | mkdir_p = @mkdir_p@ | |
215 | oldincludedir = @oldincludedir@ | |
216 | pdfdir = @pdfdir@ | |
217 | prefix = @prefix@ | |
218 | program_transform_name = @program_transform_name@ | |
219 | psdir = @psdir@ | |
220 | sbindir = @sbindir@ | |
221 | sharedstatedir = @sharedstatedir@ | |
222 | srcdir = @srcdir@ | |
223 | sysconfdir = @sysconfdir@ | |
224 | target_alias = @target_alias@ | |
225 | top_build_prefix = @top_build_prefix@ | |
226 | top_builddir = @top_builddir@ | |
227 | top_srcdir = @top_srcdir@ | |
228 | EXTRA_DIST = gtkwave.appdata.xml | |
229 | all: all-am | |
230 | ||
231 | .SUFFIXES: | |
232 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | |
233 | @for dep in $?; do \ | |
234 | case '$(am__configure_deps)' in \ | |
235 | *$$dep*) \ | |
236 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | |
237 | && { if test -f $@; then exit 0; else break; fi; }; \ | |
238 | exit 1;; \ | |
239 | esac; \ | |
240 | done; \ | |
241 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign share/appdata/Makefile'; \ | |
242 | $(am__cd) $(top_srcdir) && \ | |
243 | $(AUTOMAKE) --foreign share/appdata/Makefile | |
244 | .PRECIOUS: Makefile | |
245 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
246 | @case '$?' in \ | |
247 | *config.status*) \ | |
248 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | |
249 | *) \ | |
250 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | |
251 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | |
252 | esac; | |
253 | ||
254 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
255 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
256 | ||
257 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | |
258 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
259 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | |
260 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | |
261 | $(am__aclocal_m4_deps): | |
262 | tags TAGS: | |
263 | ||
264 | ctags CTAGS: | |
265 | ||
266 | cscope cscopelist: | |
267 | ||
268 | ||
269 | distdir: $(DISTFILES) | |
270 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
271 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
272 | list='$(DISTFILES)'; \ | |
273 | dist_files=`for file in $$list; do echo $$file; done | \ | |
274 | sed -e "s|^$$srcdirstrip/||;t" \ | |
275 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
276 | case $$dist_files in \ | |
277 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
278 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
279 | sort -u` ;; \ | |
280 | esac; \ | |
281 | for file in $$dist_files; do \ | |
282 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
283 | if test -d $$d/$$file; then \ | |
284 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
285 | if test -d "$(distdir)/$$file"; then \ | |
286 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
287 | fi; \ | |
288 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
289 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
290 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
291 | fi; \ | |
292 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
293 | else \ | |
294 | test -f "$(distdir)/$$file" \ | |
295 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
296 | || exit 1; \ | |
297 | fi; \ | |
298 | done | |
299 | check-am: all-am | |
300 | check: check-am | |
301 | all-am: Makefile | |
302 | installdirs: | |
303 | install: install-am | |
304 | install-exec: install-exec-am | |
305 | install-data: install-data-am | |
306 | uninstall: uninstall-am | |
307 | ||
308 | install-am: all-am | |
309 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
310 | ||
311 | installcheck: installcheck-am | |
312 | install-strip: | |
313 | if test -z '$(STRIP)'; then \ | |
314 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
315 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
316 | install; \ | |
317 | else \ | |
318 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
319 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
320 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | |
321 | fi | |
322 | mostlyclean-generic: | |
323 | ||
324 | clean-generic: | |
325 | ||
326 | distclean-generic: | |
327 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
328 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
329 | ||
330 | maintainer-clean-generic: | |
331 | @echo "This command is intended for maintainers to use" | |
332 | @echo "it deletes files that may require special tools to rebuild." | |
333 | clean: clean-am | |
334 | ||
335 | clean-am: clean-generic mostlyclean-am | |
336 | ||
337 | distclean: distclean-am | |
338 | -rm -f Makefile | |
339 | distclean-am: clean-am distclean-generic | |
340 | ||
341 | dvi: dvi-am | |
342 | ||
343 | dvi-am: | |
344 | ||
345 | html: html-am | |
346 | ||
347 | html-am: | |
348 | ||
349 | info: info-am | |
350 | ||
351 | info-am: | |
352 | ||
353 | install-data-am: | |
354 | ||
355 | install-dvi: install-dvi-am | |
356 | ||
357 | install-dvi-am: | |
358 | ||
359 | install-exec-am: | |
360 | ||
361 | install-html: install-html-am | |
362 | ||
363 | install-html-am: | |
364 | ||
365 | install-info: install-info-am | |
366 | ||
367 | install-info-am: | |
368 | ||
369 | install-man: | |
370 | ||
371 | install-pdf: install-pdf-am | |
372 | ||
373 | install-pdf-am: | |
374 | ||
375 | install-ps: install-ps-am | |
376 | ||
377 | install-ps-am: | |
378 | ||
379 | installcheck-am: | |
380 | ||
381 | maintainer-clean: maintainer-clean-am | |
382 | -rm -f Makefile | |
383 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
384 | ||
385 | mostlyclean: mostlyclean-am | |
386 | ||
387 | mostlyclean-am: mostlyclean-generic | |
388 | ||
389 | pdf: pdf-am | |
390 | ||
391 | pdf-am: | |
392 | ||
393 | ps: ps-am | |
394 | ||
395 | ps-am: | |
396 | ||
397 | uninstall-am: | |
398 | ||
399 | .MAKE: install-am install-strip | |
400 | ||
401 | .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ | |
402 | ctags-am distclean distclean-generic distdir dvi dvi-am html \ | |
403 | html-am info info-am install install-am install-data \ | |
404 | install-data-am install-dvi install-dvi-am install-exec \ | |
405 | install-exec-am install-html install-html-am install-info \ | |
406 | install-info-am install-man install-pdf install-pdf-am \ | |
407 | install-ps install-ps-am install-strip installcheck \ | |
408 | installcheck-am installdirs maintainer-clean \ | |
409 | maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ | |
410 | pdf-am ps ps-am tags-am uninstall uninstall-am | |
411 | ||
412 | ||
413 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
414 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
415 | .NOEXPORT: |
0 | <?xml version="1.0" encoding="UTF-8"?> | |
1 | <!-- Copyright 2014 Tony Bybell <bybell@rocketmail.com> --> | |
2 | <application> | |
3 | <id type="desktop">gtkwave.desktop</id> | |
4 | <metadata_license>CC0-1.0</metadata_license> | |
5 | <summary>Electronic waveform viewer for viewing simulation results</summary> | |
6 | <description> | |
7 | <p> | |
8 | GTKWave is a fully featured GTK+ based waveform viewer which reads FST, LXT, LXT2, VZT, and GHW files as well as standard Verilog VCD/EVCD files and allows their viewing. | |
9 | </p> | |
10 | <p> | |
11 | The viewer supports both post-mortem viewing of VCD files and interactive viewing of VCD data. Tcl scripting and callback capability allow for remote control by other applications. | |
12 | </p> | |
13 | </description> | |
14 | <url type="homepage">http://gtkwave.sourceforge.net/</url> | |
15 | <screenshots> | |
16 | <screenshot type="default">http://gtkwave.sourceforge.net/gtkwave-appdata.png</screenshot> | |
17 | </screenshots> | |
18 | <updatecontact>bybell@rocketmail.com</updatecontact> | |
19 | </application> |
46 | 46 | **************************************/ |
47 | 47 | /* 32 or 64 bits ? */ |
48 | 48 | #if (defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) \ |
49 | || defined(__64BIT__) || defined(__mips64) \ | |
49 | 50 | || defined(__powerpc64__) || defined(__powerpc64le__) \ |
50 | 51 | || defined(__ppc64__) || defined(__ppc64le__) \ |
51 | 52 | || defined(__PPC64__) || defined(__PPC64LE__) \ |
52 | || defined(__ia64) || defined(__itanium__) || defined(_M_IA64) ) /* Detects 64 bits mode */ | |
53 | || defined(__ia64) || defined(__itanium__) || defined(_M_IA64) \ | |
54 | || defined(__s390x__) ) /* Detects 64 bits mode */ | |
53 | 55 | # define LZ4_ARCH64 1 |
54 | 56 | #else |
55 | 57 | # define LZ4_ARCH64 0 |
853 | 855 | if ((U32)dictSize > 64 KB) dictSize = 64 KB; /* useless to define a dictionary > 64 KB */ |
854 | 856 | if ((U32)dictSize > dict->dictSize) dictSize = dict->dictSize; |
855 | 857 | |
856 | memcpy(safeBuffer, previousDictEnd - dictSize, dictSize); | |
858 | memmove(safeBuffer, previousDictEnd - dictSize, dictSize); | |
857 | 859 | |
858 | 860 | dict->dictionary = (const BYTE*)safeBuffer; |
859 | 861 | dict->dictSize = (U32)dictSize; |
860 | 862 | |
861 | return 1; | |
863 | return dictSize; | |
862 | 864 | } |
863 | 865 | |
864 | 866 | |
868 | 870 | ****************************/ |
869 | 871 | /* |
870 | 872 | * This generic decompression function cover all use cases. |
871 | * It shall be instanciated several times, using different sets of directives | |
873 | * It shall be instantiated several times, using different sets of directives | |
872 | 874 | * Note that it is essential this generic function is really inlined, |
873 | * in order to remove useless branches during compilation optimisation. | |
875 | * in order to remove useless branches during compilation optimization. | |
874 | 876 | */ |
875 | 877 | FORCE_INLINE int LZ4_decompress_generic( |
876 | 878 | const char* source, |
898 | 900 | const BYTE* const lowLimit = (const BYTE*)dest - dictSize; |
899 | 901 | |
900 | 902 | const BYTE* const dictEnd = (const BYTE*)dictStart + dictSize; |
901 | const size_t dec32table[] = {4-0, 4-3, 4-2, 4-3, 4-0, 4-0, 4-0, 4-0}; /* note : static reduces speed for LZ4_decompress_safe() on GCC64 */ | |
902 | static const size_t dec64table[] = {0, 0, 0, (size_t)-1, 0, 1, 2, 3}; | |
903 | const size_t dec32table[] = {4, 1, 2, 1, 4, 4, 4, 4}; | |
904 | const size_t dec64table[] = {0, 0, 0, (size_t)-1, 0, 1, 2, 3}; | |
903 | 905 | |
904 | 906 | const int safeDecode = (endOnInput==endOnInputSize); |
905 | 907 | const int checkOffset = ((safeDecode) && (dictSize < (int)(64 KB))); |
970 | 972 | } while (s==255); |
971 | 973 | if ((safeDecode) && LZ4_32BITS && unlikely((size_t)(op+length)<(size_t)op)) goto _output_error; /* overflow detection */ |
972 | 974 | } |
975 | length += MINMATCH; | |
973 | 976 | |
974 | 977 | /* check external dictionary */ |
975 | 978 | if ((dict==usingExtDict) && (ref < (BYTE* const)dest)) |
976 | 979 | { |
977 | if (unlikely(op+length+MINMATCH > oend-LASTLITERALS)) goto _output_error; | |
978 | ||
979 | if (length+MINMATCH <= (size_t)(dest-(char*)ref)) | |
980 | if (unlikely(op+length > oend-LASTLITERALS)) goto _output_error; | |
981 | ||
982 | if (length <= (size_t)(dest-(char*)ref)) | |
980 | 983 | { |
981 | 984 | ref = dictEnd - (dest-(char*)ref); |
982 | memcpy(op, ref, length+MINMATCH); | |
983 | op += length+MINMATCH; | |
985 | memcpy(op, ref, length); | |
986 | op += length; | |
984 | 987 | } |
985 | 988 | else |
986 | 989 | { |
987 | 990 | size_t copySize = (size_t)(dest-(char*)ref); |
988 | 991 | memcpy(op, dictEnd - copySize, copySize); |
989 | 992 | op += copySize; |
990 | copySize = length+MINMATCH - copySize; | |
993 | copySize = length - copySize; | |
991 | 994 | if (copySize > (size_t)((char*)op-dest)) /* overlap */ |
992 | 995 | { |
993 | 996 | BYTE* const endOfMatch = op + copySize; |
1004 | 1007 | } |
1005 | 1008 | |
1006 | 1009 | /* copy repeated sequence */ |
1010 | cpy = op + length; | |
1007 | 1011 | if (unlikely((op-ref)<(int)STEPSIZE)) |
1008 | 1012 | { |
1009 | const size_t dec64 = dec64table[LZ4_32BITS ? 0 : op-ref]; | |
1013 | const size_t dec64 = dec64table[op-ref]; | |
1010 | 1014 | op[0] = ref[0]; |
1011 | 1015 | op[1] = ref[1]; |
1012 | 1016 | op[2] = ref[2]; |
1013 | 1017 | op[3] = ref[3]; |
1014 | 1018 | ref += dec32table[op-ref]; |
1015 | 1019 | A32(op+4) = A32(ref); |
1016 | op += STEPSIZE; ref -= dec64; | |
1017 | } else { LZ4_COPYSTEP(op,ref); } | |
1018 | cpy = op + length - (STEPSIZE-4); | |
1019 | ||
1020 | if (unlikely(cpy>oend-COPYLENGTH-(STEPSIZE-4))) | |
1020 | op += 8; ref -= dec64; | |
1021 | } else { LZ4_COPY8(op,ref); } | |
1022 | ||
1023 | if (unlikely(cpy>oend-12)) | |
1021 | 1024 | { |
1022 | 1025 | if (cpy > oend-LASTLITERALS) goto _output_error; /* Error : last 5 bytes must be literals */ |
1023 | 1026 | if (op<oend-COPYLENGTH) LZ4_WILDCOPY(op, ref, (oend-COPYLENGTH)); |
1024 | 1027 | while(op<cpy) *op++=*ref++; |
1025 | op=cpy; | |
1026 | continue; | |
1027 | 1028 | } |
1028 | LZ4_WILDCOPY(op, ref, cpy); | |
1029 | else LZ4_WILDCOPY(op, ref, cpy); | |
1029 | 1030 | op=cpy; /* correction */ |
1030 | 1031 | } |
1031 | 1032 | |
1152 | 1153 | the dictionary must be explicitly provided within parameters |
1153 | 1154 | */ |
1154 | 1155 | |
1156 | FORCE_INLINE int LZ4_decompress_usingDict_generic(const char* source, char* dest, int compressedSize, int maxOutputSize, int safe, const char* dictStart, int dictSize) | |
1157 | { | |
1158 | if (dictSize==0) | |
1159 | return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, noDict, NULL, 64 KB); | |
1160 | if ((dictStart+dictSize == dest) && (dictSize >= (int)(64 KB - 1))) | |
1161 | return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, withPrefix64k, NULL, 64 KB); | |
1162 | return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, safe, full, 0, usingExtDict, dictStart, dictSize); | |
1163 | } | |
1164 | ||
1155 | 1165 | int LZ4_decompress_safe_usingDict(const char* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize) |
1156 | 1166 | { |
1167 | //return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, endOnInputSize, full, 0, usingExtDict, dictStart, dictSize); | |
1168 | return LZ4_decompress_usingDict_generic(source, dest, compressedSize, maxOutputSize, 1, dictStart, dictSize); | |
1169 | } | |
1170 | ||
1171 | int LZ4_decompress_fast_usingDict(const char* source, char* dest, int originalSize, const char* dictStart, int dictSize) | |
1172 | { | |
1173 | //return LZ4_decompress_generic(source, dest, 0, originalSize, endOnOutputSize, full, 0, usingExtDict, dictStart, dictSize); | |
1174 | return LZ4_decompress_usingDict_generic(source, dest, 0, originalSize, 0, dictStart, dictSize); | |
1175 | } | |
1176 | ||
1177 | /* debug function */ | |
1178 | int LZ4_decompress_safe_forceExtDict(const char* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize) | |
1179 | { | |
1157 | 1180 | return LZ4_decompress_generic(source, dest, compressedSize, maxOutputSize, endOnInputSize, full, 0, usingExtDict, dictStart, dictSize); |
1158 | } | |
1159 | ||
1160 | int LZ4_decompress_fast_usingDict(const char* source, char* dest, int originalSize, const char* dictStart, int dictSize) | |
1161 | { | |
1162 | return LZ4_decompress_generic(source, dest, 0, originalSize, endOnOutputSize, full, 0, usingExtDict, dictStart, dictSize); | |
1163 | 1181 | } |
1164 | 1182 | |
1165 | 1183 |
36 | 36 | extern "C" { |
37 | 37 | #endif |
38 | 38 | |
39 | /* | |
40 | * lz4.h provides raw compression format functions, for optimal performance and integration into programs. | |
41 | * If you need to generate data using an inter-operable format (respecting the framing specification), | |
42 | * please use lz4frame.h instead. | |
43 | */ | |
39 | 44 | |
40 | 45 | /************************************** |
41 | 46 | Version |
42 | 47 | **************************************/ |
43 | 48 | #define LZ4_VERSION_MAJOR 1 /* for major interface/format changes */ |
44 | 49 | #define LZ4_VERSION_MINOR 3 /* for minor interface/format changes */ |
45 | #define LZ4_VERSION_RELEASE 0 /* for tweaks, bug-fixes, or development */ | |
50 | #define LZ4_VERSION_RELEASE 1 /* for tweaks, bug-fixes, or development */ | |
46 | 51 | #define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE) |
47 | 52 | int LZ4_versionNumber (void); |
48 | 53 | |
63 | 68 | Simple Functions |
64 | 69 | **************************************/ |
65 | 70 | |
66 | int LZ4_compress (const char* source, char* dest, int inputSize); | |
71 | int LZ4_compress (const char* source, char* dest, int sourceSize); | |
67 | 72 | int LZ4_decompress_safe (const char* source, char* dest, int compressedSize, int maxDecompressedSize); |
68 | 73 | |
69 | 74 | /* |
70 | 75 | LZ4_compress() : |
71 | Compresses 'inputSize' bytes from 'source' into 'dest'. | |
76 | Compresses 'sourceSize' bytes from 'source' into 'dest'. | |
72 | 77 | Destination buffer must be already allocated, |
73 | 78 | and must be sized to handle worst cases situations (input data not compressible) |
74 | 79 | Worst case size evaluation is provided by function LZ4_compressBound() |
82 | 87 | return : the number of bytes decompressed into the destination buffer (necessarily <= maxDecompressedSize) |
83 | 88 | If the destination buffer is not large enough, decoding will stop and output an error code (<0). |
84 | 89 | If the source stream is detected malformed, the function will stop decoding and return a negative result. |
85 | This function is protected against buffer overflow exploits : | |
86 | it never writes outside of output buffer, and never reads outside of input buffer. | |
87 | Therefore, it is protected against malicious data packets. | |
88 | */ | |
89 | ||
90 | ||
91 | /* | |
92 | Note : | |
93 | Should you prefer to explicitly allocate compression-table memory using your own allocation method, | |
94 | use the streaming functions provided below, simply reset the memory area between each call to LZ4_compress_continue() | |
90 | This function is protected against buffer overflow exploits, | |
91 | and never writes outside of output buffer, nor reads outside of input buffer. | |
92 | It is also protected against malicious data packets. | |
95 | 93 | */ |
96 | 94 | |
97 | 95 | |
103 | 101 | |
104 | 102 | /* |
105 | 103 | LZ4_compressBound() : |
106 | Provides the maximum size that LZ4 may output in a "worst case" scenario (input data not compressible) | |
107 | primarily useful for memory allocation of output buffer. | |
108 | macro is also provided when result needs to be evaluated at compilation (such as stack memory allocation). | |
104 | Provides the maximum size that LZ4 compression may output in a "worst case" scenario (input data not compressible) | |
105 | This function is primarily useful for memory allocation purposes (output buffer size). | |
106 | Macro LZ4_COMPRESSBOUND() is also provided for compilation-time evaluation (stack memory allocation for example). | |
109 | 107 | |
110 | 108 | isize : is the input size. Max supported value is LZ4_MAX_INPUT_SIZE |
111 | 109 | return : maximum output size in a "worst case" scenario |
116 | 114 | |
117 | 115 | /* |
118 | 116 | LZ4_compress_limitedOutput() : |
119 | Compress 'inputSize' bytes from 'source' into an output buffer 'dest' of maximum size 'maxOutputSize'. | |
117 | Compress 'sourceSize' bytes from 'source' into an output buffer 'dest' of maximum size 'maxOutputSize'. | |
120 | 118 | If it cannot achieve it, compression will stop, and result of the function will be zero. |
119 | This saves time and memory on detecting non-compressible (or barely compressible) data. | |
121 | 120 | This function never writes outside of provided output buffer. |
122 | 121 | |
123 | inputSize : Max supported value is LZ4_MAX_INPUT_VALUE | |
122 | sourceSize : Max supported value is LZ4_MAX_INPUT_VALUE | |
124 | 123 | maxOutputSize : is the size of the destination buffer (which must be already allocated) |
125 | 124 | return : the number of bytes written in buffer 'dest' |
126 | or 0 if the compression fails | |
127 | */ | |
128 | int LZ4_compress_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); | |
125 | or 0 if compression fails | |
126 | */ | |
127 | int LZ4_compress_limitedOutput (const char* source, char* dest, int sourceSize, int maxOutputSize); | |
129 | 128 | |
130 | 129 | |
131 | 130 | /* |
147 | 146 | Destination buffer must be already allocated. Its size must be a minimum of 'originalSize' bytes. |
148 | 147 | note : This function fully respect memory boundaries for properly formed compressed data. |
149 | 148 | It is a bit faster than LZ4_decompress_safe(). |
150 | However, it does not provide any protection against intentionnally modified data stream (malicious input). | |
149 | However, it does not provide any protection against intentionally modified data stream (malicious input). | |
151 | 150 | Use this function in trusted environment only (data to decode comes from a trusted source). |
152 | 151 | */ |
153 | 152 | int LZ4_decompress_fast (const char* source, char* dest, int originalSize); |
183 | 182 | |
184 | 183 | /* |
185 | 184 | * LZ4_resetStream |
186 | * Use this function to init a newly allocated LZ4_stream_t structure | |
187 | * You can also reset an existing LZ4_stream_t structure | |
188 | */ | |
189 | void LZ4_resetStream (LZ4_stream_t* LZ4_stream); | |
185 | * Use this function to init an allocated LZ4_stream_t structure | |
186 | */ | |
187 | void LZ4_resetStream (LZ4_stream_t* LZ4_streamPtr); | |
190 | 188 | |
191 | 189 | /* |
192 | 190 | * If you prefer dynamic allocation methods, |
222 | 220 | /* |
223 | 221 | * LZ4_saveDict |
224 | 222 | * If previously compressed data block is not guaranteed to remain available at its memory location |
225 | * save it into a safe place (char* safeBuffer) | |
223 | * save it into a safer place (char* safeBuffer) | |
226 | 224 | * Note : you don't need to call LZ4_loadDict() afterwards, |
227 | 225 | * dictionary is immediately usable, you can therefore call again LZ4_compress_continue() |
228 | * Return : 1 if OK, 0 if error | |
226 | * Return : dictionary size in bytes, or 0 if error | |
229 | 227 | * Note : any dictSize > 64 KB will be interpreted as 64KB. |
230 | 228 | */ |
231 | 229 | int LZ4_saveDict (LZ4_stream_t* LZ4_stream, char* safeBuffer, int dictSize); |
267 | 265 | These decoding functions allow decompression of multiple blocks in "streaming" mode. |
268 | 266 | Previously decoded blocks must still be available at the memory position where they were decoded. |
269 | 267 | If it's not possible, save the relevant part of decoded data into a safe buffer, |
270 | and indicate where its new address using LZ4_setDictDecode() | |
271 | */ | |
272 | int LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* source, char* dest, int compressedSize, int maxOutputSize); | |
268 | and indicate where its new address using LZ4_setStreamDecode() | |
269 | */ | |
270 | int LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* source, char* dest, int compressedSize, int maxDecompressedSize); | |
273 | 271 | int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* source, char* dest, int originalSize); |
274 | 272 | |
275 | 273 | |
278 | 276 | *_usingDict() : |
279 | 277 | These decoding functions work the same as |
280 | 278 | a combination of LZ4_setDictDecode() followed by LZ4_decompress_x_continue() |
281 | all together into a single function call. | |
282 | It doesn't use nor update an LZ4_streamDecode_t structure. | |
283 | */ | |
284 | int LZ4_decompress_safe_usingDict (const char* source, char* dest, int compressedSize, int maxOutputSize, const char* dictStart, int dictSize); | |
279 | They don't use nor update an LZ4_streamDecode_t structure. | |
280 | */ | |
281 | int LZ4_decompress_safe_usingDict (const char* source, char* dest, int compressedSize, int maxDecompressedSize, const char* dictStart, int dictSize); | |
285 | 282 | int LZ4_decompress_fast_usingDict (const char* source, char* dest, int originalSize, const char* dictStart, int dictSize); |
286 | 283 | |
287 | 284 |
1100 | 1100 | { |
1101 | 1101 | *pnt = 0; |
1102 | 1102 | num = strchr(buf, '1'); |
1103 | if(!num) | |
1104 | { | |
1105 | num = strchr(buf, '0'); /* verilator */ | |
1106 | if(num) { *num = '1'; } | |
1107 | } | |
1103 | 1108 | } |
1104 | 1109 | |
1105 | 1110 | if(!num) |
1183 | 1183 | /* don't want to increment a whole page thereby completely losing where I am... */ |
1184 | 1184 | |
1185 | 1185 | void |
1186 | alt_move_left(GtkWidget *text, gpointer data) | |
1187 | { | |
1188 | (void)text; | |
1189 | (void)data; | |
1190 | ||
1186 | alt_move_left(gboolean fine_scroll) | |
1187 | { | |
1191 | 1188 | TimeType ntinc, ntfrac; |
1192 | 1189 | |
1193 | 1190 | ntinc=(TimeType)(((gdouble)GLOBALS->wavewidth)*GLOBALS->nspx); /* really don't need this var but the speed of ui code is human dependent.. */ |
1194 | ntfrac=ntinc*GLOBALS->page_divisor*SANE_INCREMENT; | |
1191 | ntfrac=ntinc*GLOBALS->page_divisor*(SANE_INCREMENT / (fine_scroll ? 8.0 : 1.0)); | |
1192 | if(!ntfrac) ntfrac = 1; | |
1195 | 1193 | |
1196 | 1194 | if((GLOBALS->tims.start-ntfrac)>GLOBALS->tims.first) |
1197 | 1195 | GLOBALS->tims.timecache=GLOBALS->tims.start-ntfrac; |
1205 | 1203 | } |
1206 | 1204 | |
1207 | 1205 | void |
1208 | alt_move_right(GtkWidget *text, gpointer data) | |
1209 | { | |
1210 | (void)text; | |
1211 | (void)data; | |
1212 | ||
1206 | alt_move_right(gboolean fine_scroll) | |
1207 | { | |
1213 | 1208 | TimeType ntinc, ntfrac; |
1214 | 1209 | |
1215 | 1210 | ntinc=(TimeType)(((gdouble)GLOBALS->wavewidth)*GLOBALS->nspx); |
1216 | ntfrac=ntinc*GLOBALS->page_divisor*SANE_INCREMENT; | |
1211 | ntfrac=ntinc*GLOBALS->page_divisor*(SANE_INCREMENT / (fine_scroll ? 8.0 : 1.0)); | |
1212 | if(!ntfrac) ntfrac = 1; | |
1217 | 1213 | |
1218 | 1214 | if((GLOBALS->tims.start+ntfrac)<(GLOBALS->tims.last-ntinc+1)) |
1219 | 1215 | { |
1388 | 1384 | { |
1389 | 1385 | /* wheel alone - scroll part of a page along */ |
1390 | 1386 | if(event->direction == GDK_SCROLL_UP) |
1391 | alt_move_left(NULL, 0); | |
1387 | alt_move_left((event->state & GDK_SHIFT_MASK) != 0); /* finer scroll if shift */ | |
1392 | 1388 | else if(event->direction == GDK_SCROLL_DOWN) |
1393 | alt_move_right(NULL, 0); | |
1389 | alt_move_right((event->state & GDK_SHIFT_MASK) != 0); /* finer scroll if shift */ | |
1394 | 1390 | } |
1395 | 1391 | } |
1396 | 1392 | else |