Skip to content

Commit

Permalink
Merge tag 'orig/1.7.1.1' into winport
Browse files Browse the repository at this point in the history
Import v1.7.1 r1

http://www.openfst.org/twiki/bin/viewfile/FST/FstDownload?filename=openfst-1.7.1.tar.gz;rev=1

 * Undo change to src/include/fst/float-weight.h made in 8b6ac5d.
   Either latest cl is fine with this type of specialization, or
   the change to constexpr made it content. Anyway, our strategy
   is to keep patches to the original code to the minimum, possibly
   at the expense of not supporting quirks of the older MSVC cl
   compiler.
  • Loading branch information
kkm committed Feb 25, 2019
2 parents 983a25b + e2790a0 commit 6ee984b
Show file tree
Hide file tree
Showing 40 changed files with 5,856 additions and 4,225 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
OpenFst: Release 1.7
* Evaluates many weight operations at compile-time (1.7.1)
* Adds configure-time test for float equality reflexivity (1.7.0)
* Adds additional overloads to Equals (1.7.0)
* Removes volatile qualifiers from float weights (1.7.0)
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OpenFst: Release 1.7.0.
OpenFst: Release 1.7.1.

OpenFst is a library for constructing, combining, optimizing, and searching
weighted finite-state transducers (FSTs).
Expand Down
20 changes: 10 additions & 10 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for OpenFst 1.7.0.
# Generated by GNU Autoconf 2.69 for OpenFst 1.7.1.
#
# Report bugs to <help@www.openfst.org>.
#
Expand Down Expand Up @@ -590,8 +590,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='OpenFst'
PACKAGE_TARNAME='openfst'
PACKAGE_VERSION='1.7.0'
PACKAGE_STRING='OpenFst 1.7.0'
PACKAGE_VERSION='1.7.1'
PACKAGE_STRING='OpenFst 1.7.1'
PACKAGE_BUGREPORT='help@www.openfst.org'
PACKAGE_URL=''

