pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/festival ISO C++ doesn't allow default arguments...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1e7fdd4ff7c
branches:  trunk
changeset: 621814:f1e7fdd4ff7c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jul 18 11:57:42 2013 +0000

description:
ISO C++ doesn't allow default arguments on friends, if they are not
declarations as well.

diffstat:

 audio/festival/distinfo                                            |   4 +-
 audio/festival/patches/patch-speech__tools_include_EST__Ngrammar.h |  57 ++++++++++
 audio/festival/patches/patch-speech__tools_include_EST__String.h   |  30 +++++
 3 files changed, 90 insertions(+), 1 deletions(-)

diffs (114 lines):

diff -r 9f1ae808f88f -r f1e7fdd4ff7c audio/festival/distinfo
--- a/audio/festival/distinfo   Thu Jul 18 08:04:40 2013 +0000
+++ b/audio/festival/distinfo   Thu Jul 18 11:57:42 2013 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2013/06/13 21:40:43 joerg Exp $
+$NetBSD: distinfo,v 1.22 2013/07/18 11:57:42 joerg Exp $
 
 SHA1 (festival-2.1-release.tar.gz) = f0c5a4282667898c584516e3605742835f59cb77
 RMD160 (festival-2.1-release.tar.gz) = b3c646ecc532e4e05f846db06bbab12a13ec1d6b
@@ -19,7 +19,9 @@
 SHA1 (patch-speech__tools_base__class_inst__tmpl_vector__fmatrix__t.cc) = 1d64a2e5aa1dc8c5b7d275e2bf66b2e96b599c35
 SHA1 (patch-speech__tools_config_compilers_gcc__defaults.mak) = 7441f2e424046dd50c1531160a5b5f94b8506e9d
 SHA1 (patch-speech__tools_config_rules_compile__options.mak) = d3aa93029edba84f8130f1bc33c8d74219bafd9a
+SHA1 (patch-speech__tools_include_EST__Ngrammar.h) = 60386b763231dc096632405a0d2c552a006f6269
 SHA1 (patch-speech__tools_include_EST__SCFG.h) = d58bc030dec4d526a89719e32c3624c642f33f3e
+SHA1 (patch-speech__tools_include_EST__String.h) = 21961c1864eddc025a763081315b7f40f2450735
 SHA1 (patch-speech__tools_include_EST__TIterator.h) = db7617f5c4a802672ce3b098ecd512b6cdb96aeb
 SHA1 (patch-speech__tools_include_EST__TNamedEnum.h) = f240a338d17d7a36a5dba1b0f3b48190b235bf03
 SHA1 (patch-speech__tools_include_EST__error.h) = 26c99948bee89f11b39efbb9d6eb195e1fb1602d
diff -r 9f1ae808f88f -r f1e7fdd4ff7c audio/festival/patches/patch-speech__tools_include_EST__Ngrammar.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/patches/patch-speech__tools_include_EST__Ngrammar.h        Thu Jul 18 11:57:42 2013 +0000
@@ -0,0 +1,57 @@
+$NetBSD: patch-speech__tools_include_EST__Ngrammar.h,v 1.1 2013/07/18 11:57:42 joerg Exp $
+
+--- spech_tools/include/EST_Ngrammar.h.orig    2013-07-17 14:46:59.000000000 +0000
++++ spech_tools/include/EST_Ngrammar.h
+@@ -538,18 +538,18 @@ public:
+                                                    double floor);
+     friend EST_write_status save_ngram_htk_ascii(const EST_String filename, 
+                                                EST_Ngrammar &n,
+-                                               double floor=0.0);
++                                               double floor);
+ 
+     //friend EST_write_status save_ngram_htk_binary(const EST_String filename, 
+     //                                          EST_Ngrammar &n);
+     friend EST_write_status save_ngram_cstr_ascii(const EST_String filename, 
+                                                 EST_Ngrammar &n,
+-                                                const bool trace=false,
+-                                                double floor=0.0);
++                                                const bool trace,
++                                                double floor);
+     friend EST_write_status save_ngram_cstr_bin(const EST_String filename, 
+                                               EST_Ngrammar &n, 
+-                                              const bool trace=false,
+-                                              double floor=0.0);
++                                              const bool trace,
++                                              double floor);
+     friend EST_write_status save_ngram_arpa(const EST_String filename, 
+                                           EST_Ngrammar &n);
+     friend EST_write_status save_ngram_arpa_sub(ostream *ost, 
+@@ -561,11 +561,11 @@ public:
+     // Auxiliary functions
+     
+     // smoothing
+-friend void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order=0);
+-friend void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order=0);
+-friend bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount=0);
++friend void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order);
++friend void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order);
++friend bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount);
+ friend void Good_Turing_discount(EST_Ngrammar &ngrammar, const int maxcount,
+-                               const double default_discount=0.5);
++                               const double default_discount);
+ 
+ friend void fs_build_backoff_ngrams(EST_Ngrammar *backoff_ngrams,
+                                   EST_Ngrammar &ngram);
+@@ -584,6 +584,12 @@ friend class EST_BackoffNgrammar;
+     
+ };
+ 
++void frequency_of_frequencies(EST_DVector &ff, EST_Ngrammar &n,int this_order=0);
++void map_frequencies(EST_Ngrammar &n, const EST_DVector &map, const int this_order=0);
++bool Good_Turing_smooth(EST_Ngrammar &n, int maxcount, int mincount=0);
++void Good_Turing_discount(EST_Ngrammar &ngrammar, const int maxcount,
++                               const double default_discount=0.5);
++
+ void Ngram_freqsmooth(EST_Ngrammar &ngram,
+                     int smooth_thresh1,
+                     int smooth_thresh2);
diff -r 9f1ae808f88f -r f1e7fdd4ff7c audio/festival/patches/patch-speech__tools_include_EST__String.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/patches/patch-speech__tools_include_EST__String.h  Thu Jul 18 11:57:42 2013 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-speech__tools_include_EST__String.h,v 1.1 2013/07/18 11:57:42 joerg Exp $
+
+--- speech_tools/include/EST_String.h.orig     2013-07-17 14:40:20.000000000 +0000
++++ speech_tools/include/EST_String.h
+@@ -574,10 +574,10 @@ public:
+       */
+     //@{
+     friend int fcompare(const EST_String &a, const EST_String &b, 
+-                      const unsigned char *table=NULL);
++                      const unsigned char *table);
+ 
+     friend int fcompare(const EST_String &a, const char *b, 
+-                              const unsigned char *table=NULL);
++                              const unsigned char *table);
+     ///
+     friend inline int fcompare(const EST_String &a, const EST_String &b, 
+                              const EST_String &table) 
+@@ -643,6 +643,12 @@ int operator == (const char *a, const ES
+ int operator == (const EST_String &a, const EST_String &b);
+ ostream &operator << (ostream &s, const EST_String &str);
+ 
++int fcompare(const EST_String &a, const EST_String &b, 
++           const unsigned char *table=NULL);
++ 
++int fcompare(const EST_String &a, const char *b, 
++           const unsigned char *table=NULL);
++
+ #include "EST_Regex.h"
+ 
+ #endif        



Home | Main Index | Thread Index | Old Index