@@ -396,18 +396,18 @@ inline bool ApproxEqual(const LatticeWeightTpl<FloatType> &w1,
396396template <class FloatType >
397397inline std::ostream &operator <<(std::ostream &strm, const LatticeWeightTpl<FloatType> &w) {
398398 LatticeWeightTpl<FloatType>::WriteFloatType (strm, w.Value1 ());
399- CHECK (FLAGS_fst_weight_separator .size () == 1 );
400- strm << FLAGS_fst_weight_separator [0 ]; // comma by default;
399+ CHECK (FST_FLAGS_fst_weight_separator .size () == 1 );
400+ strm << FST_FLAGS_fst_weight_separator [0 ]; // comma by default;
401401 // may or may not be settable from Kaldi programs.
402402 LatticeWeightTpl<FloatType>::WriteFloatType (strm, w.Value2 ());
403403 return strm;
404404}
405405
406406template <class FloatType >
407407inline std::istream &operator >>(std::istream &strm, LatticeWeightTpl<FloatType> &w1) {
408- CHECK (FLAGS_fst_weight_separator .size () == 1 );
408+ CHECK (FST_FLAGS_fst_weight_separator .size () == 1 );
409409 // separator defaults to ','
410- return w1.ReadNoParen (strm, FLAGS_fst_weight_separator [0 ]);
410+ return w1.ReadNoParen (strm, FST_FLAGS_fst_weight_separator [0 ]);
411411}
412412
413413
@@ -726,8 +726,8 @@ inline CompactLatticeWeightTpl<WeightType, IntType> Divide(const CompactLatticeW
726726template <class WeightType , class IntType >
727727inline std::ostream &operator <<(std::ostream &strm, const CompactLatticeWeightTpl<WeightType, IntType> &w) {
728728 strm << w.Weight ();
729- CHECK (FLAGS_fst_weight_separator .size () == 1 );
730- strm << FLAGS_fst_weight_separator [0 ]; // comma by default.
729+ CHECK (FST_FLAGS_fst_weight_separator .size () == 1 );
730+ strm << FST_FLAGS_fst_weight_separator [0 ]; // comma by default.
731731 for (size_t i = 0 ; i < w.String ().size (); i++) {
732732 strm << w.String ()[i];
733733 if (i+1 < w.String ().size ())
@@ -743,8 +743,8 @@ inline std::istream &operator >>(std::istream &strm, CompactLatticeWeightTpl<Wei
743743 if (strm.fail ()) {
744744 return strm;
745745 }
746- CHECK (FLAGS_fst_weight_separator .size () == 1 );
747- size_t pos = s.find_last_of (FLAGS_fst_weight_separator ); // normally ","
746+ CHECK (FST_FLAGS_fst_weight_separator .size () == 1 );
747+ size_t pos = s.find_last_of (FST_FLAGS_fst_weight_separator ); // normally ","
748748 if (pos == std::string::npos) {
749749 strm.clear (std::ios::badbit);
750750 return strm;
0 commit comments