Expand Down Expand Up @@ -1395,7 +1395,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures OpenFst 1.7.0 to adapt to many kinds of systems.
\`configure' configures OpenFst 1.7.1 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1466,7 +1466,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of OpenFst 1.7.0:";;
short | recursive ) echo "Configuration of OpenFst 1.7.1:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1598,7 +1598,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
OpenFst configure 1.7.0
OpenFst configure 1.7.1
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2039,7 +2039,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by OpenFst $as_me 1.7.0, which was
It was created by OpenFst $as_me 1.7.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -2902,7 +2902,7 @@ fi

# Define the identity of the package.
PACKAGE='openfst'
VERSION='1.7.0'
VERSION='1.7.1'


cat >>confdefs.h <<_ACEOF
Expand Down Expand Up @@ -17458,7 +17458,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by OpenFst $as_me 1.7.0, which was
This file was extended by OpenFst $as_me 1.7.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -17524,7 +17524,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
OpenFst config.status 1.7.0
OpenFst config.status 1.7.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([OpenFst], [1.7.0], [help@www.openfst.org])
AC_INIT([OpenFst], [1.7.1], [help@www.openfst.org])
AM_INIT_AUTOMAKE([foreign nostdinc -Wall -Werror subdir-objects])
AM_PROG_AR

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compact/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libfst_LTLIBRARIES = compact8_acceptor-fst.la compact8_string-fst.la compact8_un
lib_LTLIBRARIES = libfstcompact.la

libfstcompact_la_SOURCES = compact8_acceptor-fst.cc compact8_string-fst.cc compact8_unweighted-fst.cc compact8_unweighted_acceptor-fst.cc compact8_weighted_string-fst.cc compact16_acceptor-fst.cc compact16_string-fst.cc compact16_unweighted-fst.cc compact16_unweighted_acceptor-fst.cc compact16_weighted_string-fst.cc compact64_acceptor-fst.cc compact64_string-fst.cc compact64_unweighted-fst.cc compact64_unweighted_acceptor-fst.cc compact64_weighted_string-fst.cc
libfstcompact_la_LDFLAGS = -version-info 14:0:0
libfstcompact_la_LDFLAGS = -version-info 15:0:0
libfstcompact_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

compact8_acceptor_fst_la_SOURCES = compact8_acceptor-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compact/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
libfst_LTLIBRARIES = compact8_acceptor-fst.la compact8_string-fst.la compact8_unweighted-fst.la compact8_unweighted_acceptor-fst.la compact8_weighted_string-fst.la compact16_acceptor-fst.la compact16_string-fst.la compact16_unweighted-fst.la compact16_unweighted_acceptor-fst.la compact16_weighted_string-fst.la compact64_acceptor-fst.la compact64_string-fst.la compact64_unweighted-fst.la compact64_unweighted_acceptor-fst.la compact64_weighted_string-fst.la
lib_LTLIBRARIES = libfstcompact.la
libfstcompact_la_SOURCES = compact8_acceptor-fst.cc compact8_string-fst.cc compact8_unweighted-fst.cc compact8_unweighted_acceptor-fst.cc compact8_weighted_string-fst.cc compact16_acceptor-fst.cc compact16_string-fst.cc compact16_unweighted-fst.cc compact16_unweighted_acceptor-fst.cc compact16_weighted_string-fst.cc compact64_acceptor-fst.cc compact64_string-fst.cc compact64_unweighted-fst.cc compact64_unweighted_acceptor-fst.cc compact64_weighted_string-fst.cc
libfstcompact_la_LDFLAGS = -version-info 14:0:0
libfstcompact_la_LDFLAGS = -version-info 15:0:0
libfstcompact_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
compact8_acceptor_fst_la_SOURCES = compact8_acceptor-fst.cc
compact8_acceptor_fst_la_LDFLAGS = -module
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compress/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif

if HAVE_SCRIPT
libfstcompressscript_la_SOURCES = compress-script.cc
libfstcompressscript_la_LDFLAGS = -version-info 14:0:0
libfstcompressscript_la_LDFLAGS = -version-info 15:0:0
libfstcompressscript_la_LIBADD = \
../../script/libfstscript.la \
../../lib/libfst.la -lz -lm $(DL_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/compress/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@fstcompress_SOURCES = fstcompress.cc
@HAVE_BIN_TRUE@fstrandmod_SOURCES = fstrandmod.cc
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_SOURCES = compress-script.cc
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_LDFLAGS = -version-info 14:0:0
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_LDFLAGS = -version-info 15:0:0
@HAVE_SCRIPT_TRUE@libfstcompressscript_la_LIBADD = \
@HAVE_SCRIPT_TRUE@ ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lz -lm $(DL_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/const/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ libfst_LTLIBRARIES = const8-fst.la const16-fst.la const64-fst.la
lib_LTLIBRARIES = libfstconst.la

libfstconst_la_SOURCES = const8-fst.cc const16-fst.cc const64-fst.cc
libfstconst_la_LDFLAGS = -version-info 14:0:0 -lm $(DL_LIBS)
libfstconst_la_LDFLAGS = -version-info 15:0:0 -lm $(DL_LIBS)
libfstconst_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

const8_fst_la_SOURCES = const8-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/const/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
libfst_LTLIBRARIES = const8-fst.la const16-fst.la const64-fst.la
lib_LTLIBRARIES = libfstconst.la
libfstconst_la_SOURCES = const8-fst.cc const16-fst.cc const64-fst.cc
libfstconst_la_LDFLAGS = -version-info 14:0:0 -lm $(DL_LIBS)
libfstconst_la_LDFLAGS = -version-info 15:0:0 -lm $(DL_LIBS)
libfstconst_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
const8_fst_la_SOURCES = const8-fst.cc
const8_fst_la_LDFLAGS = -module
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/far/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ lib_LTLIBRARIES = libfstfar.la
endif

libfstfar_la_SOURCES = sttable.cc stlist.cc
libfstfar_la_LDFLAGS = -version-info 14:0:0
libfstfar_la_LDFLAGS = -version-info 15:0:0
libfstfar_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

if HAVE_SCRIPT
libfstfarscript_la_SOURCES = far-class.cc farscript.cc getters.cc script-impl.cc \
strings.cc
libfstfarscript_la_LDFLAGS = -version-info 14:0:0
libfstfarscript_la_LDFLAGS = -version-info 15:0:0
libfstfarscript_la_LIBADD = \
libfstfar.la ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/far/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,12 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_SCRIPT_FALSE@lib_LTLIBRARIES = libfstfar.la
@HAVE_SCRIPT_TRUE@lib_LTLIBRARIES = libfstfar.la libfstfarscript.la
libfstfar_la_SOURCES = sttable.cc stlist.cc
libfstfar_la_LDFLAGS = -version-info 14:0:0
libfstfar_la_LDFLAGS = -version-info 15:0:0
libfstfar_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
@HAVE_SCRIPT_TRUE@libfstfarscript_la_SOURCES = far-class.cc farscript.cc getters.cc script-impl.cc \
@HAVE_SCRIPT_TRUE@ strings.cc

@HAVE_SCRIPT_TRUE@libfstfarscript_la_LDFLAGS = -version-info 14:0:0
@HAVE_SCRIPT_TRUE@libfstfarscript_la_LDFLAGS = -version-info 15:0:0
@HAVE_SCRIPT_TRUE@libfstfarscript_la_LIBADD = \
@HAVE_SCRIPT_TRUE@ libfstfar.la ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/linear/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endif

if HAVE_SCRIPT
libfstlinearscript_la_SOURCES = linearscript.cc
libfstlinearscript_la_LDFLAGS = -version-info 14:0:0 -lm $(DL_LIBS)
libfstlinearscript_la_LDFLAGS = -version-info 15:0:0 -lm $(DL_LIBS)
libfstlinearscript_la_LIBADD = ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
endif
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/linear/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@fstlinear_SOURCES = fstlinear.cc
@HAVE_BIN_TRUE@fstloglinearapply_SOURCES = fstloglinearapply.cc
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_SOURCES = linearscript.cc
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_LDFLAGS = -version-info 14:0:0 -lm $(DL_LIBS)
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_LDFLAGS = -version-info 15:0:0 -lm $(DL_LIBS)
@HAVE_SCRIPT_TRUE@libfstlinearscript_la_LIBADD = ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/lookahead/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ lib_LTLIBRARIES = libfstlookahead.la

libfstlookahead_la_SOURCES = arc_lookahead-fst.cc ilabel_lookahead-fst.cc \
olabel_lookahead-fst.cc
libfstlookahead_la_LDFLAGS = -version-info 14:0:0
libfstlookahead_la_LDFLAGS = -version-info 15:0:0
libfstlookahead_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)

arc_lookahead_fst_la_SOURCES = arc_lookahead-fst.cc
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/lookahead/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ lib_LTLIBRARIES = libfstlookahead.la
libfstlookahead_la_SOURCES = arc_lookahead-fst.cc ilabel_lookahead-fst.cc \
olabel_lookahead-fst.cc

libfstlookahead_la_LDFLAGS = -version-info 14:0:0
libfstlookahead_la_LDFLAGS = -version-info 15:0:0
libfstlookahead_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
arc_lookahead_fst_la_SOURCES = arc_lookahead-fst.cc
arc_lookahead_fst_la_LDFLAGS = -module
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/mpdt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif
if HAVE_SCRIPT
lib_LTLIBRARIES = libfstmpdtscript.la
libfstmpdtscript_la_SOURCES = mpdtscript.cc
libfstmpdtscript_la_LDFLAGS = -version-info 14:0:0
libfstmpdtscript_la_LDFLAGS = -version-info 15:0:0
libfstmpdtscript_la_LIBADD = ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
endif
2 changes: 1 addition & 1 deletion src/extensions/mpdt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@mpdtreverse_SOURCES = mpdtreverse.cc
@HAVE_SCRIPT_TRUE@lib_LTLIBRARIES = libfstmpdtscript.la
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_SOURCES = mpdtscript.cc
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_LDFLAGS = -version-info 14:0:0
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_LDFLAGS = -version-info 15:0:0
@HAVE_SCRIPT_TRUE@libfstmpdtscript_la_LIBADD = ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/ngram/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ ngram_fst_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
ngram_fst_la_LDFLAGS = -module

libfstngram_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
libfstngram_la_LDFLAGS = -version-info 14:0:0
libfstngram_la_LDFLAGS = -version-info 15:0:0
libfstngram_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
2 changes: 1 addition & 1 deletion src/extensions/ngram/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ lib_LTLIBRARIES = libfstngram.la
ngram_fst_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
ngram_fst_la_LDFLAGS = -module
libfstngram_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc
libfstngram_la_LDFLAGS = -version-info 14:0:0
libfstngram_la_LDFLAGS = -version-info 15:0:0
libfstngram_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS)
all: all-am

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/pdt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif
if HAVE_SCRIPT
lib_LTLIBRARIES = libfstpdtscript.la
libfstpdtscript_la_SOURCES = getters.cc pdtscript.cc
libfstpdtscript_la_LDFLAGS = -version-info 14:0:0
libfstpdtscript_la_LDFLAGS = -version-info 15:0:0
libfstpdtscript_la_LIBADD = ../../script/libfstscript.la \
../../lib/libfst.la -lm $(DL_LIBS)
endif
2 changes: 1 addition & 1 deletion src/extensions/pdt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS)
@HAVE_BIN_TRUE@pdtshortestpath_SOURCES = pdtshortestpath.cc
@HAVE_SCRIPT_TRUE@lib_LTLIBRARIES = libfstpdtscript.la
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_SOURCES = getters.cc pdtscript.cc
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_LDFLAGS = -version-info 14:0:0
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_LDFLAGS = -version-info 15:0:0
@HAVE_SCRIPT_TRUE@libfstpdtscript_la_LIBADD = ../../script/libfstscript.la \
@HAVE_SCRIPT_TRUE@ ../../lib/libfst.la -lm $(DL_LIBS)

Expand Down
2 changes: 2 additions & 0 deletions src/extensions/python/fst.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ cdef extern from "<fst/script/fstscript.h>" namespace "fst::script" nogil:

string ToString()

bool Member()

@staticmethod
const WeightClass &Zero(const string &)

Expand Down
Loading

0 comments on commit 6ee984b

Please sign in to comment.