]> git.donarmstrong.com Git - lilypond.git/commitdiff
Revert "Issue 4550 (2/2) Avoid "using namespace std;" in included files"
authorDavid Kastrup <dak@gnu.org>
Sun, 23 Aug 2015 19:58:47 +0000 (21:58 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 23 Aug 2015 19:58:47 +0000 (21:58 +0200)
This reverts commit 59a6d1a06432fc0ca88c3023c646182f389ec1b5.

269 files changed:
flower/file-cookie.cc
flower/file-name.cc
flower/getopt-long.cc
flower/include/cpu-timer.hh
flower/include/direction.hh
flower/include/file-cookie.hh
flower/include/file-name.hh
flower/include/file-path.hh
flower/include/flower-proto.hh
flower/include/getopt-long.hh
flower/include/international.hh
flower/include/interval-set.hh
flower/include/interval.hh
flower/include/interval.tcc
flower/include/libc-extension.hh
flower/include/matrix.hh
flower/include/memory-stream.hh
flower/include/offset.hh
flower/include/parray.hh
flower/include/polynomial.hh
flower/include/pqueue.hh
flower/include/rational.hh
flower/include/real.hh
flower/include/std-string.hh
flower/include/std-vector.hh
flower/include/string-convert.hh
flower/include/virtual-methods.hh
flower/include/warn.hh
flower/interval-set.cc
flower/libc-extension.cc
flower/memory-stream.cc
flower/polynomial.cc
flower/rational.cc
flower/real.cc
flower/std-string.cc
flower/string-convert.cc
flower/test-file-name.cc
flower/test-file-path.cc
flower/test-interval-set.cc
flower/test-std.cc
flower/test-string.cc
flower/warn.cc
lily/align-interface.cc
lily/audio-item.cc
lily/auto-beam-engraver.cc
lily/axis-group-interface.cc
lily/beam-engraver.cc
lily/beam-quanting.cc
lily/beam.cc
lily/beaming-pattern.cc
lily/book.cc
lily/break-alignment-interface.cc
lily/break-substitution.cc
lily/chord-tremolo-engraver.cc
lily/clef-engraver.cc
lily/cluster-engraver.cc
lily/completion-note-heads-engraver.cc
lily/completion-rest-engraver.cc
lily/constrained-breaking.cc
lily/cue-clef-engraver.cc
lily/custos.cc
lily/dot-column.cc
lily/dot-configuration.cc
lily/drum-note-engraver.cc
lily/figured-bass-engraver.cc
lily/file-name-map.cc
lily/font-metric.cc
lily/fretboard-engraver.cc
lily/function-documentation.cc
lily/general-scheme.cc
lily/global-context.cc
lily/grob-interface.cc
lily/grob-pq-engraver.cc
lily/hairpin.cc
lily/hara-kiri-group-spanner.cc
lily/includable-lexer.cc
lily/include/accidental-placement.hh
lily/include/align-interface.hh
lily/include/all-font-metrics.hh
lily/include/articulations.hh
lily/include/audio-column.hh
lily/include/audio-element-info.hh
lily/include/audio-item.hh
lily/include/audio-staff.hh
lily/include/axis-group-interface.hh
lily/include/beam-scoring-problem.hh
lily/include/beam.hh
lily/include/beaming-pattern.hh
lily/include/bezier.hh
lily/include/break-align-interface.hh
lily/include/change-iterator.hh
lily/include/change-sequence-iterator.hh
lily/include/coherent-ligature-engraver.hh
lily/include/column-x-positions.hh
lily/include/constrained-breaking.hh
lily/include/context-def.hh
lily/include/context.hh
lily/include/dimensions.hh
lily/include/dot-configuration.hh
lily/include/dot-formatting-problem.hh
lily/include/duration.hh
lily/include/engraver-group.hh
lily/include/file-name-map.hh
lily/include/font-metric.hh
lily/include/freetype.hh
lily/include/global-context.hh
lily/include/gregorian-ligature-engraver.hh
lily/include/gregorian-ligature.hh
lily/include/grob-array.hh
lily/include/grob-info.hh
lily/include/grob.hh
lily/include/horizontal-bracket.hh
lily/include/includable-lexer.hh
lily/include/input.hh
lily/include/interval-minefield.hh
lily/include/keyword.hh
lily/include/least-squares.hh
lily/include/ligature-engraver.hh
lily/include/lily-guile-macros.hh
lily/include/lily-guile.hh
lily/include/lily-lexer.hh
lily/include/lily-parser.hh
lily/include/lily-version.hh
lily/include/lilypond-version.hh
lily/include/lookup.hh
lily/include/main.hh
lily/include/midi-chunk.hh
lily/include/midi-item.hh
lily/include/midi-stream.hh
lily/include/midi-walker.hh
lily/include/misc.hh
lily/include/modified-font-metric.hh
lily/include/moment.hh
lily/include/music-iterator.hh
lily/include/note-collision.hh
lily/include/note-head.hh
lily/include/open-type-font.hh
lily/include/output-def.hh
lily/include/page-breaking.hh
lily/include/page-layout-problem.hh
lily/include/page-spacing-result.hh
lily/include/page-spacing.hh
lily/include/page-turn-page-breaking.hh
lily/include/pango-font.hh
lily/include/paper-column-engraver.hh
lily/include/paper-outputter.hh
lily/include/paper-score.hh
lily/include/performance.hh
lily/include/performer-group.hh
lily/include/pitch.hh
lily/include/pointer-group-interface.hh
lily/include/prob.hh
lily/include/program-option.hh
lily/include/relocate.hh
lily/include/rest.hh
lily/include/scale.hh
lily/include/score-engraver.hh
lily/include/score.hh
lily/include/script-column.hh
lily/include/separation-item.hh
lily/include/simple-spacer.hh
lily/include/skyline-pair.hh
lily/include/skyline.hh
lily/include/slur-configuration.hh
lily/include/slur-proto-engraver.hh
lily/include/slur-scoring.hh
lily/include/slur.hh
lily/include/smobs.hh
lily/include/smobs.tcc
lily/include/source-file.hh
lily/include/sources.hh
lily/include/spacing-interface.hh
lily/include/spacing-spanner.hh
lily/include/spanner.hh
lily/include/spring.hh
lily/include/staff-symbol.hh
lily/include/stem.hh
lily/include/stencil.hh
lily/include/system.hh
lily/include/tie-configuration.hh
lily/include/tie-formatting-problem.hh
lily/include/translator-dispatch-list.hh
lily/include/translator-group.hh
lily/include/translator.hh
lily/include/translator.icc
lily/include/tuplet-bracket.hh
lily/include/tuplet-number.hh
lily/input.cc
lily/keyword.cc
lily/ledger-line-spanner.cc
lily/lexer.ll
lily/lily-guile.cc
lily/lily-lexer.cc
lily/line-interface.cc
lily/lookup.cc
lily/lyric-combine-music-iterator.cc
lily/lyric-extender.cc
lily/lyric-hyphen.cc
lily/main.cc
lily/mark-engraver.cc
lily/metronome-engraver.cc
lily/midi-item.cc
lily/midi-stream.cc
lily/misc.cc
lily/modified-font-metric.cc
lily/multi-measure-rest.cc
lily/music-iterator.cc
lily/music-sequence.cc
lily/new-fingering-engraver.cc
lily/note-collision.cc
lily/note-column.cc
lily/note-head.cc
lily/note-heads-engraver.cc
lily/note-spacing.cc
lily/one-line-page-breaking.cc
lily/open-type-font.cc
lily/ottava-bracket.cc
lily/page-breaking.cc
lily/page-layout-problem.cc
lily/page-spacing.cc
lily/page-turn-engraver.cc
lily/page-turn-page-breaking.cc
lily/paper-column.cc
lily/paper-outputter.cc
lily/parse-scm.cc
lily/parser.yy
lily/part-combine-iterator.cc
lily/pdf-scheme.cc
lily/performance.cc
lily/pfb.cc
lily/program-option-scheme.cc
lily/quote-iterator.cc
lily/rest-collision.cc
lily/scm-hash.cc
lily/score.cc
lily/separation-item.cc
lily/side-position-interface.cc
lily/simple-spacer.cc
lily/simultaneous-music-iterator.cc
lily/skyline-pair.cc
lily/skyline.cc
lily/slur-configuration.cc
lily/slur-scoring.cc
lily/slur.cc
lily/source-file.cc
lily/spacing-basic.cc
lily/spacing-determine-loose-columns.cc
lily/spacing-engraver.cc
lily/spacing-interface.cc
lily/spacing-loose-columns.cc
lily/spacing-spanner.cc
lily/spring.cc
lily/staff-spacing.cc
lily/stem-tremolo.cc
lily/stem.cc
lily/stencil-integral.cc
lily/stencil.cc
lily/system-start-delimiter.cc
lily/tab-note-heads-engraver.cc
lily/tab-tie-follow-engraver.cc
lily/text-interface.cc
lily/tie-column.cc
lily/tie-formatting-problem.cc
lily/tuplet-bracket.cc
lily/tuplet-iterator.cc
lily/tuplet-number.cc
lily/vaticana-ligature-engraver.cc
lily/vaticana-ligature.cc
lily/volta-bracket.cc

index 36871d705d5e56f78aa3017c2e382301ac80875a..762acb1c065d210f92bc3ba0bf1c1087810f3a6c 100644 (file)
@@ -1,6 +1,7 @@
 
 #include <cassert>
 #include <cstdio>
+using namespace std;
 
 #include "memory-stream.hh"
 
index 24db2021b0600edc3d5451cbe462ae9b2ab5078c..71b3bf27b5063a469acf05bec3c26bd18cc9f605 100644 (file)
@@ -25,6 +25,7 @@
 #include <unistd.h>
 #include <limits.h>
 
+using namespace std;
 
 #include "config.hh"
 
index 658faed9219b955c105a33e01a63751d678bcf4e..49f7c8831db25683ae0fddfd66d5b3630390f6eb 100644 (file)
@@ -318,7 +318,7 @@ Long_option_init::table_string (Long_option_init *l)
 
   size_t wid = 0;
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
-    wid = std::max (wid, l[i].str_for_help ().length ());
+    wid = max (wid, l[i].str_for_help ().length ());
 
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
     {
index e77cc1f2a6fdd769e1340c108572e6614cfaec1e..3c492eeef90ae0eec6c6a999a9eaa32aaf4fd77b 100644 (file)
@@ -21,6 +21,7 @@
 #define CPU_TIMER_HH
 
 #include <ctime>
+using namespace std;
 
 #include "real.hh"
 
index dff546749756d42526123a9d85df929e566a6149..0d36c0f7c7cca5ff25fb0a41f6917f52e1d01a83 100644 (file)
@@ -71,9 +71,9 @@ operator - (Direction d)
 template<class T> T minmax (Direction d, T a, T b)
 {
   if (d == UP)
-    return std::max (a, b);
+    return max (a, b);
   else
-    return std::min (a, b);
+    return min (a, b);
 }
 
 #endif // DIRECTION_HH
index d55a918c87c03dc8d5e4c05f6620ada45e1646cd..6bdb2366992887f45a57fdc17af68fd580111cfc 100644 (file)
@@ -5,6 +5,7 @@ extern "C" {
 #include <unistd.h>
 
 #include <cstdio>
+  using namespace std;
 
 #if (! defined (__off64_t) && ! defined (__off64_t_defined)) || ! defined (__cplusplus)
 #define off64_t unsigned long long
index 6f05a036359c1ce22323b09d4369b2f9c619c6d7..6f2da750932bede79c0bf976c25c93ddc1171c8f 100644 (file)
@@ -29,18 +29,18 @@ std::string get_working_directory ();
 class File_name
 {
 public:
-  std::string root_;
-  std::string dir_;
-  std::string base_;
-  std::string ext_;
+  string root_;
+  string dir_;
+  string base_;
+  string ext_;
 
-  File_name (std::string = "");
+  File_name (string = "");
 
   bool is_absolute () const;
-  std::string to_string () const;
+  string to_string () const;
   File_name canonicalized () const;
-  std::string dir_part () const;
-  std::string file_part () const;
+  string dir_part () const;
+  string file_part () const;
 };
 
 #endif /* FILE_NAME */
index c3597934d94f0ade334599cbe49d57bb2198f59a..1c039cf4ab0dd51efdcf0966d8edc424338b66ea 100644 (file)
 
 class File_path
 {
-  std::vector<std::string> dirs_;
+  vector<string> dirs_;
 
 public:
-  std::vector<std::string> directories () const;
-  std::string find (const std::string &name) const;
-  std::string find (const std::string &name, char const *extensions[]);
-  std::string to_string () const;
-  bool try_append (std::string str);
-  void append (const std::string&);
-  void parse_path (const std::string&);
-  void prepend (const std::string&);
+  vector<string> directories () const;
+  string find (const string &name) const;
+  string find (const string &name, char const *extensions[]);
+  string to_string () const;
+  bool try_append (string str);
+  void append (const string&);
+  void parse_path (const string&);
+  void prepend (const string&);
 };
 
-bool is_file (const std::string &file_name);
-bool is_dir (std::string file_name);
+bool is_file (const string &file_name);
+bool is_dir (string file_name);
 
 #endif /* FILE_PATH */
index 1ba3760f2e189b6c55f2dc93cc2ff205f12d3db1..33e587d0004e24442fd7e84f928f12c0a46853cb 100644 (file)
@@ -27,6 +27,7 @@ typedef long long I64;
 class String_convert;
 
 #include "real.hh"
+using namespace std;
 
 template<class T> struct Interval_t;
 template<class T> struct PQueue;
index 2e13188a6012084ca555caab7fef8ef22466b47f..52c819822c0facc1b68405ae4f7b6fc33378e840 100644 (file)
@@ -20,12 +20,12 @@ struct Long_option_init
 
   char const *help_str0_;
 
-  std::string to_string () const;
-  std::string str_for_help () const;
+  string to_string () const;
+  string str_for_help () const;
   //   NO constructor!
 
   static int compare (Long_option_init const &, Long_option_init const &);
-  static std::string table_string (Long_option_init *);
+  static string table_string (Long_option_init *);
 };
 
 /** C++ for version of long_getopt.  For processing GNU style command
index 90495578cdd88d593a0df9ee818a26c3a554a8a7..f2f48996de62ca288b80ae2d9857da79a65709b0 100644 (file)
 /**
    Internationalisation: _ ("to be translated") gets "translated" by GNU gettext
 */
-std::string _ (char const *ch);
+string _ (char const *ch);
 
 /**
    Internationalisation: _f ("Usage: %s [FILE]", "lilypond") gets "translated" by
    GNU gettext
 */
-std::string _f (char const *format, ...)
+string _f (char const *format, ...)
 __attribute__ ((format (printf, 1, 2)));
-std::string _f (char const *format, const std::string &s, const std::string &s2 = "", const std::string &s3 = "");
+string _f (char const *format, const string &s, const string &s2 = "", const string &s3 = "");
 /**
    va_list version of _f
  */
-std::string v_f (char const *format, va_list args);
+string v_f (char const *format, va_list args);
 
 #endif // INTERNATIONAL_HH
 
index 610866be32b3278ed48266385bb33c12bbf00569..84f6debb30a6a7839025e1f07a9fad30fdd6cadb 100644 (file)
@@ -28,15 +28,15 @@ class Interval_set
 public:
   Interval_set ();
 
-  static Interval_set interval_union (std::vector<Interval>);
+  static Interval_set interval_union (vector<Interval>);
 
-  std::vector<Interval> const &intervals () const { return intervals_; }
-  std::vector<Interval>::const_iterator upper_bound (Real x) const;
+  vector<Interval> const &intervals () const { return intervals_; }
+  vector<Interval>::const_iterator upper_bound (Real x) const;
   Real nearest_point (Real x, Direction dir = CENTER) const;
   Interval_set complement () const;
 
 private:
-  std::vector<Interval> intervals_;
+  vector<Interval> intervals_;
 };
 
 #endif /* INTERVAL_SET_HH */
index c4beb9bb99eebab907601bc392bd1250c4cd4e69..88cd01f89f8342a2d478ce39a6f2b6b4d8812d90 100644 (file)
@@ -35,7 +35,7 @@ struct Interval_t : public Drul_array<T>
   using Drul_array<T>::at;
 
   static T infinity ();
-  static std::string T_to_string (T arg);
+  static string T_to_string (T arg);
   T center () const;
   void translate (T t)
   {
@@ -65,8 +65,8 @@ struct Interval_t : public Drul_array<T>
   void intersect (Interval_t<T> h);
   void add_point (T p)
   {
-    at (LEFT) = std::min (at (LEFT), p);
-    at (RIGHT) = std::max (at (RIGHT), p);
+    at (LEFT) = min (at (LEFT), p);
+    at (RIGHT) = max (at (RIGHT), p);
   }
   T length () const;
 
@@ -120,7 +120,7 @@ struct Interval_t : public Drul_array<T>
   }
 
   Real linear_combination (Real x) const;
-  std::string to_string () const;
+  string to_string () const;
 
   bool contains (T r) const;
   void negate ()
index f0973b8b099737c2da329d5c3f32017b55f921ee..72be6e81e92161984a74cfb6128902bb3d2ade31 100644 (file)
@@ -27,6 +27,7 @@
 
 // MacOS 10.3 problems:
 // #include <cmath>
+using namespace std;
 
 template<class T>
 int
@@ -102,8 +103,8 @@ template<class T>
 void
 Interval_t<T>::unite (Interval_t<T> h)
 {
-  at (LEFT) = std::min (h.at (LEFT), at (LEFT));
-  at (RIGHT) = std::max (h.at (RIGHT), at (RIGHT));
+  at (LEFT) = min (h.at (LEFT), at (LEFT));
+  at (RIGHT) = max (h.at (RIGHT), at (RIGHT));
 }
 
 /* Unites h and this interval, but in such a way
@@ -135,20 +136,20 @@ template<class T>
 void
 Interval_t<T>::intersect (Interval_t<T> h)
 {
-  at (LEFT) = std::max (h.at (LEFT), at (LEFT));
-  at (RIGHT) = std::min (h.at (RIGHT), at (RIGHT));
+  at (LEFT) = max (h.at (LEFT), at (LEFT));
+  at (RIGHT) = min (h.at (RIGHT), at (RIGHT));
 }
 
 template<class T>
-std::string
+string
 Interval_t<T>::to_string () const
 {
   if (is_empty ())
     return "[empty]";
-  std::string s ("[");
+  string s ("[");
 
-  return (s + T_to_string (at (LEFT)) + std::string (",")
-          + T_to_string (at (RIGHT)) + std::string ("]"));
+  return (s + T_to_string (at (LEFT)) + string (",")
+          + T_to_string (at (RIGHT)) + string ("]"));
 }
 
 template<class T>
index 974b5521ab99f7868673bc31c2a47f63db88e353..04056e6c493b450fb2d5bc950cc90938b3c7a291 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <cstddef>
 #include <cstdarg>
+using namespace std;
 
 #include "config.hh"
 
index 6b2e61c3591fe6415e5f61ca1fc94ae5f93763fb..a6c13f837cf81c12b465718a4417979f83b403c3 100644 (file)
@@ -57,7 +57,7 @@ public:
       data_.resize (rows * columns, t);
     else
       {
-        std::vector<T, A> new_data;
+        vector<T, A> new_data;
         new_data.resize (rows * columns, t);
         vsize cur_cols = rank_ ? data_.size () / rank_ : 0;
 
@@ -70,7 +70,7 @@ public:
   }
 
 private:
-  std::vector<T, A> data_;
+  vector<T, A> data_;
   vsize rank_;
 };
 
index 3a355e93371fdd2b4c1f83de57492709d21e1a86..2cce5986b58a0f7e93c7b32c93c663bd4a120a1a 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <cstdio>
 #include <unistd.h>
+using namespace std;
 
 #include "libc-extension.hh"
 #include "file-cookie.hh"
index b34964c9e8149c727b52c42504e13647b44c5966..8f395398b75e2768d31f476737142502c3a7eedd 100644 (file)
@@ -101,7 +101,7 @@ public:
     coordinate_a_[X_AXIS] = coordinate_a_[Y_AXIS] = 0.0;
   }
 
-  std::string to_string () const;
+  string to_string () const;
 
   Offset &mirror (Axis a)
   {
index 471b9f585896f08294527044ac33dfc3a1c7ddd9..9ef9ddb2173b18f36dd6be1857ae91f615708c22 100644 (file)
 
 #include "std-vector.hh"
 
+using namespace std;
 
 template<class T>
-class Link_array : public std::vector<T *>
+class Link_array : public vector<T *>
 {
 
 };
index 379609bcaf3d7b3b4b5be06aab2a471177cb8648..f80b53c2eec1d62355bbb984bf617ed3859d3e0f 100644 (file)
@@ -36,7 +36,7 @@ struct Polynomial
   ssize_t degree ()const;
 
   /// coefficients
-  std::vector<Real> coefs_;
+  vector<Real> coefs_;
 
   // leading coef
   Real &lc ();
@@ -46,8 +46,8 @@ struct Polynomial
   void print () const;
   Real eval (Real) const;
   Real minmax (Real, Real, bool) const;
-  void print_sols (std::vector<Real>) const;
-  void check_sols (std::vector<Real>) const;
+  void print_sols (vector<Real>) const;
+  void check_sols (vector<Real>) const;
   void check_sol (Real x) const;
   static Polynomial multiply (const Polynomial &p1, const Polynomial &p2);
   static Polynomial power (int exponent, const Polynomial &src);
@@ -73,11 +73,11 @@ struct Polynomial
 
   void debug_clean ();
 
-  std::vector<Real> solve_quadric ()const;
-  std::vector<Real> solve_cubic ()const;
-  std::vector<Real> solve_linear ()const;
+  vector<Real> solve_quadric ()const;
+  vector<Real> solve_cubic ()const;
+  vector<Real> solve_linear ()const;
 
-  std::vector<Real> solve () const;
+  vector<Real> solve () const;
 };
 
 IMPLEMENT_ARITHMETIC_OPERATOR (Polynomial, -);
index 923773f5001151d347357c74f6c463f7a2390cff..6f1ebc53b60669ec061a3335e47637447a1d49cd 100644 (file)
@@ -45,7 +45,7 @@ int compare (PQueue_ent<K, T> const &e1, PQueue_ent<K, T> const &e2)
 template<class T>
 class PQueue
 {
-  std::vector<T> heap_array_;
+  vector<T> heap_array_;
   T &elt (vsize i)
   {
     return heap_array_[i - 1];
index d8051c922ad6a8e7e1c303693bbeef27d354a851..f829e531eccb6ef2d431d9ffe290b0f745c3731d 100644 (file)
@@ -86,7 +86,7 @@ public:
   Rational &operator %= (Rational);
   static int compare (Rational const &, Rational const &);
   int sign () const;
-  std::string to_string () const;
+  string to_string () const;
 };
 
 #include "arithmetic-operator.hh"
index 0b0cf59419120b097ba2012b90eed48fa6248e05..d7208b4e560847edbb86687a022933476ad92a14 100644 (file)
@@ -23,6 +23,7 @@
 #include <algorithm>
 #include <climits>
 #include <cmath>
+using namespace std;
 
 typedef double Real;
 extern const Real infinity_f;
index 2e2908f7a2dc7ec4c9f96f39935cd247b1bef73d..bdb85795abe3c53e9f87f55c4a03bb3574bab3a2 100644 (file)
 
 #include <string>
 
+using namespace std;
 
 typedef size_t ssize;
 #define NPOS std::string::npos
 
-std::string to_string (const std::string&);
-std::string to_string (char c, int n = 1);
-std::string to_string (int i, char const *format = 0);
-std::string to_string (double f, char const *format = 0);
-std::string to_string (long);
-std::string to_string (long unsigned);
-std::string to_string (I64, char const *format = 0);
-std::string to_string (unsigned);
-std::string to_string (bool b);
-std::string to_string (char const *format, ...)
+string to_string (const string&);
+string to_string (char c, int n = 1);
+string to_string (int i, char const *format = 0);
+string to_string (double f, char const *format = 0);
+string to_string (long);
+string to_string (long unsigned);
+string to_string (I64, char const *format = 0);
+string to_string (unsigned);
+string to_string (bool b);
+string to_string (char const *format, ...)
 __attribute__ ((format (printf, 1, 2)));
 
-std::string &replace_all (std::string *str, std::string const &find, std::string const &replace);
-std::string &replace_all (std::string *str, char find, char replace);
-char *string_copy (const std::string &s);
+string &replace_all (string *str, string const &find, string const &replace);
+string &replace_all (string *str, char find, char replace);
+char *string_copy (const string &s);
 
 #endif /* STD_STRING_HH */
index 7b50f27b4bbb320cbb3e52e5b2f7137cdb33880f..fae955854ba63dea1e362881d4e647fde3d61a29 100644 (file)
@@ -36,6 +36,7 @@
 #include <cassert>
 #include <string>
 
+using namespace std;
 
 template<typename T>
 int default_compare (T const &a, T const &b)
@@ -85,19 +86,19 @@ public:
   typedef typename __flower_vector<T>::iterator iterator;
   typedef typename __flower_vector<T>::const_iterator const_iterator;
 
-  std::vector<T, A> () : __flower_vector<T, A> ()
+  vector<T, A> () : __flower_vector<T, A> ()
   {
   }
 
-  std::vector<T, A> (size_t n) : __flower_vector<T, A> (n)
+  vector<T, A> (size_t n) : __flower_vector<T, A> (n)
   {
   }
 
-  std::vector<T, A> (std::vector<T, A> const &v) : __flower_vector<T, A> (v)
+  vector<T, A> (vector<T, A> const &v) : __flower_vector<T, A> (v)
   {
   }
 
-  std::vector<T, A> (const_iterator b, const_iterator e) : __flower_vector<T, A> (b, e)
+  vector<T, A> (const_iterator b, const_iterator e) : __flower_vector<T, A> (b, e)
   {
   }
 
@@ -120,7 +121,7 @@ public:
 
 template<typename T>
 T const &
-boundary (std::vector<T> const &v, int dir, vsize i)
+boundary (vector<T> const &v, int dir, vsize i)
 {
   assert (dir);
   return v[dir == -1 ? i : v.size () - 1 - i];
@@ -128,7 +129,7 @@ boundary (std::vector<T> const &v, int dir, vsize i)
 
 template<typename T>
 T &
-boundary (std::vector<T> &v, int dir, vsize i)
+boundary (vector<T> &v, int dir, vsize i)
 {
   assert (dir);
   return v[dir == -1 ? i : v.size () - 1 - i];
@@ -136,35 +137,35 @@ boundary (std::vector<T> &v, int dir, vsize i)
 
 template<typename T>
 T const &
-back (std::vector<T> const &v, vsize i)
+back (vector<T> const &v, vsize i)
 {
   return v[v.size () - i - 1];
 }
 
 template<typename T>
 T &
-back (std::vector<T> &v, vsize i)
+back (vector<T> &v, vsize i)
 {
   return v[v.size () - i - 1];
 }
 
 template<typename T>
 void
-concat (std::vector<T> &v, std::vector<T> const &w)
+concat (vector<T> &v, vector<T> const &w)
 {
   v.insert (v.end (), w.begin (), w.end ());
 }
 
 template<typename T, typename Compare>
 vsize
-lower_bound (std::vector<T> const &v,
+lower_bound (vector<T> const &v,
              T const &key,
              Compare less,
              vsize b = 0, vsize e = VPOS)
 {
   if (e == VPOS)
     e = v.size ();
-  typename std::vector<T>::const_iterator i = lower_bound (v.begin () + b,
+  typename vector<T>::const_iterator i = lower_bound (v.begin () + b,
                                                       v.begin () + e,
                                                       key,
                                                       less);
@@ -174,7 +175,7 @@ lower_bound (std::vector<T> const &v,
 
 template<typename T, typename Compare>
 vsize
-upper_bound (std::vector<T> const &v,
+upper_bound (vector<T> const &v,
              T const &key,
              Compare less,
              vsize b = 0, vsize e = VPOS)
@@ -182,7 +183,7 @@ upper_bound (std::vector<T> const &v,
   if (e == VPOS)
     e = v.size ();
 
-  typename std::vector<T>::const_iterator i = upper_bound (v.begin () + b,
+  typename vector<T>::const_iterator i = upper_bound (v.begin () + b,
                                                       v.begin () + e,
                                                       key,
                                                       less);
@@ -192,7 +193,7 @@ upper_bound (std::vector<T> const &v,
 
 template<typename T, typename Compare>
 vsize
-binary_search (std::vector<T> const &v,
+binary_search (vector<T> const &v,
                T const &key,
                Compare less,
                vsize b = 0, vsize e = VPOS)
@@ -206,7 +207,7 @@ binary_search (std::vector<T> const &v,
 
 template<typename T, typename Compare>
 void
-vector_sort (std::vector<T> &v,
+vector_sort (vector<T> &v,
              Compare less,
              vsize b = 0, vsize e = VPOS)
 {
@@ -218,28 +219,28 @@ vector_sort (std::vector<T> &v,
 
 template<typename T>
 void
-reverse (std::vector<T> &v)
+reverse (vector<T> &v)
 {
-  // CHECKME: for a simple vector, like std::vector<int>, this should
+  // CHECKME: for a simple vector, like vector<int>, this should
   // expand to memrev.
   reverse (v.begin (), v.end ());
 }
 
 template<typename T>
 void
-uniq (std::vector<T> &v)
+uniq (vector<T> &v)
 {
   v.erase (unique (v.begin (), v.end ()), v.end ());
 }
 
 template<typename T>
-typename std::vector<T>::const_iterator
-find (std::vector<T> const &v, T const &key)
+typename vector<T>::const_iterator
+find (vector<T> const &v, T const &key)
 {
   return find (v.begin (), v.end (), key);
 }
 
-template<typename T> struct del : public std::unary_function<T, void>
+template<typename T> struct del : public unary_function<T, void>
 {
   void operator () (T x)
   {
@@ -250,15 +251,15 @@ template<typename T> struct del : public std::unary_function<T, void>
 
 template<typename T>
 void
-junk_pointers (std::vector<T> &v)
+junk_pointers (vector<T> &v)
 {
   // Hmm.
   for_each (v.begin (), v.end (), del<T> ());
   v.clear ();
 }
 
-std::vector<std::string> string_split (std::string str, char c);
-std::string string_join (std::vector<std::string> const &strs, const std::string &infix);
+vector<string> string_split (string str, char c);
+string string_join (vector<string> const &strs, const string &infix);
 
 #define iterof(i,s) typeof((s).begin()) i((s).begin())
 
index f8984de0cc2ef628bb2cb0fd311f1499828df756..8e1695bd5ceb9d6154fe3d3a5edc5f22e5595a6f 100644 (file)
@@ -1,51 +1,52 @@
 /*
   PROJECT: FlowerSoft C++ library
-  FILE   : std::string-convert.hh
+  FILE   : string-convert.hh
 */
 
 #ifndef STRING_CONVERT_HH
 #define STRING_CONVERT_HH
 
 #include <cstdarg>
+using namespace std;
 
 #include "flower-proto.hh"
 #include "std-string.hh"
 
-/** The functor string_convert handles all conversions to/from std::string
+/** The functor string_convert handles all conversions to/from string
     (some time, anyway).  The class is quite empty from data view.  */
 class String_convert
 {
-  static int hex2bin (std::string hex_string, std::string &bin_string_r);
+  static int hex2bin (string hex_string, string &bin_string_r);
   static int hex2nibble (Byte byte);
   static Byte nibble2hex_byte (Byte byte);
 public:
-  static std::string pad_to (const std::string &s, size_t length);
-  static std::string bool_string (bool b);
-  static std::string bin2hex (Byte bin_char);
-  static std::string bin2hex (const std::string &bin_string);
-  static int bin2int (const std::string &bin_string);
-  static unsigned bin2unsigned (const std::string &bin_string);
-  static std::string char_string (char c, int n);
-  static int dec2int (const std::string &dec_string);
-  static double dec2double (const std::string &dec_string);
-  static std::string double_string (double f, char const *fmt = 0);
-  static std::string form_string (char const *format, ...) __attribute__ ((format (printf, 1, 2)));
-  static std::string vform_string (char const *format, va_list args);
-  static std::string hex2bin (const std::string &str);
-  static std::string int_string (int i, char const *fmt = 0);
-  static std::string unsigned_string (unsigned);
-  static std::string unsigned_long_string (unsigned long);
-  static std::string long_string (long);
-  static std::string int2hex (int i, size_t length_i, char ch);
-  static std::string unsigned2hex (unsigned u, size_t length, char ch);
-  static std::string int2dec (int i, size_t length_i, char ch);
-  static std::string rational_string (Rational);
-  static std::string pointer_string (void const *);
-  static std::string precision_string (double x, int n);
-  static std::string i64_string (I64, char const *fmt = 0);
-  static std::string to_lower (std::string s);
-  static std::string to_upper (std::string s);
-  static std::string reverse (std::string s);
+  static string pad_to (const string &s, size_t length);
+  static string bool_string (bool b);
+  static string bin2hex (Byte bin_char);
+  static string bin2hex (const string &bin_string);
+  static int bin2int (const string &bin_string);
+  static unsigned bin2unsigned (const string &bin_string);
+  static string char_string (char c, int n);
+  static int dec2int (const string &dec_string);
+  static double dec2double (const string &dec_string);
+  static string double_string (double f, char const *fmt = 0);
+  static string form_string (char const *format, ...) __attribute__ ((format (printf, 1, 2)));
+  static string vform_string (char const *format, va_list args);
+  static string hex2bin (const string &str);
+  static string int_string (int i, char const *fmt = 0);
+  static string unsigned_string (unsigned);
+  static string unsigned_long_string (unsigned long);
+  static string long_string (long);
+  static string int2hex (int i, size_t length_i, char ch);
+  static string unsigned2hex (unsigned u, size_t length, char ch);
+  static string int2dec (int i, size_t length_i, char ch);
+  static string rational_string (Rational);
+  static string pointer_string (void const *);
+  static string precision_string (double x, int n);
+  static string i64_string (I64, char const *fmt = 0);
+  static string to_lower (string s);
+  static string to_upper (string s);
+  static string reverse (string s);
 };
 
 #endif // __STRING_CONVERT_HH //
index 5a907b2cf76ef3bdc66a403190608082f3f2d07f..dc91d7b6696f41cccee3e5832e888c71c991ef87 100644 (file)
@@ -21,6 +21,7 @@
 #define VIRTUAL_METHODS_HH
 
 #include <typeinfo>
+using namespace std;
 
 /*
 Virtual copy constructor.  Make up for C++'s lack of a standard
index dcc6f0ee24cdd3c1884a14a3f8b7ecc332bee407..f52d3818cc11ae91569fa467b6128170673ffe13 100644 (file)
@@ -44,25 +44,25 @@ extern int loglevel;
 extern bool warning_as_error;
 
 /* output messages, in decreasing order of importance */
-void error (std::string s, const std::string &location = ""); // Fatal error, exits lilypond!
-void programming_error (const std::string &s, const std::string &location = "");
-void non_fatal_error (const std::string&, const std::string &location = "");
-void warning (const std::string &s, const std::string &location = "");
-void basic_progress (const std::string &s, const std::string &location = "");
+void error (string s, const string &location = ""); // Fatal error, exits lilypond!
+void programming_error (const string &s, const string &location = "");
+void non_fatal_error (const string&, const string &location = "");
+void warning (const string &s, const string &location = "");
+void basic_progress (const string &s, const string &location = "");
 /* progress_indication does by default *NOT* start on a new line */
-void progress_indication (const std::string &s, bool newline = false, const std::string &location = "");
-void message (const std::string &s, bool newline = true, const std::string &location = "");
-void debug_output (const std::string &s, bool newline = true, const std::string &location = "");
+void progress_indication (const string &s, bool newline = false, const string &location = "");
+void message (const string &s, bool newline = true, const string &location = "");
+void debug_output (const string &s, bool newline = true, const string &location = "");
 
 /* Helper functions that always print out the message. Callers should ensure
    that the loglevel is obeyed */
-void print_message (int level, const std::string &location, std::string s, bool newline = true);
+void print_message (int level, const string &location, string s, bool newline = true);
 
 bool is_loglevel (int level);
 void set_loglevel (int level);
-void set_loglevel (std::string level);
+void set_loglevel (string level);
 
-void expect_warning (const std::string &msg);
+void expect_warning (const string &msg);
 void check_expected_warnings ();
 
 #endif /* WARN_HH */
index fca942b966b4cf4439cc57d11b6d9309457d00fd..acc282bbdb2dc975f7f511437f34f6aae26fb841 100644 (file)
@@ -58,7 +58,7 @@ Interval_set::interval_union (vector<Interval> ivs)
 
       if (last[RIGHT] >= iv[LEFT])
         // overlapping intervals: merge them
-        last[RIGHT] = std::max (last[RIGHT], iv[RIGHT]);
+        last[RIGHT] = max (last[RIGHT], iv[RIGHT]);
       else if (!iv.is_empty ())
         ret.intervals_.push_back (iv);
     }
index 2e4b58407fbbfc3c9f039430b8590af6dccd4876..1b8060cde2f14f6dfb86d38173eb527143d3dae6 100644 (file)
@@ -24,6 +24,7 @@
 #include <cctype>
 #include <cassert>
 
+using namespace std;
 
 #include "libc-extension.hh"
 
index cc4608c383efd8148abd3b9358b2398c281edb82..511657f5fcc733d2b15d2846155f10cbdd88477f 100644 (file)
@@ -20,6 +20,7 @@
 #include <cassert>
 #include <cstring>
 #include <cstdlib>
+using namespace std;
 
 #include "memory-stream.hh"
 
index ad218b29bb8f8868592b52c235d919eb20633cc3..a3f679cd60eff87dea049c17472f981066e8652c 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <cmath>
 
+using namespace std;
 using std::vector;
 
 /*
@@ -82,7 +83,7 @@ Polynomial::minmax (Real l, Real r, bool ret_max) const
   for (vsize i = 0; i < maxmins.size (); i++)
     if (maxmins[i] >= l && maxmins[i] <= r)
       sols.push_back (eval (maxmins[i]));
-  vector_sort (sols, std::less<Real> ());
+  vector_sort (sols, less<Real> ());
 
   return ret_max ? sols.back () : sols[0];
 }
index 4214237f351c478bc29132756f3492e5b1d97974..e93f65112e52a9f77ccc4f5484862b819b92f977 100644 (file)
@@ -22,6 +22,7 @@
 #include <cmath>
 #include <cassert>
 #include <cstdlib>
+using namespace std;
 
 #include "string-convert.hh"
 #include "libc-extension.hh"
index e81577c05f72f7ea6cadfe852b6e80ebd898906f..20d8069669a6d0a6d709fb4c9d801826aba29cb1 100644 (file)
@@ -1,6 +1,7 @@
 #include "real.hh"
 
 #include <cmath>
+using namespace std;
 
 #ifdef INFINITY
 const Real infinity_f = INFINITY;
index 5dc5a3dce8630f5e134fba02bcf7f0eccfe7826e..b03d3cca5957de66ef08f28057529671d94394ce 100644 (file)
@@ -33,7 +33,7 @@ to_string (const string &s)
 string
 to_string (char c, int n)
 {
-  return string (std::max (n, 0), c);
+  return string (max (n, 0), c);
 }
 
 string
index cbbde1e9d677d75aab6223a095ee0d5a2d77c0c7..13788a4a846fbaf22d1547682ec488c1be56df52 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <cstring>
 #include <cstdio>
+using namespace std;
 
 #include "libc-extension.hh"
 #include "rational.hh"
@@ -298,7 +299,7 @@ String_convert::pointer_string (void const *l)
 string
 String_convert::precision_string (double x, int n)
 {
-  string format = "%." + ::to_string (std::max (0, n - 1)) + "e";
+  string format = "%." + ::to_string (max (0, n - 1)) + "e";
   string str = double_string (abs (x), format.c_str ());
 
   int exp = dec2int (str.substr (str.length () - 3));
@@ -353,7 +354,7 @@ String_convert::unsigned_long_string (unsigned long ul)
 string
 String_convert::pad_to (const string &s, size_t n)
 {
-  return s + string (std::max (int (n - s.length ()), 0), ' ');
+  return s + string (max (int (n - s.length ()), 0), ' ');
 }
 
 string
index 04aa6afdb5d99db7593f80ab9b135f5be556a279..04ee34b51f8f60acb0c1c67a6ba8a0062b7e00b9 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "yaffut-parameters.hh"
 
+using namespace std;
 using std::string;
 
 string slashify (string file_name);
index fa23bddedd6741984e25203bb5883a804675b664..e55309a3f775dd428f339a4d8960feb26ac19f01 100644 (file)
@@ -15,7 +15,7 @@ TEST (File_path, Find)
   char cwd[PATH_MAX];
   if (!getcwd (cwd, PATH_MAX))
     {
-      std::cerr << "Could not get current work directory\n";
+      cerr << "Could not get current work directory\n";
       exit (1);
     }
   string ly_dir = string (getenv ("top-src-dir")) + "/ly";
index d78bbdfdf665a72f7990f6aa542329eb4f028c1b..6d8d3823d3f51881f95ea691dc6f85155b9b1136 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "yaffut.hh"
 
+using namespace std;
 using std::vector;
 
 FUNC (interval_set_union)
index 667afc124a544ef5bfd43c48e6ca09e2c18a7af1..711e9237b65b88f35854a2f1c852561380b3727b 100644 (file)
@@ -6,6 +6,7 @@
 #define YAFFUT_MAIN
 #include "yaffut.hh"
 
+using namespace std;
 using std::vector;
 
 template<typename T>
@@ -13,8 +14,8 @@ void
 print (vector<T> v)
 {
   for (vsize i = 0; i < v.size (); i++)
-    std::cout << "v[" << i << "] = " << v[i] << std::endl;
-  std::cout << std::endl;
+    cout << "v[" << i << "] = " << v[i] << endl;
+  cout << endl;
 }
 
 FUNC (vector_erase)
@@ -63,7 +64,7 @@ FUNC (vector_sorting)
   v.sort (default_compare);
 #else
   //sort (v.begin (), v.end ());
-  vector_sort (v, std::less<int> ());
+  vector_sort (v, less<int> ());
 #endif
   EQUAL (v[0], 0);
   EQUAL (v[1], 1);
@@ -136,7 +137,7 @@ FUNC (parray_uniq)
   v.push_back (0);
   v.push_back (1);
   v.push_back (0);
-  vector_sort (v, std::less<int> ());
+  vector_sort (v, less<int> ());
   uniq (v);
   EQUAL (v.size (), vsize (2));
 }
@@ -147,6 +148,6 @@ FUNC (vector_search)
   v.push_back (0);
   v.push_back (1);
   v.push_back (2);
-  vsize i = binary_search (v, 1, std::less<int> ());
+  vsize i = binary_search (v, 1, less<int> ());
   EQUAL (i, vsize (1));
 }
index 1ab747d9bbefafb484ebf114afea8950e76c9c61..f5524bba740201eb2afb606fef552b626f26cf49 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "yaffut.hh"
 
+using namespace std;
 using std::string;
 using std::vector;
 
index 39723ae8a30d3c556a1046ef754fa6f617f5b4cf..422dea802736e306ca0ae08b9e5fc1e6d68e453c 100644 (file)
@@ -25,6 +25,7 @@
 #include "std-vector.hh"
 #include "international.hh"
 
+using namespace std;
 using std::string;
 using std::vector;
 
index d5f2140d6295712d2f2b98f9c01e4358dd599aae..fed8f39746563e53ce608bb7f279e9184fccaba7 100644 (file)
@@ -234,11 +234,11 @@ Align_interface::internal_get_minimum_translations (Grob *me,
 
           Real spec_distance = 0;
           if (Page_layout_problem::read_spacing_spec (spec, &spec_distance, ly_symbol2scm ("minimum-distance")))
-            dy = std::max (dy, spec_distance);
+            dy = max (dy, spec_distance);
           // Consider the likely final spacing when estimating distance between staves of the full score
           if (INT_MAX == end && 0 == start
               && Page_layout_problem::read_spacing_spec (spec, &spec_distance, ly_symbol2scm ("basic-distance")))
-            dy = std::max (dy, spec_distance);
+            dy = max (dy, spec_distance);
 
           if (include_fixed_spacing && Page_layout_problem::is_spaceable (elems[j]) && last_spaceable_element)
             {
@@ -250,21 +250,21 @@ Align_interface::internal_get_minimum_translations (Grob *me,
               Page_layout_problem::read_spacing_spec (spec,
                                                       &spaceable_padding,
                                                       ly_symbol2scm ("padding"));
-              dy = std::max (dy, (last_spaceable_skyline.distance (skyline[-stacking_dir])
+              dy = max (dy, (last_spaceable_skyline.distance (skyline[-stacking_dir])
                              + stacking_dir * (last_spaceable_element_pos - where) + spaceable_padding));
 
               Real spaceable_min_distance = 0;
               if (Page_layout_problem::read_spacing_spec (spec,
                                                           &spaceable_min_distance,
                                                           ly_symbol2scm ("minimum-distance")))
-                dy = std::max (dy, spaceable_min_distance + stacking_dir * (last_spaceable_element_pos - where));
+                dy = max (dy, spaceable_min_distance + stacking_dir * (last_spaceable_element_pos - where));
 
-              dy = std::max (dy, Page_layout_problem::get_fixed_spacing (last_spaceable_element, elems[j], spaceable_count,
+              dy = max (dy, Page_layout_problem::get_fixed_spacing (last_spaceable_element, elems[j], spaceable_count,
                                                                     pure, start, end));
             }
         }
 
-      dy = std::max (0.0, dy);
+      dy = max (0.0, dy);
       down_skyline.raise (-stacking_dir * dy);
       down_skyline.merge (skyline[stacking_dir]);
       where += stacking_dir * dy;
index 0639508b6fd31a262917db864d3995c21b5fc84d..5f1814f98e0ea0154feb07d2259cf3759f4d8fa4 100644 (file)
@@ -169,7 +169,7 @@ Audio_span_dynamic::render ()
       // The dynamic spanner does not end with an explicit dynamic script
       // event.  Adjust the end volume by at most 1/4 of the available
       // volume range in this case.
-      dynamics_.back ()->volume_ = std::max (std::min (start_v + grow_dir_ * (max_volume_ - min_volume_) * 0.25, max_volume_), min_volume_);
+      dynamics_.back ()->volume_ = max (min (start_v + grow_dir_ * (max_volume_ - min_volume_) * 0.25, max_volume_), min_volume_);
     }
 
   Real delta_v = dynamics_.back ()->volume_ - dynamics_[0]->volume_;
index 6f3a4c01797f456a3ec09c542a699c33bb1fda4d..c1be5d985ff1887040501c1d81336111b0007226 100644 (file)
@@ -442,7 +442,7 @@ Auto_beam_engraver::acknowledge_stem (Grob_info info)
                        (to_boolean (stem->get_property ("tuplet-start"))));
   stems_->push_back (stem);
   last_add_mom_ = now;
-  extend_mom_ = std::max (extend_mom_, now) + get_event_length (ev, now);
+  extend_mom_ = max (extend_mom_, now) + get_event_length (ev, now);
   if (recheck_needed)
     recheck_beam ();
 }
index 8f6b91c2b4b971fce10890766af50639cce5cbf7..717ae1945f127af9a1a143ab4e5b583f77e72535 100644 (file)
@@ -273,7 +273,7 @@ Axis_group_interface::adjacent_pure_heights (SCM smob)
       d = (d == CENTER) ? UP : d;
 
       Interval_t<int> rank_span = g->spanned_rank_interval ();
-      vsize first_break = lower_bound (ranks, (vsize)rank_span[LEFT], std::less<vsize> ());
+      vsize first_break = lower_bound (ranks, (vsize)rank_span[LEFT], less<vsize> ());
       if (first_break > 0 && ranks[first_break] >= (vsize)rank_span[LEFT])
         first_break--;
 
@@ -327,7 +327,7 @@ Interval
 Axis_group_interface::relative_pure_height (Grob *me, int start, int end)
 {
   /* It saves a _lot_ of time if we assume a VerticalAxisGroup is additive
-     (ie. height (i, k) = std::max (height (i, j) height (j, k)) for all i <= j <= k).
+     (ie. height (i, k) = max (height (i, j) height (j, k)) for all i <= j <= k).
      Unfortunately, it isn't always true, particularly if there is a
      VerticalAlignment somewhere in the descendants.
 
@@ -689,8 +689,8 @@ avoid_outside_staff_collisions (Grob *elt,
   for (vsize j = 0; j < other_v_skylines.size (); j++)
     {
       Skyline_pair const &v_other = other_v_skylines[j];
-      Real pad = std::max (padding, other_padding[j]);
-      Real horizon_pad = std::max (horizon_padding, other_horizon_padding[j]);
+      Real pad = max (padding, other_padding[j]);
+      Real horizon_pad = max (horizon_padding, other_horizon_padding[j]);
 
       // We need to push elt up by at least this much to be above v_other.
       Real up = (*v_skyline)[DOWN].distance (v_other[UP], horizon_pad) + pad;
@@ -841,7 +841,7 @@ add_grobs_of_one_priority (Grob *me,
           (*all_paddings)[dir].push_back (padding);
           (*all_horizon_paddings)[dir].push_back (horizon_padding);
         }
-      std::swap (elements, skipped_elements);
+      swap (elements, skipped_elements);
       skipped_elements.clear ();
     }
 }
index 753a05644922e72f453bd14d2aef5b02e9b4f4a0..e6ca4caf16d58586556a288fb7c915bb8e06659c 100644 (file)
@@ -305,7 +305,7 @@ Beam_engraver::acknowledge_stem (Grob_info info)
   stem->set_property ("duration-log", scm_from_int (durlog));
   Moment stem_location = now - beam_start_mom_ + beam_start_location_;
   beam_info_->add_stem (stem_location,
-                        std::max (durlog - 2, 0),
+                        max (durlog - 2, 0),
                         Stem::is_invisible (stem),
                         stem_duration->factor (),
                         (to_boolean (stem->get_property ("tuplet-start"))));
index 8cf8a345a38df2cdaa53992cf63432b10d47f50b..740f28690876b940a109f20dcda5064b3bb07938 100644 (file)
@@ -23,6 +23,7 @@
 #include <algorithm>
 #include <queue>
 #include <set>
+using namespace std;
 
 #include "align-interface.hh"
 #include "beam.hh"
@@ -448,8 +449,8 @@ set_minimum_dy (Grob *me, Real *dy)
       Real inter = 0.5;
       Real hang = 1.0 - (beam_thickness - slt) / 2;
 
-      *dy = sign (*dy) * std::max (fabs (*dy),
-                              std::min (std::min (sit, inter), hang));
+      *dy = sign (*dy) * max (fabs (*dy),
+                              min (min (sit, inter), hang));
     }
 }
 
@@ -613,7 +614,7 @@ is_concave_single_notes (vector<int> const &positions, Direction beam_dir)
     note is reached in the opposite direction as the last-first dy
   */
   int dy = positions.back () - positions[0];
-  int closest = std::max (beam_dir * positions.back (), beam_dir * positions[0]);
+  int closest = max (beam_dir * positions.back (), beam_dir * positions[0]);
   for (vsize i = 2; !concave && i + 1 < positions.size (); i++)
     {
       int inner_dy = positions[i] - positions[i - 1];
@@ -644,7 +645,7 @@ calc_positions_concaveness (vector<int> const &positions, Direction beam_dir)
     {
       Real line_y = slope * i + positions[0];
 
-      concaveness += std::max (beam_dir * (positions[i] - line_y), 0.0);
+      concaveness += max (beam_dir * (positions[i] - line_y), 0.0);
     }
 
   concaveness /= positions.size ();
@@ -1080,7 +1081,7 @@ Beam_scoring_problem::score_stem_lengths (Beam_configuration *config) const
       Stem_info info = stem_infos_[i];
       Direction d = info.dir_;
 
-      score[d] += limit_penalty * std::max (0.0, (d * (info.shortest_y_ - current_y)));
+      score[d] += limit_penalty * max (0.0, (d * (info.shortest_y_ - current_y)));
 
       Real ideal_diff = d * (current_y - info.ideal_y_);
       Real ideal_score = shrink_extra_weight (ideal_diff, 1.5);
@@ -1097,7 +1098,7 @@ Beam_scoring_problem::score_stem_lengths (Beam_configuration *config) const
 
   /* Divide by number of stems, to make the measure scale-free. */
   for (DOWN_and_UP (d))
-    score[d] /= std::max (count[d], 1);
+    score[d] /= max (count[d], 1);
 
   /*
     sometimes, two perfectly symmetric kneed beams will have the same score
@@ -1147,7 +1148,7 @@ Beam_scoring_problem::score_slope_musical (Beam_configuration *config) const
 {
   Real dy = config->y.delta ();
   Real dem = parameters_.MUSICAL_DIRECTION_FACTOR
-             * std::max (0.0, (fabs (dy) - fabs (musical_dy_)));
+             * max (0.0, (fabs (dy) - fabs (musical_dy_)));
   config->add (dem, "Sm");
 }
 
@@ -1206,7 +1207,7 @@ Beam_scoring_problem::score_forbidden_quants (Beam_configuration *config) const
 
   Real extra_demerit =
     parameters_.SECONDARY_BEAM_DEMERIT
-    / std::max (edge_beam_counts_[LEFT], edge_beam_counts_[RIGHT]);
+    / max (edge_beam_counts_[LEFT], edge_beam_counts_[RIGHT]);
   
   Real dem = 0.0;
   Real eps = parameters_.BEAM_EPS;
@@ -1236,7 +1237,7 @@ Beam_scoring_problem::score_forbidden_quants (Beam_configuration *config) const
                k <= staff_radius_ + eps; k += 1.0)
             if (gap.contains (k))
               {
-                Real dist = std::min (fabs (gap[UP] - k), fabs (gap[DOWN] - k));
+                Real dist = min (fabs (gap[UP] - k), fabs (gap[DOWN] - k));
 
                 /*
                   this parameter is tuned to grace-stem-length.ly
@@ -1259,7 +1260,7 @@ Beam_scoring_problem::score_forbidden_quants (Beam_configuration *config) const
 
   config->add (dem, "Fl");
   dem = 0.0;
-  if (std::max (edge_beam_counts_[LEFT], edge_beam_counts_[RIGHT]) >= 2)
+  if (max (edge_beam_counts_[LEFT], edge_beam_counts_[RIGHT]) >= 2)
     {
       Real straddle = 0.0;
       Real sit = (beam_thickness_ - line_thickness_) / 2;
@@ -1315,12 +1316,12 @@ Beam_scoring_problem::score_collisions (Beam_configuration *config) const
       if (!intersection (beam_y, collision_y).is_empty ())
         dist = 0.0;
       else 
-        dist = std::min (beam_y.distance (collision_y[DOWN]),
+        dist = min (beam_y.distance (collision_y[DOWN]),
                     beam_y.distance (collision_y[UP]));
 
       
       Real scale_free
-        = std::max (parameters_.COLLISION_PADDING - dist, 0.0)
+        = max (parameters_.COLLISION_PADDING - dist, 0.0)
           / parameters_.COLLISION_PADDING;
       Real collision_demerit = collisions_[i].base_penalty_ *
          pow (scale_free, 3) * parameters_.COLLISION_PENALTY;
index d1032184a9c4da42075c2547a0baaaf9a503a4e1..6bdaab9d9fc3ece40cb5311cf422d10957d940ce 100644 (file)
@@ -142,7 +142,7 @@ Beam::get_beam_count (Grob *me)
   for (vsize i = 0; i < stems.size (); i++)
     {
       Grob *stem = stems[i];
-      m = std::max (m, (Stem::beam_multiplicity (stem).length () + 1));
+      m = max (m, (Stem::beam_multiplicity (stem).length () + 1));
     }
   return m;
 }
@@ -441,7 +441,7 @@ Beam::calc_beam_segments (SCM smob)
        i != stem_segments.end (); i++)
     {
       vector<Beam_stem_segment> segs = (*i).second;
-      vector_sort (segs, std::less<Beam_stem_segment> ());
+      vector_sort (segs, less<Beam_stem_segment> ());
 
       Beam_segment current;
 
@@ -515,7 +515,7 @@ Beam::calc_beam_segments (SCM smob)
                           Grob *neighbor_stem = stems[seg.stem_index_ + event_dir];
                           Real neighbor_stem_x = neighbor_stem->relative_coordinate (commonx, X_AXIS);
 
-                          length = std::min (length,
+                          length = min (length,
                                         fabs (neighbor_stem_x - seg.stem_x_) * max_proportion[seg.dir_]);
                         }
                       current.horizontal_[event_dir] += event_dir * length;
@@ -540,7 +540,7 @@ Beam::calc_beam_segments (SCM smob)
 
                           for (vsize k = 0; k < heads.size (); k++)
                             current.horizontal_[event_dir]
-                              = event_dir * std::min (event_dir * current.horizontal_[event_dir],
+                              = event_dir * min (event_dir * current.horizontal_[event_dir],
                                                  - gap_length / 2
                                                  + event_dir
                                                  * heads[k]->extent (commonx,
@@ -773,7 +773,7 @@ Beam::get_default_dir (Grob *me)
       for (DOWN_and_UP (d))
         {
           if (sign (positions[d]) == d)
-            extremes[d] = d * std::max (d * positions[d], d * extremes[d]);
+            extremes[d] = d * max (d * positions[d], d * extremes[d]);
         }
     }
 
@@ -800,7 +800,7 @@ Beam::get_default_dir (Grob *me)
       if (stem_dir)
         {
           count[stem_dir]++;
-          total[stem_dir] += std::max (int (- stem_dir * Stem::head_positions (s) [-stem_dir]), 0);
+          total[stem_dir] += max (int (- stem_dir * Stem::head_positions (s) [-stem_dir]), 0);
         }
     }
 
@@ -1153,7 +1153,7 @@ Beam::set_beaming (Grob *me, Beaming_pattern const *beaming)
               if (i > 0
                   && i + 1 < stems.size ()
                   && Stem::is_invisible (stem))
-                count = std::min (count, beaming->beamlet_count (i, -d));
+                count = min (count, beaming->beamlet_count (i, -d));
 
               if ( ((i == 0 && d == LEFT)
                     || (i == stems.size () - 1 && d == RIGHT))
@@ -1288,7 +1288,7 @@ Beam::rest_collision_callback (SCM smob, SCM prev_offset)
     = staff_space * (robust_scm2double (stem->get_property ("stemlet-length"), 0.0)
                      + robust_scm2double (rest->get_property ("minimum-distance"), 0.0));
 
-  Real shift = d * std::min (d * (beam_y - d * minimum_distance - rest_dim), 0.0);
+  Real shift = d * min (d * (beam_y - d * minimum_distance - rest_dim), 0.0);
 
   shift /= staff_space;
 
@@ -1367,7 +1367,7 @@ Beam::pure_rest_collision_callback (SCM smob,
                    + Stem::head_positions (right)[beamdir]) / 2.0
                   + 4.0 * beamdir; // four staff-positions
   /* and that the closest beam never crosses staff center by more than two positions */
-  beam_pos = std::max (-2.0, beam_pos * beamdir) * beamdir;
+  beam_pos = max (-2.0, beam_pos * beamdir) * beamdir;
 
   Real minimum_distance
     = ss * (robust_scm2double (stem->get_property ("stemlet-length"), 0.0)
@@ -1377,7 +1377,7 @@ Beam::pure_rest_collision_callback (SCM smob,
                 - me->extent (me, Y_AXIS)[beamdir];
 
   /* Always move by a whole number of staff spaces, always away from the beam */
-  offset = floor (std::min (0.0, (offset - previous) / ss * beamdir))
+  offset = floor (min (0.0, (offset - previous) / ss * beamdir))
            * ss * beamdir + previous;
 
   return scm_from_double (offset);
@@ -1439,7 +1439,7 @@ Beam::get_direction_beam_count (Grob *me, Direction d)
         Should we take invisible stems into account?
       */
       if (get_grob_direction (stems[i]) == d)
-        bc = std::max (bc, (Stem::beam_multiplicity (stems[i]).length () + 1));
+        bc = max (bc, (Stem::beam_multiplicity (stems[i]).length () + 1));
     }
 
   return bc;
index 53a8c354ea162d5e28d792f5e18bb0192b61e944..5510965c31f3fcdcd6e103b5795e6bc0dbf21d30 100644 (file)
@@ -173,7 +173,7 @@ Beaming_pattern::beamify (Beaming_options const &options)
             int importance = infos_[i + 1].rhythmic_importance_;
             int count = (importance < 0 && options.subdivide_beams_) 
                         ? subdivide_beam_count
-                        : std::min (std::min (infos_[i].count (non_flag_dir),
+                        : min (min (infos_[i].count (non_flag_dir),
                                         infos_[i + non_flag_dir].count (-non_flag_dir)),
                                    infos_[i - non_flag_dir].count (non_flag_dir));
 
@@ -317,7 +317,7 @@ Beaming_pattern::unbeam_invisible_stems ()
   for (vsize i = 1; i < infos_.size (); i++)
     if (infos_[i].invisible_)
       {
-        int b = std::min (infos_[i].count (LEFT), infos_[i - 1].count (LEFT));
+        int b = min (infos_[i].count (LEFT), infos_[i - 1].count (LEFT));
         infos_[i].beam_count_drul_[LEFT] = b;
         infos_[i].beam_count_drul_[RIGHT] = b;
       }
@@ -326,7 +326,7 @@ Beaming_pattern::unbeam_invisible_stems ()
     for (vsize i = infos_.size () - 1; i--;)
       if (infos_[i].invisible_)
         {
-          int b = std::min (infos_[i].count (LEFT), infos_[i + 1].count (LEFT));
+          int b = min (infos_[i].count (LEFT), infos_[i + 1].count (LEFT));
           infos_[i].beam_count_drul_[LEFT] = b;
           infos_[i].beam_count_drul_[RIGHT] = b;
         }
@@ -357,7 +357,7 @@ Beaming_pattern::start_moment (int i) const
 Moment
 Beaming_pattern::end_moment (int i) const
 {
-  Duration dur (2 + std::max (beamlet_count (i, LEFT),
+  Duration dur (2 + max (beamlet_count (i, LEFT),
                          beamlet_count (i, RIGHT)),
                 0);
 
@@ -396,7 +396,7 @@ Beaming_pattern::split_pattern (int i)
   new_pattern = new Beaming_pattern ();
   for (vsize j = i + 1; j < infos_.size (); j++)
     {
-      count = std::max (beamlet_count (j, LEFT), beamlet_count (j, RIGHT));
+      count = max (beamlet_count (j, LEFT), beamlet_count (j, RIGHT));
       new_pattern->add_stem (start_moment (j),
                              count,
                              invisibility (j),
index b59164155415562d6c3c1b6b530fd4084ababd38..c7f5dd02378372ba377320d9c1a94dec2899d17b 100644 (file)
@@ -20,6 +20,7 @@
 #include "book.hh"
 
 #include <cstdio>
+using namespace std;
 
 #include "main.hh"
 #include "music.hh"
index 305f764ad32be5bf97c19a3ae4c9ef6e31aa5873..4b1e06d98c8e878ad195dc39aa80fa5ae8b826ef 100644 (file)
@@ -218,7 +218,7 @@ Break_alignment_interface::calc_positioning_done (SCM smob)
                                 - extents[next_idx][LEFT];
           /* should probably junk minimum-space */
           else if (scm_is_eq (type, ly_symbol2scm ("minimum-space")))
-            offsets[next_idx] = std::max (extents[idx][RIGHT], distance);
+            offsets[next_idx] = max (extents[idx][RIGHT], distance);
         }
       else
         {
index f6db741483a455caebdb3ee9191d741fa1f5b542..7d68f0d9bf26ca0d16f955239cbcaea618041342 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <cstdio>
 #include <cstdlib>
+using namespace std;
 
 #include "item.hh"
 #include "system.hh"
index 95fdaeef9d41a84f30932b169a410356cce2bb7d..9de2bbffc8809c2eaafe8e72a857a686aa49d1fc 100644 (file)
@@ -120,9 +120,9 @@ Chord_tremolo_engraver::acknowledge_stem (Grob_info info)
   if (beam_)
     {
       int tremolo_type = robust_scm2int (repeat_->get_property ("tremolo-type"), 1);
-      int flags = std::max (0, intlog2 (tremolo_type) - 2);
+      int flags = max (0, intlog2 (tremolo_type) - 2);
       int repeat_count = robust_scm2int (repeat_->get_property ("repeat-count"), 1);
-      int gap_count = std::min (flags, intlog2 (repeat_count) + 1);
+      int gap_count = min (flags, intlog2 (repeat_count) + 1);
 
       Grob *s = info.grob ();
       if (previous_stem_)
index dc239ca1e29f4dba12ea154b2f553f7d6f82a142..940a18d2010849e27ecf73b66f99361aa6a3260c 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "item.hh"
 #include "context.hh"
index 2e06e1de4b99f61f3ffacb6bbaf6343156cc2609..c934fd0ba3f7749dbdbd6c9314d9d5ba57234ee1 100644 (file)
@@ -107,8 +107,8 @@ Cluster_spanner_engraver::process_music ()
 
           int p = (pit ? pit->steps () : 0) + c0;
 
-          pmax = std::max (pmax, p);
-          pmin = std::min (pmin, p);
+          pmax = max (pmax, p);
+          pmin = min (pmin, p);
         }
 
       beacon_ = make_item ("ClusterSpannerBeacon", cluster_notes_[0]->self_scm ());
index 27d950b690ecbd4f8aff608bc0f3aa33946df4aa..f5abe73e435cc70ef311055201cdf9fb817951a0 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "dot-column.hh"
 #include "dots.hh"
@@ -100,7 +101,7 @@ Completion_heads_engraver::listen_note (Stream_event *ev)
   Moment now = now_mom ();
   Moment musiclen = get_event_length (ev, now);
 
-  note_end_mom_ = std::max (note_end_mom_, (now + musiclen));
+  note_end_mom_ = max (note_end_mom_, (now + musiclen));
   do_nothing_until_ = Rational (0, 0);
 }
 
index a60b400efce786fcf6c36de6958f8f61d42e2f82..b7e76c82bcaec21c8113bd0ac23342a2fee88cd4 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "dot-column.hh"
 #include "dots.hh"
@@ -96,7 +97,7 @@ Completion_rest_engraver::listen_rest (Stream_event *ev)
   Moment now = now_mom ();
   Moment musiclen = get_event_length (ev, now);
 
-  rest_end_mom_ = std::max (rest_end_mom_, (now + musiclen));
+  rest_end_mom_ = max (rest_end_mom_, (now + musiclen));
   do_nothing_until_ = Rational (0, 0);
 }
 
index d9054087e1adf493b26b31623516f46f9c62d660..463e84bf113e4434e64398150568aaba6b212a65 100644 (file)
@@ -621,7 +621,7 @@ Line_details::spring_length (Line_details const &next_line) const
   // the top of next_line's extent.
   Real refpoint_dist = tallness_ + refpoint_extent_[DOWN] - next_line.refpoint_extent_[UP];
   Real space = next_line.title_ ? title_space_ : space_;
-  return std::max (0.0, space - refpoint_dist);
+  return max (0.0, space - refpoint_dist);
 }
 
 Line_shape::Line_shape (Interval begin, Interval rest)
@@ -633,7 +633,7 @@ Line_shape::Line_shape (Interval begin, Interval rest)
 Line_shape
 Line_shape::piggyback (Line_shape mount, Real padding) const
 {
-  Real elevation = std::max (begin_[UP] - mount.begin_[DOWN], rest_[UP] - mount.rest_[DOWN]);
+  Real elevation = max (begin_[UP] - mount.begin_[DOWN], rest_[UP] - mount.rest_[DOWN]);
   Interval begin = Interval (begin_[DOWN], elevation + mount.begin_[UP] + padding);
   Interval rest = Interval (rest_[DOWN], elevation + mount.rest_[UP] + padding);
   return Line_shape (begin, rest);
index 9e0372de180c3512ee3e917168b83215c7a24776..383c9a1b1f7c33c2150a30c8e2e8fc6444d93408 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "item.hh"
 #include "context.hh"
index b2289f267db08827a36b331a1b04abb5b011e74e..3ba5db834e22f7a79c8f770f3fdc2493a5f6000b 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <cstdio>
 #include <cmath> // rint
+using namespace std;
 
 #include "custos.hh"
 #include "direction.hh"
index 56ef5788473038cfaaf335d312b1fefbcfcf1050..84ace8228f545fee8d9a5eeedb502cb3729a5e49 100644 (file)
@@ -22,6 +22,7 @@
 #include <map>
 #include <set>
 
+using namespace std;
 
 #include "axis-group-interface.hh"
 #include "directional-element-interface.hh"
index 20c44297a0fc91e0c8ae18b9907cf55a85cdabab..25d35eb6916c51b9d40af8b8c5eb0a672ee9a2cb 100644 (file)
@@ -158,7 +158,7 @@ Dot_configuration::x_offset () const
   Real off = 0.0;
   for (Dot_configuration::const_iterator i (begin ());
        i != end (); i++)
-    off = std::max (off, problem_->head_skyline_.height ((*i).first));
+    off = max (off, problem_->head_skyline_.height ((*i).first));
 
   return off;
 }
index 37cf47a2174e4ad25145110ce4e843e12f912b2e..40e3aaf936b121e86de1cdb6fa3ea1e7c56b42cc 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "item.hh"
 #include "duration.hh"
index a0998ef4c91ab61b5b6f5a562b4bec6d76bfef48..5463be534da32f627bdd38601b74590b87c2c5bf 100644 (file)
@@ -195,7 +195,7 @@ Figured_bass_engraver::listen_bass_figure (Stream_event *ev)
 {
   new_event_found_ = true;
   Moment stop = now_mom () + get_event_length (ev, now_mom ());
-  stop_moment_ = std::max (stop_moment_, stop);
+  stop_moment_ = max (stop_moment_, stop);
 
   // Handle no-continuation here, don't even add it to the already existing
   // spanner... This fixes some layout issues (figure will be placed separately)
index 39a23493954d37650011438eb372b66d81fea993..d9b9711ba139093afd040be904b75c9188ed8f0b 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <map>
+using namespace std;
 
 #include "file-name-map.hh"
 #include "lily-guile.hh"
index 200c1eb8775f56e13765682fb5676093d88f2a3b..73104615a016c2da50f597c1710d5a18c55d57ab 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <cmath>
 #include <cctype>
+using namespace std;
 
 #include "dimensions.hh"
 #include "modified-font-metric.hh"
index 7f99713d9e470cc7d4f971844e8d663e7be5fce3..5ce6763cb71be38b49d57cda41aa401c485032bf 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <cctype>
 #include <cstdio>
+using namespace std;
 
 #include "articulations.hh"
 #include "context.hh"
index cda424e9d11a79f40980339512a60b4ee5b499b8..e04188c7b5ba198e59b7dd23677572bec07fbad4 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <cstring>
 #include <map>
+using namespace std;
 
 #include "std-string.hh"
 #include "lily-guile.hh"
index d661c177a5802837cc2f961c50d2b396363df211..de5a2cc225be4f3f8ca2dd068ed471b0c0e116dd 100644 (file)
@@ -24,6 +24,7 @@
 #include <ctype.h>
 #include <cstring>  /* memset */
 #include <glib.h>
+using namespace std;
 
 #include "dimensions.hh"
 #include "file-name.hh"
index cffc4512c875acd4b3ab8e07985d16ee1b34cb8b..72ccc5be89952803a72082f2f03aadbf3c58f5f3 100644 (file)
@@ -20,6 +20,7 @@
 #include "global-context.hh"
 
 #include <cstdio>
+using namespace std;
 
 #include "context-def.hh"
 #include "dispatcher.hh"
index ec7108c15c3919bae1e08dd6896e5442ef088932..1dfd0f2c9e9657a39a6dec02a81c7f0770e26693 100644 (file)
@@ -34,7 +34,7 @@ SCM add_interface (char const *cxx_name,
 {
   string suffix ("-interface");
   string lispy_name = camel_case_to_lisp_identifier (cxx_name);
-  vsize end = std::max (int (0), int (lispy_name.length () - suffix.length ()));
+  vsize end = max (int (0), int (lispy_name.length () - suffix.length ()));
   if (lispy_name.substr (end) != suffix)
     lispy_name += suffix;
 
index a869f031eeee7c3aede84186ea270083398ba392..d3cd356a0444317df1c329205dcb0261aa448da0 100644 (file)
@@ -101,7 +101,7 @@ Grob_pq_engraver::acknowledge_grob (Grob_info gi)
 void
 Grob_pq_engraver::process_acknowledged ()
 {
-  vector_sort (started_now_, std::less<Grob_pq_entry> ());
+  vector_sort (started_now_, less<Grob_pq_entry> ());
   SCM lst = SCM_EOL;
   SCM *tail = &lst;
   for (vsize i = 0; i < started_now_.size (); i++)
index b14872573e0be49daf5ca3382178537b288528ed..01d8fd93dea61f696d5af6a189244517f4fca622 100644 (file)
@@ -177,7 +177,7 @@ Hairpin::print (SCM smob)
                 {
                   Spanner *span_elt = dynamic_cast<Spanner *> (chp[i]);
                   if (span_elt->get_bound (RIGHT)->break_status_dir () == LEFT)
-                    broken_bound_padding = std::max (broken_bound_padding,
+                    broken_bound_padding = max (broken_bound_padding,
                                                 robust_scm2double (span_elt->get_property ("broken-bound-padding"), 0.0));
                 }
               x_points[d] -= d * broken_bound_padding;
index ecfb6a9ac5275e6ff6e2f7883aec1900adce3d64..a4389a5818ed9915b8343c757570cdb558f2dfae 100644 (file)
@@ -123,7 +123,7 @@ Hara_kiri_group_spanner::request_suicide_alone (Grob *me, int start, int end)
           for (int j = iv[LEFT]; j <= iv[RIGHT]; j++)
             ranks.push_back (j);
         }
-      vector_sort (ranks, std::less<int> ());
+      vector_sort (ranks, less<int> ());
       uniq (ranks);
 
       SCM scm_vec = scm_c_make_vector (ranks.size (), SCM_EOL);
index 3e9c54857dca77f9eede2eae99cce2f3c66c0b81..564b6024cdbb630c790bbc3b92352684b41b7300 100644 (file)
@@ -20,6 +20,7 @@
 #include "includable-lexer.hh"
 
 #include <sstream>
+using namespace std;
 
 #include "config.hh"
 
index a8f3ddeafa88af292b29c742c61111a76f5ed33a..4c362cbd93d1c1df2d1ba0f4e77613e74257b253 100644 (file)
@@ -29,10 +29,10 @@ public:
   DECLARE_SCHEME_CALLBACK (alignment_callback, (SCM element));
   static void add_accidental (Grob *, Grob *, bool, long);
 
-  static std::vector<Grob *> get_relevant_accidentals (std::vector<Grob *> const &elts, Grob *left);
+  static vector<Grob *> get_relevant_accidentals (vector<Grob *> const &elts, Grob *left);
   static void split_accidentals (Grob *accs,
-                                 std::vector<Grob *> *break_reminder,
-                                 std::vector<Grob *> *real_acc);
+                                 vector<Grob *> *break_reminder,
+                                 vector<Grob *> *real_acc);
 
   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM));
 };
index 4d798ae1eb11dba91cdf3095ede68db935426b74..612c31c0d5bef18fc53c35575bcec351180b4c27 100644 (file)
@@ -31,9 +31,9 @@ public:
   DECLARE_SCHEME_CALLBACK (align_to_ideal_distances, (SCM));
   static void align_elements_to_minimum_distances (Grob *, Axis a);
   static void align_elements_to_ideal_distances (Grob *);
-  static std::vector<Real> get_minimum_translations (Grob *, std::vector<Grob *> const &, Axis a);
-  static std::vector<Real> get_minimum_translations_without_min_dist (Grob *, std::vector<Grob *> const &, Axis a);
-  static std::vector<Real> get_pure_minimum_translations (Grob *, std::vector<Grob *> const &,
+  static vector<Real> get_minimum_translations (Grob *, vector<Grob *> const &, Axis a);
+  static vector<Real> get_minimum_translations_without_min_dist (Grob *, vector<Grob *> const &, Axis a);
+  static vector<Real> get_pure_minimum_translations (Grob *, vector<Grob *> const &,
                                                      Axis a, int start, int end);
   static void set_ordered (Grob *);
   static Axis axis (Grob *);
@@ -44,7 +44,7 @@ public:
   static Real get_pure_child_y_translation (Grob *, Grob *child, int start, int end);
 
 protected:
-  static std::vector<Real> internal_get_minimum_translations (Grob *, std::vector<Grob *> const &,
+  static vector<Real> internal_get_minimum_translations (Grob *, vector<Grob *> const &,
                                                          Axis a,
                                                          bool include_fixed_spacing,
                                                          bool pure, int start, int end);
index 53488cc9f73d73d275a30cc591b8ca0117ef0214..a2d090a6dfd71c7567447e5ff75dd87ece76f756 100644 (file)
@@ -44,24 +44,24 @@ class All_font_metrics : public Smob<All_font_metrics>
   int pango_dpi_;
 #endif
 
-  std::map<std::string, Index_to_charcode_map > filename_charcode_maps_map_;
+  map<string, Index_to_charcode_map > filename_charcode_maps_map_;
 
   All_font_metrics (All_font_metrics const &);
 public:
   SCM mark_smob () const;
 
-  Index_to_charcode_map const *get_index_to_charcode_map (const std::string &filename,
+  Index_to_charcode_map const *get_index_to_charcode_map (const string &filename,
                                                           int face_index,
                                                           FT_Face face);
 
-  All_font_metrics (const std::string &search_path);
+  All_font_metrics (const string &search_path);
   ~All_font_metrics ();
 
   Pango_font *find_pango_font (PangoFontDescription const *description,
                                Real scale);
 
-  Font_metric *find_font (const std::string &name);
-  Open_type_font *find_otf (const std::string &name);
+  Font_metric *find_font (const string &name);
+  Open_type_font *find_otf (const string &name);
   SCM font_descriptions () const;
 };
 
index 26446d40563b01bd920e791b0a6718a41c70165f..543bbf51e0263b1776cce4d6b3b1cf114fd84deb 100644 (file)
@@ -23,8 +23,8 @@
 #include "lily-guile.hh"
 #include "stream-event.hh"
 
-SCM articulation_list (std::vector<Stream_event *> notes,
-                       std::vector<Stream_event *> articulations,
+SCM articulation_list (vector<Stream_event *> notes,
+                       vector<Stream_event *> articulations,
                        char const *articulation_name);
 
 #endif /* ARTICULATIONS_HH */
index 0212a45268bcc3013a379529d00a62550982aac8..059321f7c92f83789d150a381b6dbfcf7b75a3cf 100644 (file)
@@ -37,7 +37,7 @@ public:
   void add_audio_item (Audio_item *i);
   Moment when () const;
 
-  std::vector<Audio_item *> audio_items_;
+  vector<Audio_item *> audio_items_;
   Moment when_;
   int ticks () const;
 protected:
index 4cb52bb51b9a04c1fdcdec45842d5d9bea495450..9b2f18f525a4bc90edf0ee0009eda7e0a932bda4 100644 (file)
@@ -33,7 +33,7 @@ public:
   Stream_event *event_;
   Translator *origin_trans_;
 
-  std::vector<Context *> origin_contexts (Translator *) const;
+  vector<Context *> origin_contexts (Translator *) const;
 
   Audio_element_info (Audio_element *, Stream_event *);
   Audio_element_info ();
index dbd4c3825141f3dc4b3c006abc749b2ed53fb7d3..8c41d18a526c19198687a73d6b63f8374615b1e1 100644 (file)
@@ -53,7 +53,7 @@ class Audio_span_dynamic : public Audio_element
 {
 public:
   Direction grow_dir_;
-  std::vector<Audio_dynamic *> dynamics_;
+  vector<Audio_dynamic *> dynamics_;
   Real min_volume_;
   Real max_volume_;
 
@@ -74,9 +74,9 @@ public:
 class Audio_instrument : public Audio_item
 {
 public:
-  Audio_instrument (std::string instrument_string);
+  Audio_instrument (string instrument_string);
 
-  std::string str_;
+  string str_;
 };
 
 class Audio_note : public Audio_item
@@ -87,7 +87,7 @@ public:
   // with tieWaitForNote, there might be a skip between the tied notes!
   void tie_to (Audio_note *, Moment skip = 0);
   Audio_note *tie_head ();
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Pitch pitch_;
   Moment length_mom_;
@@ -102,7 +102,7 @@ public:
 class Audio_piano_pedal : public Audio_item
 {
 public:
-  std::string type_string_;
+  string type_string_;
   Direction dir_;
 };
 
@@ -115,10 +115,10 @@ public:
     MARKER, CUE_POINT
   };
 
-  Audio_text (Audio_text::Type type, const std::string &text_string);
+  Audio_text (Audio_text::Type type, const string &text_string);
 
   Type type_;
-  std::string text_string_;
+  string text_string_;
 };
 
 class Audio_tempo : public Audio_item
index ca5c36fa944c613eb8ba6d06776ecf7c57715c5d..a4a9d8a0d1386a9fc87e2446ba107fecefb2f54a 100644 (file)
@@ -33,7 +33,7 @@ struct Audio_staff : public Audio_element
 
   bool percussion_;
   bool merge_unisons_;
-  std::vector<Audio_item *> audio_items_;
+  vector<Audio_item *> audio_items_;
 };
 
 // Subtype to identify a staff that represents the "control track" of a MIDI
index fc7e3c19d00f81d512ce7d92704bffd162530d5d..5e5152d2378aa6e684c6c7e30f275f58eca8c711 100644 (file)
@@ -47,10 +47,10 @@ class Axis_group_interface
   DECLARE_SCHEME_CALLBACK (calc_pure_staff_staff_spacing, (SCM, SCM, SCM));
   DECLARE_SCHEME_CALLBACK (calc_pure_relevant_grobs, (SCM));
   DECLARE_SCHEME_CALLBACK (calc_pure_y_common, (SCM));
-  static SCM internal_calc_pure_relevant_grobs (Grob *, const std::string&);
-  static Interval relative_group_extent (std::vector<Grob *> const &list,
+  static SCM internal_calc_pure_relevant_grobs (Grob *, const string&);
+  static Interval relative_group_extent (vector<Grob *> const &list,
                                          Grob *common, Axis);
-  static Interval relative_maybe_bound_group_extent (std::vector<Grob *> const &list,
+  static Interval relative_maybe_bound_group_extent (vector<Grob *> const &list,
                                                      Grob *common, Axis, bool);
   static Interval relative_pure_height (Grob *me, int start, int end);
   static Interval combine_pure_heights (Grob *me, SCM, int, int);
@@ -64,7 +64,7 @@ class Axis_group_interface
   static void add_element (Grob *me, Grob *);
   static void set_axes (Grob *, Axis, Axis);
   static bool has_axis (Grob *, Axis);
-  static void get_children (Grob *, std::vector<Grob *> *);
+  static void get_children (Grob *, vector<Grob *> *);
   static Interval staff_extent (Grob *me, Grob *ref, Axis, Grob *staff, Axis);
   static SCM calc_common (Grob *, Axis);
   static Real minimum_distance (Grob *, Grob *, Axis);
index 022c42a85ae5a275f5ab5fc57dc24dd39842dc04..bbabfde7deca96823ca0477b84500af4f2cc22ca 100644 (file)
@@ -48,14 +48,14 @@ struct Beam_configuration
   Interval y;
   Real demerits;
 #if DEBUG_BEAM_SCORING
-  std::string score_card_;
+  string score_card_;
 #endif
 
   int next_scorer_todo;
 
   Beam_configuration ();
   bool done () const;
-  void add (Real demerit, const std::string &reason);
+  void add (Real demerit, const string &reason);
   static Beam_configuration *new_config (Interval start,
                                          Interval offset);
 };
@@ -140,14 +140,14 @@ private:
     affine linear in YL and YR. If YL == YR == 0, then we might have
     stem_y != 0.0, when we're cross staff.
   */
-  std::vector<Stem_info> stem_infos_;
-  std::vector<Real> chord_start_y_;
-  std::vector<Interval> head_positions_;
-  std::vector<Slice> beam_multiplicity_;
-  std::vector<bool> is_normal_;
-  std::vector<Real> base_lengths_;
-  std::vector<Real> stem_xpositions_;
-  std::vector<Real> stem_ypositions_;
+  vector<Stem_info> stem_infos_;
+  vector<Real> chord_start_y_;
+  vector<Interval> head_positions_;
+  vector<Slice> beam_multiplicity_;
+  vector<bool> is_normal_;
+  vector<Real> base_lengths_;
+  vector<Real> stem_xpositions_;
+  vector<Real> stem_ypositions_;
 
   bool is_xstaff_;
   bool is_knee_;
@@ -164,8 +164,8 @@ private:
   // Beam_configurations.
   Drul_array<Interval> quant_range_;
   Real beam_translation_;
-  std::vector<Beam_collision> collisions_;
-  std::vector<Beam_segment> segments_;
+  vector<Beam_collision> collisions_;
+  vector<Beam_segment> segments_;
 
   vsize first_normal_index ();
   vsize last_normal_index ();
@@ -180,7 +180,7 @@ private:
 
   void one_scorer (Beam_configuration *config) const;
   Beam_configuration *force_score (SCM inspect_quants,
-                                   const std::vector<Beam_configuration *> &configs) const;
+                                   const vector<Beam_configuration *> &configs) const;
   Real y_at (Real x, Beam_configuration const *c) const;
 
   // Scoring functions:
@@ -190,7 +190,7 @@ private:
   void score_slope_direction (Beam_configuration *config) const;
   void score_slope_musical (Beam_configuration *config) const;
   void score_stem_lengths (Beam_configuration *config) const;
-  void generate_quants (std::vector<Beam_configuration *> *scores) const;
+  void generate_quants (vector<Beam_configuration *> *scores) const;
   void score_collisions (Beam_configuration *config) const;
 };
 
index c6913eee2f715b3d3d17abb46362b23fbcaf6c4a..6dbdf4b23f626b1958655695e8001f9908a4b4e7 100644 (file)
@@ -66,7 +66,7 @@ public:
   static Real get_beam_translation (Grob *me);
   static Real get_beam_thickness (Grob *me);
   static void connect_beams (Grob *me);
-  static std::vector<Beam_segment> get_beam_segments (Grob *me_grob, Grob **common);
+  static vector<Beam_segment> get_beam_segments (Grob *me_grob, Grob **common);
 
   DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM prev_off));
   DECLARE_SCHEME_CALLBACK (pure_rest_collision_callback, (SCM element, SCM, SCM, SCM prev_off));
@@ -88,7 +88,7 @@ private:
   friend class Beam_scoring_problem;
 
   static Direction get_default_dir (Grob *);
-  static std::vector<Beam_segment> get_beam_segments (Grob *);
+  static vector<Beam_segment> get_beam_segments (Grob *);
   static void set_stem_directions (Grob *, Direction);
   static void consider_auto_knees (Grob *);
   static void set_stem_shorten (Grob *);
index 4a1d970ef34e5202ea69f0453b18896c72e8c76e..217af19088a4268ce8cfc88cb1a970dbfe6c3a31 100644 (file)
@@ -76,7 +76,7 @@ public:
   Beaming_pattern *split_pattern (int idx);
 
 private:
-  std::vector<Beam_rhythmic_element> infos_;
+  vector<Beam_rhythmic_element> infos_;
   Direction flag_direction (Beaming_options const &, vsize) const;
   void find_rhythmic_importance (Beaming_options const &);
   void unbeam_invisible_stems ();
index 2222c801252f22573579ca87eaa50b774eb42024..959afc5c4ee32cc2a475d8eadee00eb1cf5ecab5 100644 (file)
@@ -39,10 +39,10 @@ public:
   Bezier extract (Real, Real) const;
 
   Real get_other_coordinate (Axis a, Real x) const;
-  std::vector<Real> get_other_coordinates (Axis a, Real x) const;
-  std::vector<Real> solve_point (Axis, Real coordinate) const;
+  vector<Real> get_other_coordinates (Axis a, Real x) const;
+  vector<Real> solve_point (Axis, Real coordinate) const;
   Real minmax (Axis, Real, Real, Direction) const;
-  std::vector<Real> solve_derivative (Offset) const;
+  vector<Real> solve_derivative (Offset) const;
   Interval extent (Axis) const;
   Interval control_point_extent (Axis) const;
 
@@ -55,15 +55,15 @@ public:
 
   /*
     Bezier curves always have 4 control points. Making this into an
-    std::vector<> gives unnecessary overhead, and makes debugging a royal
+    vector<> gives unnecessary overhead, and makes debugging a royal
     pain.  */
 
   Offset control_[4];
 };
 
-void scale (std::vector<Offset> *array, Real xscale, Real yscale);
-void rotate (std::vector<Offset> *array, Real phi);
-void translate (std::vector<Offset> *array, Offset o);
+void scale (vector<Offset> *array, Real xscale, Real yscale);
+void rotate (vector<Offset> *array, Real phi);
+void translate (vector<Offset> *array, Offset o);
 
 Bezier slur_shape (Real width, Real height_limit,
                    Real height_proportion);
index 87e9073b5bac2ec56305f56bae612c374ba23c16..cbb7f00c7441c2397043a8bb16fe781c8407b97e 100644 (file)
@@ -26,7 +26,7 @@
 class Break_alignment_interface
 {
 public:
-  static std::vector<Grob *> ordered_elements (Grob *me);
+  static vector<Grob *> ordered_elements (Grob *me);
   static void add_element (Grob *me, Grob *add);
   static SCM break_align_order (Item *me);
   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM element));
index d7473706ddf56c15000940736109eb4a70a520a9..1ba16c09071916727300214f903ffbb6d83ea6e5 100644 (file)
@@ -31,11 +31,11 @@ public:
   DECLARE_CLASSNAME (Change_iterator);
 
   // returns an error message (empty on success)
-  static std::string change_to (Music_iterator &it,
-                           SCM to_type, const std::string &to_id);
+  static string change_to (Music_iterator &it,
+                           SCM to_type, const string &to_id);
 
 private:
-  void error (const std::string&);
+  void error (const string&);
 };
 
 #endif
index 2c1ae65a227bfad39309f37ef1e5a76f1de8fe4c..2c2dfe3eb09c7910a3cf9fc08ef7ec1cc5d06804 100644 (file)
@@ -35,7 +35,7 @@ protected:
 
 private:
   // implement in derived class to effect a context change
-  virtual void change_to (const std::string &id) = 0;
+  virtual void change_to (const string &id) = 0;
 
 private:
   // There is no need to protect this in derived_mark() because it is protected
index 0aad39c110899eb122f9516ed46d27468a19f211..19e731815af44cd598e1170f68335e3609f7913d 100644 (file)
@@ -29,12 +29,12 @@ public:
 
 protected:
   virtual void build_ligature (Spanner *ligature,
-                               std::vector<Grob_info> const &primitives) = 0;
+                               vector<Grob_info> const &primitives) = 0;
   virtual void typeset_ligature (Spanner *ligature,
-                                 std::vector<Grob_info> const &primitives);
+                                 vector<Grob_info> const &primitives);
   virtual void move_related_items_to_column (Item *, Paper_column *, Real);
 private:
-  void collect_accidentals (Spanner *, std::vector<Grob_info> const &);
+  void collect_accidentals (Spanner *, vector<Grob_info> const &);
 };
 
 #endif // COHERENT_LIGATURE_ENGRAVER_HH
index dc35c0dc8989c0b3c54b0b30308c0369a5db113d..f4ef6a02dc185a4a04d1e4e4a803856166576b8c 100644 (file)
 
 struct Column_x_positions
 {
-  std::vector<Grob *> cols_;
-  std::vector<Grob *> loose_cols_;
+  vector<Grob *> cols_;
+  vector<Grob *> loose_cols_;
 
-  std::vector<Real> config_;
+  vector<Real> config_;
   Real force_;
   bool satisfies_constraints_;
 
index bb8dcf0c3cc6e56928f5d6e09f2ab3a2a64563c1..e35fcc0bbecf03db6906d6a535f753b85ebcefeb 100644 (file)
@@ -45,10 +45,10 @@ struct Line_details
   Grob *last_column_;
   Real force_;
   Line_shape shape_;
-  std::vector<Real> footnote_heights_; /* The footnotes at the bottom of the
+  vector<Real> footnote_heights_; /* The footnotes at the bottom of the
                                    page, where each stencil represents
                                    a different footnote. */
-  std::vector<Real> in_note_heights_; /* The in-notes under a system,
+  vector<Real> in_note_heights_; /* The in-notes under a system,
                                    where each stencil represents
                                    a different in-note. */
   Interval refpoint_extent_; /* The refpoints of the first and last
@@ -154,12 +154,12 @@ struct Constrained_break_node
 class Constrained_breaking
 {
 public:
-  std::vector<Column_x_positions> solve (vsize start, vsize end, vsize sys_count);
-  std::vector<Column_x_positions> best_solution (vsize start, vsize end);
-  std::vector<Line_details> line_details (vsize start, vsize end, vsize sys_count);
+  vector<Column_x_positions> solve (vsize start, vsize end, vsize sys_count);
+  vector<Column_x_positions> best_solution (vsize start, vsize end);
+  vector<Line_details> line_details (vsize start, vsize end, vsize sys_count);
 
   Constrained_breaking (Paper_score *ps);
-  Constrained_breaking (Paper_score *ps, std::vector<vsize> const &start_col_posns);
+  Constrained_breaking (Paper_score *ps, vector<vsize> const &start_col_posns);
 
   int max_system_count (vsize start, vsize end);
   int min_system_count (vsize start, vsize end);
@@ -186,13 +186,13 @@ private:
 
   /* the [i](j,k)th entry is the score for fitting the first k bars onto the
     first j systems, starting at the i'th allowed starting column */
-  std::vector<Matrix<Constrained_break_node> > state_;
+  vector<Matrix<Constrained_break_node> > state_;
 
-  std::vector<vsize> start_;         /* the columns at which we might be asked to start breaking */
-  std::vector<vsize> starting_breakpoints_; /* the corresponding index in breaks_ */
+  vector<vsize> start_;         /* the columns at which we might be asked to start breaking */
+  vector<vsize> starting_breakpoints_; /* the corresponding index in breaks_ */
 
-  std::vector<Grob *> all_;
-  std::vector<vsize> breaks_;
+  vector<Grob *> all_;
+  vector<vsize> breaks_;
 
   void initialize ();
   void resize (vsize systems);
index 46f9d5560d5d7f038b7cd3d31115ab4cd82d8ddf..c49fee1e305a6ada60a051ac52400a0e7044bfae 100644 (file)
@@ -65,13 +65,13 @@ public:
 
   VIRTUAL_COPY_CONSTRUCTOR (Context_def, Context_def);
 
-  std::vector<Context_def *> path_to_acceptable_context (SCM type_string,
+  vector<Context_def *> path_to_acceptable_context (SCM type_string,
                                                     Output_def *,
                                                     SCM) const;
-  std::vector<Context_def *> internal_path_to_acceptable_context (SCM type_string,
+  vector<Context_def *> internal_path_to_acceptable_context (SCM type_string,
                                                              Output_def *,
                                                              SCM,
-                                                             std::set<const Context_def *> *seen) const;
+                                                             set<const Context_def *> *seen) const;
   Context *instantiate (SCM extra_ops);
 
   SCM to_alist () const;
index 76317e96b4956c835e297f418046f2fe8e56bdb9..28e80fd2db070b32001b82ceaf508a11869f3977 100644 (file)
@@ -63,7 +63,7 @@ protected:
   SCM default_child_;
   SCM aliases_;
   Translator_group *implementation_;
-  std::string id_string_;
+  string id_string_;
 
   /* Events reported in the context is sent to this dispatcher. */
   Dispatcher *event_source_;
@@ -83,7 +83,7 @@ protected:
   void unset_property_from_event (SCM);
 
 public:
-  std::string id_string () const { return id_string_; }
+  string id_string () const { return id_string_; }
   SCM children_contexts () const { return context_list_; }
   SCM default_child_context_name () const;
 
@@ -108,21 +108,21 @@ public:
   void instrumented_set_property (SCM, SCM, const char *, int, const char *);
   void internal_set_property (SCM var_sym, SCM value);
 
-  Context *create_context (Context_def *, const std::string&, SCM);
+  Context *create_context (Context_def *, const string&, SCM);
   void create_context_from_event (SCM);
   void acknowledge_infant (SCM);
   void remove_context (SCM);
   void change_parent (SCM);
   void disconnect_from_parent ();
   void check_removal ();
-  std::string context_name () const;
+  string context_name () const;
   SCM context_name_symbol () const;
   Global_context *get_global_context () const;
 
   virtual Context *get_score_context () const;
   virtual Output_def *get_output_def () const;
   virtual Moment now_mom () const;
-  virtual Context *get_default_interpreter (const std::string &context_id = "");
+  virtual Context *get_default_interpreter (const string &context_id = "");
 
   bool is_alias (SCM) const;
   void add_alias (SCM);
@@ -131,10 +131,10 @@ public:
   bool is_removable () const;
 
   Context *find_create_context (SCM context_name,
-                                const std::string &id, SCM ops);
-  Context *create_unique_context (SCM context_name, const std::string &context_id,
+                                const string &id, SCM ops);
+  Context *create_unique_context (SCM context_name, const string &context_id,
                                   SCM ops);
-  std::vector<Context_def *> path_to_acceptable_context (SCM alias) const;
+  vector<Context_def *> path_to_acceptable_context (SCM alias) const;
 };
 
 /*
@@ -158,13 +158,13 @@ Context *find_context_above_by_parent_type (Context *where, SCM parent_type);
 // context and moving toward the leaves of the tree.  If the starting context
 // matches, it is returned.  An empty ID matches any context of the given type.
 Context *find_context_below (Context *where,
-                             SCM type_sym, const std::string &id);
+                             SCM type_sym, const string &id);
 
 // Search for a context of the given type and ID starting with the given
 // context, then searching its descendants, then its parent's descendants, etc.
 // An empty ID matches any context of the given type.
 Context *find_context_near (Context *where,
-                            SCM type_sym, const std::string &id);
+                            SCM type_sym, const string &id);
 
 // Search for the top context (i.e. the ancestor with no parent) starting with
 // the given context.
index aa01197611f0a48887e1092764ca3bf7c2046e90..a0e2f25edd9203e83f24288e4dde9c1c6b2db5ad 100644 (file)
@@ -37,7 +37,7 @@ const Real PT_TO_MM = (1.0 / MM_TO_PT);
 
 #endif
 
-std::string print_dimen (Real);
+string print_dimen (Real);
 const Real point_constant = 1 PT;
 const Real inch_constant = 1 INCH;
 const Real cm_constant = 1 CM;
index cfc5ec67ca093780c71dc66c1e4bfce1c46e1ff1..b4e2219e6c3280bc9dff618b0d934fe12e6a97dd 100644 (file)
@@ -42,7 +42,7 @@ struct Dot_position
   }
 };
 
-struct Dot_configuration : public std::map<int, Dot_position>
+struct Dot_configuration : public map<int, Dot_position>
 {
   Dot_formatting_problem const *problem_;
 
index 7c2aca3115c08bc3c7b38eba63607bdda4b65e8c..fcb6d19a223d69b567d531c5a30126b669c5a38f 100644 (file)
@@ -14,7 +14,7 @@ struct Dot_formatting_problem
 
   void register_configuration (Dot_configuration const &);
   Dot_configuration *best () const;
-  Dot_formatting_problem (std::vector<Box> const &boxes, Interval base_x);
+  Dot_formatting_problem (vector<Box> const &boxes, Interval base_x);
   ~Dot_formatting_problem ();
 };
 
index 303fecbeffcb8f97eeaf2e19162196807e418967..7a57cf53af6a4ff5dd333266173374a89bac9591 100644 (file)
@@ -33,7 +33,7 @@ struct Duration : public Simple_smob<Duration>
   Duration ();
   Duration (int, int);
   Duration (Rational, bool scale);
-  std::string to_string () const;
+  string to_string () const;
 
   Duration compressed (Rational) const;
   Rational get_length () const;
index e3cb3b12180e14848e255d6c020b9d163ff46e93..aa3cd478bce652c5bc6a098e0250be689a38d0f0 100644 (file)
@@ -26,7 +26,7 @@
 class Engraver_group : public Translator_group
 {
 protected:
-  std::vector<Grob_info> announce_infos_;
+  vector<Grob_info> announce_infos_;
   Drul_array<SCM> acknowledge_hash_table_drul_;
   void override (SCM);
   void revert (SCM);
index c0091a3b1e082fb7ca5c7c2e0a2b358e3b7224bf..3fb22d6a2ad3b6a26f6679cab5baf1eaaa9ad6f3 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "std-string.hh"
 
-std::string map_file_name (const std::string &s);
+string map_file_name (const string &s);
 
 #endif /* FILE_NAME_MAP_HH */
 
index 4d4694cb21edf5abca8c7da11f8a6bf2e9b89711..d74c8157ca9f50003aa1777d9cb35ed3d8923b19 100644 (file)
@@ -42,22 +42,22 @@ private:
 
 public:
   SCM description_;
-  std::string file_name_;
+  string file_name_;
 
-  // Return stencil for given std::string. output_state may be modified to
+  // Return stencil for given string. output_state may be modified to
   // record the font.
   virtual Stencil text_stencil (Output_def *output_state,
-                                const std::string &text, bool music) const;
+                                const string &text, bool music) const;
 
-  virtual std::string font_name () const;
+  virtual string font_name () const;
   virtual size_t count () const;
-  virtual Offset attachment_point (const std::string&) const;
+  virtual Offset attachment_point (const string&) const;
   virtual Offset get_indexed_wxwy (size_t) const;
   virtual Box get_indexed_char_dimensions (size_t index) const;
-  virtual size_t name_to_index (std::string) const=0;
+  virtual size_t name_to_index (string) const=0;
   virtual size_t index_to_charcode (size_t) const;
   virtual Real design_size () const;
-  virtual Stencil find_by_name (std::string) const;
+  virtual Stencil find_by_name (string) const;
   virtual SCM sub_fonts () const;
   virtual SCM font_file_name () const;
 
index 43907d87d0ad504b0a74b9578cf70ef33555a556..e4009ba072eee154f0050dcd1b91e371061e0e3b 100644 (file)
@@ -30,7 +30,7 @@
 void init_freetype ();
 extern FT_Library freetype2_library;
 
-std::string freetype_error_string (FT_Error code);
+string freetype_error_string (FT_Error code);
 
 SCM box_to_scheme_lines (Box b);
 Box ly_FT_get_unscaled_indexed_char_dimensions (FT_Face const &face, size_t signed_idx);
index 1779280accd717f8662d70983e26e89937c81390..75b52c95ae01f9fd943e46ed65add4fd4615be99 100644 (file)
@@ -46,7 +46,7 @@ public:
   virtual SCM get_output ();
   virtual Output_def *get_output_def () const;
   virtual Moment now_mom () const;
-  virtual Context *get_default_interpreter (const std::string &context_id = "");
+  virtual Context *get_default_interpreter (const string &context_id = "");
 
   Moment previous_moment () const;
 protected:
index 5727910666dd0732228c1e12e7448f3a6b294f99..5aea42662b29bd909471a9469b216ba097c222c1 100644 (file)
@@ -34,9 +34,9 @@ protected:
 
   virtual void listen_pes_or_flexa (Stream_event *ev);
   virtual void build_ligature (Spanner *ligature,
-                               std::vector<Grob_info> const &primitives);
+                               vector<Grob_info> const &primitives);
   virtual void transform_heads (Spanner *ligature,
-                                std::vector<Grob_info> const &primitives) = 0;
+                                vector<Grob_info> const &primitives) = 0;
   void stop_translation_timestep ();
 };
 
index 251766062a396b3fc79bd6a0db386be73afa46e7..00894341632fd00ad4e3492599d92179be491a2c 100644 (file)
@@ -27,7 +27,7 @@ class Grob;
 class Gregorian_ligature
 {
 public:
-  static std::string prefixes_to_str (Grob *);
+  static string prefixes_to_str (Grob *);
 };
 
 /*
index ccbf8c82a889e9ad89198606d510b0f963c4f8ee..e3963f019dba3451e7961e5d8fcc6fb87db7bfcf 100644 (file)
@@ -31,7 +31,7 @@ public:
   SCM mark_smob () const;
   static const char type_p_name_[];
 private:
-  std::vector<Grob *> grobs_;
+  vector<Grob *> grobs_;
   bool ordered_;
 
 
@@ -47,14 +47,14 @@ public:
   void remove_duplicates ();
   void clear ();
   void add (Grob *x) { grobs_.push_back (x); }
-  void set_array (std::vector<Grob *> const &src);
-  std::vector<Grob *> &array_reference ();
-  std::vector<Grob *> const &array () const;
+  void set_array (vector<Grob *> const &src);
+  vector<Grob *> &array_reference ();
+  vector<Grob *> const &array () const;
   static SCM make_array ();
 };
 
 
-std::vector<Grob *> const &ly_scm2link_array (SCM x);
+vector<Grob *> const &ly_scm2link_array (SCM x);
 SCM grob_list_to_grob_array (SCM lst);
 SCM grob_array_to_list (Grob_array *array);
 
index 1faeb5a2da973e73204e16d576df4aba38a250da..1df88ce749f2de9204db3684c38bcf017367db34 100644 (file)
@@ -42,7 +42,7 @@ public:
   Context *context () const;
   Stream_event *event_cause () const;
   Stream_event *ultimate_event_cause () const;
-  std::vector<Context *> origin_contexts (Translator *) const;
+  vector<Context *> origin_contexts (Translator *) const;
   Grob_info (Translator *, Grob *);
   Grob_info ();
 
index 5dda5112b22eef285dd3a12a3e1111e5cd13a382..db51e02e73cb0a0c5ec6ce1f4e91d56d5bc69bbe 100644 (file)
@@ -102,7 +102,7 @@ public:
   bool is_live () const;
 
   /* naming. */
-  std::string name () const;
+  string name () const;
 
   /* Properties */
   SCM get_property_alist_chain (SCM) const;
@@ -118,8 +118,8 @@ public:
   void internal_set_property (SCM sym, SCM val);
 
   /* messages */
-  void warning (const std::string&) const;
-  void programming_error (const std::string&) const;
+  void warning (const string&) const;
+  void programming_error (const string&) const;
 
   /* class hierarchy */
   virtual System *get_system () const;
@@ -181,12 +181,12 @@ inline bool has_interface(Grob *g)
 }
 
 /* unification */
-void uniquify (std::vector <Grob *> &);
+void uniquify (vector <Grob *> &);
 
 /* refpoints */
 Grob *common_refpoint_of_list (SCM elt_list, Grob *, Axis a);
-Grob *common_refpoint_of_array (std::vector<Grob *> const &, Grob *, Axis a);
-Grob *common_refpoint_of_array (std::set<Grob *> const &, Grob *, Axis a);
+Grob *common_refpoint_of_array (vector<Grob *> const &, Grob *, Axis a);
+Grob *common_refpoint_of_array (set<Grob *> const &, Grob *, Axis a);
 System *get_root_system (Grob *me);
 
 /* extents */
index 0b30949c2577bfc2c6e3e19594dab3736bc61cfe..3a1692fc1124b216e04c253f064263cfa27bf0e9 100644 (file)
@@ -29,7 +29,7 @@ struct Horizontal_bracket
   DECLARE_SCHEME_CALLBACK (print, (SCM));
   static Stencil make_bracket (Grob *, Real, Axis, Direction);
   static Stencil make_enclosing_bracket (Grob *me, Grob *refpoint,
-                                         std::vector<Grob *> grobs,
+                                         vector<Grob *> grobs,
                                          Axis a, Direction dir);
 };
 
index a4c3c0545d3fdf929e589cdb3e248c740bedaa3f..bfc3d81718904244e7b4638735f9105bb905fdfd 100644 (file)
@@ -36,26 +36,26 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
 */
 class Includable_lexer : public yyFlexLexer
 {
-  std::vector<YY_BUFFER_STATE> state_stack_;
+  vector<YY_BUFFER_STATE> state_stack_;
 
 protected:
   bool close_input ();
-  std::vector<Source_file *> include_stack_;
-  std::vector<int> char_count_stack_;
+  vector<Source_file *> include_stack_;
+  vector<int> char_count_stack_;
 
 public:
 
   Includable_lexer ();
   ~Includable_lexer ();
-  std::string main_input_name_;
+  string main_input_name_;
 
   /// store dependencies for Makefile stuff.
-  std::vector<std::string> file_name_strings_;
+  vector<string> file_name_strings_;
 
   Source_file *get_source_file () const;
-  virtual void new_input (const std::string &s, Sources *);
+  virtual void new_input (const string &s, Sources *);
 
-  void new_input (const std::string &name, std::string data, Sources *);
+  void new_input (const string &name, string data, Sources *);
 
   char const *here_str0 () const;
 };
index dbe3a2b52568cb133e3d5821a82fcc230d7f986e..b77db2d66f547051ca07fd51cdb615dfbc34126d 100644 (file)
@@ -41,21 +41,21 @@ public:
   char const *end () const;
 
   void set (Source_file *, char const *, char const *);
-  void error (const std::string&) const;
-  void programming_error (const std::string&) const;
-  void non_fatal_error (const std::string&) const;
-  void warning (const std::string&) const;
-  void message (const std::string&) const;
-  void debug_output (const std::string&) const;
+  void error (const string&) const;
+  void programming_error (const string&) const;
+  void non_fatal_error (const string&) const;
+  void warning (const string&) const;
+  void message (const string&) const;
+  void debug_output (const string&) const;
   void set_spot (Input const &);
   void step_forward ();
   void set_location (Input const &, Input const &);
 
   Input spot () const;
 
-  std::string location_string () const;
-  std::string line_number_string () const;
-  std::string file_string ()const;
+  string location_string () const;
+  string line_number_string () const;
+  string file_string ()const;
 
   int line_number ()const;
   int column_number ()const;
@@ -67,8 +67,8 @@ public:
   Input (Input const &i);
   Input ();
 protected:
-  std::string message_location () const;
-  std::string message_string (const std::string &msg) const;
+  string message_location () const;
+  string message_string (const string &msg) const;
 };
 
 extern Input dummy_input_global;
index 8977707e6b64f181110a4b9c904d853140c9a5f2..fc748c17b6310ac9f1b0cd03f34ecdc5e72dfc4a 100644 (file)
@@ -34,7 +34,7 @@ public:
   void solve ();
 
 private:
-  std::vector<Interval> forbidden_intervals_;
+  vector<Interval> forbidden_intervals_;
   Interval feasible_placements_;
   Real bulk_;
 };
index 119345ea59f154cc637c8e4533def55a5eab5504..0f36fe812b2229bdbf951fdcf3844012b805ea68 100644 (file)
@@ -34,7 +34,7 @@ struct Keyword_ent
 */
 struct Keyword_table
 {
-  std::vector<Keyword_ent> table_;
+  vector<Keyword_ent> table_;
 
   Keyword_table (Keyword_ent *);
   vsize lookup (char const *s) const;
index cee025d3cb446b0e6b8ce037d395a43bd8f89960..5a8c39bacc23fc8d2a412239701289981a1b2444 100644 (file)
@@ -25,7 +25,7 @@
 /**
    Least squares minimisation in 2 variables.
 */
-void minimise_least_squares (Real *coef, Real *offset, std::vector<Offset> const &);
+void minimise_least_squares (Real *coef, Real *offset, vector<Offset> const &);
 
 #endif // LEASTSQUARE_HH
 
index 0af8d1466abc7f4be040779d638be491cb65143c..6f53331a4e5493627debd1ebea1bc48952f28726 100644 (file)
@@ -36,7 +36,7 @@ protected:
   void process_music ();
   virtual Spanner *create_ligature_spanner () = 0;
   virtual void typeset_ligature (Spanner *ligature,
-                                 std::vector<Grob_info> const &primitives) = 0;
+                                 vector<Grob_info> const &primitives) = 0;
   virtual Spanner *current_ligature ();
   SCM brew_ligature_primitive_proc;
 
@@ -48,10 +48,10 @@ private:
   Drul_array<Stream_event *> events_drul_;
 
   Spanner *ligature_;
-  std::vector<Grob_info> primitives_;
+  vector<Grob_info> primitives_;
 
   Spanner *finished_ligature_;
-  std::vector<Grob_info> finished_primitives_;
+  vector<Grob_info> finished_primitives_;
 
   Stream_event *prev_start_event_;
 
index d1728d8fd2d1e17bea9755d9a11fc013764367ea..869a52af327c137a72b634e8ac837630f94acfd8 100644 (file)
@@ -25,7 +25,7 @@
 #if GUILEV2
 // if Guile's internal representation switches to utf8, this should be
 // changed accordingly for efficiency's sake.  This is used for
-// strings known to be in ASCII entirely, including any std::string
+// strings known to be in ASCII entirely, including any string
 // constants in the C code.
 #define scm_from_ascii_string scm_from_latin1_string
 #define scm_from_ascii_stringn scm_from_latin1_stringn
@@ -77,7 +77,7 @@ scm_or_str2symbol (SCM s)
 }
 
 /* Using this trick we cache the value of scm_from_locale_symbol ("fooo") where
-   "fooo" is a constant std::string. This is done at the cost of one static
+   "fooo" is a constant string. This is done at the cost of one static
    variable per ly_symbol2scm() use, and one boolean evaluation for
    every call.
  */
@@ -107,10 +107,10 @@ inline SCM ly_symbol2scm (char const *x) { return scm_from_utf8_symbol ((x)); }
   static SCM NAME ARGS;                         \
   static SCM NAME ## _proc
 
-std::string mangle_cxx_identifier (std::string);
+string mangle_cxx_identifier (string);
 
-void ly_add_type_predicate (void *ptr, const std::string &name);
-std::string predicate_to_typename (void *ptr);
+void ly_add_type_predicate (void *ptr, const string &name);
+string predicate_to_typename (void *ptr);
 
 /*
   Make TYPE::FUNC available as a Scheme function.
@@ -120,8 +120,8 @@ std::string predicate_to_typename (void *ptr);
   void                                                                  \
   TYPE ## _ ## FUNC ## _init_functions ()                               \
   {                                                                     \
-    std::string cxx = std::string (#TYPE) + "::" + std::string (#FUNC); \
-    std::string id = mangle_cxx_identifier (cxx); \
+    string cxx = string (#TYPE) + "::" + string (#FUNC); \
+    string id = mangle_cxx_identifier (cxx); \
     TYPE ::FUNC ## _proc = scm_c_define_gsubr (id.c_str(),                      \
                                                (ARGCOUNT-OPTIONAL_COUNT), OPTIONAL_COUNT, 0,    \
                                                (scm_t_subr) TYPE::FUNC); \
@@ -139,8 +139,8 @@ std::string predicate_to_typename (void *ptr);
 #define MAKE_SCHEME_CALLBACK(TYPE, FUNC, ARGCOUNT)                      \
   MAKE_SCHEME_CALLBACK_WITH_OPTARGS(TYPE,FUNC,ARGCOUNT, 0, "");
 
-void ly_add_function_documentation (SCM proc, const std::string &fname, const std::string &varlist, const std::string &doc);
-void ly_check_name (const std::string &cxx, const std::string &fname);
+void ly_add_function_documentation (SCM proc, const string &fname, const string &varlist, const string &doc);
+void ly_check_name (const string &cxx, const string &fname);
 
 #define ADD_SCM_INIT_FUNC(name, func)           \
   class name ## _scm_initter                    \
index a014e018a6b4cbba32d35a0579d53157037b08a8..34578511b8388700b38f7c4bacfe02605ded908f 100644 (file)
     A ly_B2A (B b);  */
 
 SCM ly_last (SCM list);
-std::string ly_scm_write_string (SCM s);
+string ly_scm_write_string (SCM s);
 SCM ly_deep_copy (SCM);
 SCM ly_truncate_list (int k, SCM lst);
 
-std::string gulp_file_to_string (const std::string &fn, bool must_exist, int size);
+string gulp_file_to_string (const string &fn, bool must_exist, int size);
 
-SCM ly_string2scm (std::string const &s);
-std::string ly_scm2string (SCM s);
-std::string ly_symbol2string (SCM);
-std::string robust_symbol2string (SCM, const std::string&);
+SCM ly_string2scm (string const &s);
+string ly_scm2string (SCM s);
+string ly_symbol2string (SCM);
+string robust_symbol2string (SCM, const string&);
 Rational ly_scm2rational (SCM);
 SCM ly_rational2scm (Rational);
 SCM ly_offset2scm (Offset);
@@ -75,14 +75,14 @@ Drul_array<Real> robust_scm2drul (SCM, Drul_array<Real>);
 Drul_array<bool> robust_scm2booldrul (SCM, Drul_array<bool>);
 Interval robust_scm2interval (SCM, Drul_array<Real>);
 Offset robust_scm2offset (SCM, Offset);
-std::string robust_scm2string (SCM, const std::string&);
+string robust_scm2string (SCM, const string&);
 Rational robust_scm2rational (SCM, Rational);
-std::vector<Real> ly_scm2floatvector (SCM);
-SCM ly_floatvector2scm (std::vector<Real> v);
+vector<Real> ly_scm2floatvector (SCM);
+SCM ly_floatvector2scm (vector<Real> v);
 
 SCM ly_quote_scm (SCM s);
 bool type_check_assignment (SCM val, SCM sym, SCM type_symbol);
-std::string print_scm_val (SCM val);
+string print_scm_val (SCM val);
 SCM ly_number2string (SCM s);
 
 SCM parse_symbol_list (char const *);
@@ -137,7 +137,7 @@ extern "C" {
   void ly_display_scm (SCM s);
 }
 
-void read_lily_scm_file (std::string);
+void read_lily_scm_file (string);
 void ly_c_init_guile ();
 
 bool is_direction (SCM s);
@@ -202,7 +202,7 @@ inline bool ly_is_pair (SCM x) { return SCM_I_CONSP (x); }
 
 template<class T>
 SCM
-ly_cxx_vector_to_list (std::vector<T> const &src)
+ly_cxx_vector_to_list (vector<T> const &src)
 {
   SCM l = SCM_EOL;
   for (vsize i = src.size (); i--;)
@@ -211,8 +211,8 @@ ly_cxx_vector_to_list (std::vector<T> const &src)
   return l;
 }
 
-SCM ly_offsets2scm (std::vector<Offset> os);
-std::vector<Offset> ly_scm2offsets (SCM s);
+SCM ly_offsets2scm (vector<Offset> os);
+vector<Offset> ly_scm2offsets (SCM s);
 
 /* For backward compatability with Guile 1.8 */
 #if !HAVE_GUILE_HASH_FUNC
index 588da0d8f2356111b146e7869aa664e253eedc2e..0e001ec187a76aae50ecf7aec3e312349df280a3 100644 (file)
@@ -39,10 +39,10 @@ public:
   static const char type_p_name_[];
   virtual ~Lily_lexer ();
 private:
-  int lookup_keyword (const std::string&);
-  int scan_bare_word (const std::string&);
-  int scan_escaped_word (const std::string&);
-  int scan_shorthand (const std::string&);
+  int lookup_keyword (const string&);
+  int scan_bare_word (const string&);
+  int scan_escaped_word (const string&);
+  int scan_shorthand (const string&);
   int scan_scm_id (SCM);
   int identifier_type (SCM);
   char escaped_char (char) const;
@@ -93,12 +93,12 @@ public:
 
   void start_main_input ();
 
-  virtual void new_input (const std::string &s, Sources *);
-  virtual void new_input (const std::string &s, std::string d, Sources *);
+  virtual void new_input (const string &s, Sources *);
+  virtual void new_input (const string &s, string d, Sources *);
 
   bool top_input () { return include_stack_.size () < 2; }
   SCM keyword_list () const;
-  SCM lookup_identifier (const std::string &s);
+  SCM lookup_identifier (const string &s);
   SCM lookup_identifier_symbol (SCM s);
   void push_extra_token (Input const &where,
                          int token_type, SCM scm = SCM_UNSPECIFIED);
index 0a8656fd150e82fed4fe417d99738359bb929678..b08df7c7a4ab487f5329b6f4f981a1b2c68f234b 100644 (file)
@@ -42,7 +42,7 @@ public:
   Sources *sources_;
   Duration default_duration_;
   int default_tremolo_type_;
-  std::string output_basename_;
+  string output_basename_;
   SCM closures_;
 
   int fatal_error_;
@@ -57,14 +57,14 @@ public:
 
   void clear ();
   void do_init_file ();
-  void include_string (const std::string &ly_code);
-  void parse_file (const std::string &init, const std::string &name, const std::string &out_name);
-  void parse_string (const std::string &ly_code);
-  SCM parse_string_expression (const std::string &ly_code, const std::string &filename, int line);
-  void parser_error (const std::string&);
-  void parser_error (Input const &, const std::string&);
+  void include_string (const string &ly_code);
+  void parse_file (const string &init, const string &name, const string &out_name);
+  void parse_string (const string &ly_code);
+  SCM parse_string_expression (const string &ly_code, const string &filename, int line);
+  void parser_error (const string&);
+  void parser_error (Input const &, const string&);
   // The following is called as yyerror
-  static void parser_error (Input const *i, Lily_parser *parser, SCM *, const std::string &s);
+  static void parser_error (Input const *i, Lily_parser *parser, SCM *, const string &s);
   void set_yydebug (bool);
 
   SCM make_scope () const;
index 842e35cc57b7f1870e1ef41f0f51d2fce3adfb89..edb46c6c5823e7cb2ce2ed07a56b7aabb0b43f39 100644 (file)
@@ -22,9 +22,9 @@
 
 #include "std-string.hh"
 
-std::string version_string ();
-std::string gnu_lilypond_string ();
-std::string gnu_lilypond_version_string ();
+string version_string ();
+string gnu_lilypond_string ();
+string gnu_lilypond_version_string ();
 
 #endif // LILY_VERSION_HH
 
index 1d25de986e66aac76064dbcd77764f35711f71bf..818414abdf15abb3f2ec83e53a261d2c08014fad 100644 (file)
 struct Lilypond_version
 {
   Lilypond_version (int major, int minor, int patch);
-  Lilypond_version (const std::string &str);
+  Lilypond_version (const string &str);
 
-  std::string to_string () const;
+  string to_string () const;
   operator bool () const;
   static int compare (const Lilypond_version &, const Lilypond_version &);
 
   int major_;
   int minor_;
   int patch_;
-  std::string extra_patch_string_;
+  string extra_patch_string_;
 };
 
 INSTANTIATE_COMPARE (const Lilypond_version &, Lilypond_version::compare);
index 11687c0fdbc91cebb57f7c02323cea0b42c0322f..3c9c19d7dee28756f628d4f845f6cb673b4244f2 100644 (file)
@@ -29,7 +29,7 @@ struct Lookup
   static Stencil bracket (Axis a, Interval iv, Real thick, Real protrude, Real blot);
   static Stencil circle (Real rad, Real thick, bool filled);
   static Stencil rotated_box (Real slope, Real width, Real thick, Real blot);
-  static Stencil round_filled_polygon (std::vector<Offset> const &points, Real blotdiameter);
+  static Stencil round_filled_polygon (vector<Offset> const &points, Real blotdiameter);
   static Stencil frame (Box b, Real thick, Real blot);
   static Stencil slur (Bezier controls, Real cthick, Real thick,
                        SCM dash_definition);
@@ -42,7 +42,7 @@ struct Lookup
   static Stencil repeat_slash (Real w, Real slope, Real th);
   static Stencil horizontal_line (Interval w, Real th);
   static Stencil triangle (Interval iv, Real thick, Real protrude);
-  static Stencil points_to_line_stencil (Real thick, std::vector<Offset> const &points);
+  static Stencil points_to_line_stencil (Real thick, vector<Offset> const &points);
 };
 
 #endif // LOOKUP_HH
index 5d72793c9ff0c3e4f7d88795395726ee76316f7b..1e6e2caf5185d99dcfd41d2c5829da4342435f9b 100644 (file)
@@ -29,32 +29,32 @@ void do_scores ();
 void clear_scores ();
 void add_score (Score *s);
 void call_constructors ();
-std::vector<std::string> get_inclusion_names ();
-void set_inclusion_names (std::vector<std::string>);
+vector<string> get_inclusion_names ();
+void set_inclusion_names (vector<string>);
 
-extern std::string init_name_global;
+extern string init_name_global;
 
 /* options */
-extern std::vector<std::string> dump_header_fieldnames_global;
-extern std::vector<std::string> start_environment_global;
-extern std::string output_backend_global;
-extern std::string output_name_global;
+extern vector<string> dump_header_fieldnames_global;
+extern vector<string> start_environment_global;
+extern string output_backend_global;
+extern string output_name_global;
 extern bool bigpdfs;
 extern bool be_safe_global;
 extern bool do_internal_type_checking_global;
-extern std::string lilypond_datadir;
+extern string lilypond_datadir;
 extern bool use_object_keys;
 extern bool strict_infinity_checking;
-extern std::string init_scheme_code_global;
-extern std::string init_scheme_variables_global;
+extern string init_scheme_code_global;
+extern string init_scheme_variables_global;
 
 /*
   todo: collect in Output_option struct?
 */
-extern std::string output_format_global;
+extern string output_format_global;
 
 /* misc */
-extern std::vector<std::string> failed_files;
+extern vector<string> failed_files;
 extern int exit_status_global;
 extern File_path global_path;
 extern const char *LILYPOND_DATADIR;
index bf01cd7568611ca312576bb4cd84e51df6c704b2..0786a4871d9678dca3894d4ade297405ca8c6493 100644 (file)
@@ -34,7 +34,7 @@ public:
 
   int delta_ticks_;
   Midi_item *midi_;
-  std::string to_string () const;
+  string to_string () const;
 };
 
 /**
@@ -43,15 +43,15 @@ public:
 class Midi_chunk
 {
 public:
-  void set (const std::string &header_string, const std::string &data_string, const std::string &footer_string);
-  virtual std::string to_string () const;
-  virtual std::string data_string () const;
+  void set (const string &header_string, const string &data_string, const string &footer_string);
+  virtual string to_string () const;
+  virtual string data_string () const;
   DECLARE_CLASSNAME (Midi_chunk);
   virtual ~Midi_chunk ();
 private:
-  std::string data_string_;
-  std::string footer_string_;
-  std::string header_string_;
+  string data_string_;
+  string footer_string_;
+  string header_string_;
 };
 
 class Midi_header : public Midi_chunk
@@ -69,13 +69,13 @@ public:
   int port_;
   DECLARE_CLASSNAME (Midi_track);
 
-  std::vector<Midi_event *> events_;
+  vector<Midi_event *> events_;
 
   Midi_track (int number, bool port);
   ~Midi_track ();
 
   void add (int, Midi_item *midi);
-  virtual std::string data_string () const;
+  virtual string data_string () const;
 };
 
 #endif /* MIDI_CHUNK_HH */
index 5d9e100ca816befe9cafb2b3a70421d10656eba6..b593ce152739e7bf82eb904818213905cc8b7a67 100644 (file)
@@ -23,7 +23,7 @@
 #include "audio-item.hh"
 #include "std-vector.hh"
 
-std::string int2midi_varint_string (int i);
+string int2midi_varint_string (int i);
 
 /**
    Any piece of midi information.
@@ -40,7 +40,7 @@ public:
 
   static Midi_item *get_midi (Audio_item *a);
 
-  virtual std::string to_string () const = 0;
+  virtual string to_string () const = 0;
 };
 
 class Midi_channel_item : public Midi_item
@@ -61,7 +61,7 @@ public:
   DECLARE_CLASSNAME (Midi_control_function_value_change);
   Midi_control_function_value_change (Audio_control_function_value_change *ai);
   virtual ~Midi_control_function_value_change ();
-  virtual std::string to_string () const;
+  virtual string to_string () const;
   Audio_control_function_value_change::Control control_;
   Real value_;
 };
@@ -71,7 +71,7 @@ class Midi_duration : public Midi_item
 public:
   Midi_duration (Real seconds_f);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
   Real seconds_;
 };
 
@@ -84,7 +84,7 @@ public:
   Midi_instrument (Audio_instrument *);
 
   DECLARE_CLASSNAME (Midi_instrument);
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_instrument *audio_;
 };
@@ -95,7 +95,7 @@ public:
   Midi_key (Audio_key *);
   DECLARE_CLASSNAME (Midi_key);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_key *audio_;
 };
@@ -106,7 +106,7 @@ public:
   Midi_time_signature (Audio_time_signature *);
   DECLARE_CLASSNAME (Midi_time_signature);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_time_signature *audio_;
   int clocks_per_1_;
@@ -120,7 +120,7 @@ public:
 
   int get_semitone_pitch () const;
   int get_fine_tuning () const;
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_note *audio_;
 
@@ -134,7 +134,7 @@ public:
   Midi_note_off (Midi_note *);
   DECLARE_CLASSNAME (Midi_note_off);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Midi_note *on_;
   Byte aftertouch_byte_;
@@ -152,7 +152,7 @@ public:
 
   Midi_text (Audio_text *);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_text *audio_;
 };
@@ -163,7 +163,7 @@ public:
   Midi_dynamic (Audio_dynamic *);
   DECLARE_CLASSNAME (Midi_dynamic);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_dynamic *audio_;
 };
@@ -174,7 +174,7 @@ public:
   Midi_piano_pedal (Audio_piano_pedal *);
   DECLARE_CLASSNAME (Midi_piano_pedal);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_piano_pedal *audio_;
 };
@@ -185,7 +185,7 @@ public:
   Midi_tempo (Audio_tempo *);
   DECLARE_CLASSNAME (Midi_tempo);
 
-  virtual std::string to_string () const;
+  virtual string to_string () const;
 
   Audio_tempo *audio_;
 };
index 544aa884ba159f0de6726cc7d3bfc92d67880ae1..a14ac80e204f24d7b82878ce6fb21736623d5619 100644 (file)
@@ -21,6 +21,7 @@
 #define MIDI_STREAM_HH
 
 #include <cstdio>
+using namespace std;
 
 #include <string.h>
 #include "std-string.hh"
 
 struct Midi_stream
 {
-  Midi_stream (const std::string &file_name_string);
+  Midi_stream (const string &file_name_string);
   ~Midi_stream ();
 
-  void write (const std::string&);
+  void write (const string&);
   void write (Midi_chunk const &);
   void open ();
 
   FILE *out_file_;
-  std::string file_name_string_;
+  string file_name_string_;
 };
 
 #endif // MIDI_STREAM_HH
index 3267a2d0471d4bde5dcdbaa30b04c22274db87ee..f23b7407e89aa8e59f05ff76fe3d307389e8e438 100644 (file)
@@ -56,11 +56,11 @@ private:
   bool percussion_;
   bool merge_unisons_;
   vsize index_;
-  std::vector<Audio_item *> items_;
+  vector<Audio_item *> items_;
   PQueue<Midi_note_event> stop_note_queue;
   int last_tick_;
 
-  std::vector<Midi_item *> midi_events_;
+  vector<Midi_item *> midi_events_;
 };
 
 #endif // MIDI_WALKER_HH
index 206e74e3eae5da6de3ad169041ea8a72128103ba..7226aceef8d7a5d31d3530c8a7c88bd78148a578 100644 (file)
@@ -21,6 +21,7 @@
 #define MISC_HH
 
 #include <cstdlib>
+using namespace std;
 
 #include "std-vector.hh"
 #include "interval.hh"
@@ -62,7 +63,7 @@ Real directed_round (Real f, Direction d);
 
 Real peak_around (Real epsilon, Real threshold, Real x);
 Real convex_amplifier (Real standard_x, Real increase_factor, Real x);
-std::string camel_case_to_lisp_identifier (const std::string &in);
+string camel_case_to_lisp_identifier (const string &in);
 
 #endif
 
index 1716502267b33796a8690208fb741d16201c8ff1..c63c532fbde743a0d1e208e4b0702e0f67030520 100644 (file)
 struct Modified_font_metric : public Font_metric
 {
 public:
-  Stencil text_stencil (Output_def *output_state, const std::string&, bool) const;
+  Stencil text_stencil (Output_def *output_state, const string&, bool) const;
   Real get_magnification () const;
 
   static SCM make_scaled_font_metric (Font_metric *fm, Real magnification);
   size_t count () const;
   Offset get_indexed_wxwy (size_t) const;
-  Offset attachment_point (const std::string&) const;
-  size_t name_to_index (std::string) const;
+  Offset attachment_point (const string&) const;
+  size_t name_to_index (string) const;
   size_t index_to_charcode (size_t) const;
   Font_metric *original_font () const;
 
@@ -43,7 +43,7 @@ protected:
 
   Modified_font_metric (Font_metric *fm, Real magnification);
   SCM sub_fonts () const;
-  std::string font_name () const;
+  string font_name () const;
   Real design_size () const;
   void derived_mark () const;
   Box get_indexed_char_dimensions (size_t) const;
index 9f825970af7f36b1cf36929e898752786f1d8821..d84a992b40e73eb6b649476ffb14481558f259d4 100644 (file)
@@ -59,7 +59,7 @@ public:
   /*
     Deliver a copy of THIS as a smobified SCM
   */
-  std::string to_string () const;
+  string to_string () const;
   static int compare (Moment const &, Moment const &);
   SCM as_scheme () const;
 };
index d5c69d43904030e7bc1508a289e4c59e5069abea..810d230aac279b447a0c7bd989a1093141567221 100644 (file)
@@ -114,7 +114,7 @@ bool is_child_context (Context *me, Context *child);
 
 #define IMPLEMENT_CTOR_CALLBACK(Class)                                  \
   LY_DEFINE_MEMBER_FUNCTION (Class, constructor, \
-                             mangle_cxx_identifier (std::string (#Class) + "::constructor").c_str(), \
+                             mangle_cxx_identifier (string (#Class) + "::constructor").c_str(), \
                              0, 0, 0,                                   \
                              (),                                        \
                              "")                                        \
index 62b29e831894bf244f2b383e02a3ddc813032298..ad2ed5345d3575f775e17bbb0585f764c4ce4594 100644 (file)
 class Note_collision_interface
 {
 public:
-  static SCM automatic_shift (Grob *, Drul_array<std::vector<Grob *> >);
+  static SCM automatic_shift (Grob *, Drul_array<vector<Grob *> >);
   static SCM forced_shift (Grob *);
 
-  static std::vector<int> note_head_positions (Grob *me);
-  static Drul_array<std::vector<Grob *> > get_clash_groups (Grob *me);
+  static vector<int> note_head_positions (Grob *me);
+  static Drul_array<vector<Grob *> > get_clash_groups (Grob *me);
   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM smob));
   static void add_column (Grob *me, Grob *ncol);
 };
index d57d3e41e97f679725441165f2a090b319545bf6..1e167d58b284b36835ee43e6f0408e380f4bb3af 100644 (file)
@@ -34,7 +34,7 @@ public:
   static Real stem_attachment_coordinate (Grob *, Axis a);
   static int get_balltype (Grob *);
 
-  static Offset get_stem_attachment (Font_metric *, const std::string&);
+  static Offset get_stem_attachment (Font_metric *, const string&);
 };
 #endif // NOTEHEAD_HH
 
index 49b257586c9e05c0bf780fa2cdabcbb677b8ce4f..f08d4fa71c5e53e338056aa929416ffb64a4b415 100644 (file)
@@ -48,22 +48,22 @@ public:
   SCM glyph_list () const;
   SCM get_glyph_outline (size_t signed_idx) const;
   Box get_glyph_outline_bbox (size_t signed_idx) const;
-  std::string get_otf_table (const std::string &tag) const;
-  static SCM make_otf (const std::string&);
-  std::string font_name () const;
+  string get_otf_table (const string &tag) const;
+  static SCM make_otf (const string&);
+  string font_name () const;
   ~Open_type_font ();
-  Offset attachment_point (const std::string&) const;
+  Offset attachment_point (const string&) const;
   size_t count () const;
   Box get_indexed_char_dimensions (size_t) const;
   Box get_unscaled_indexed_char_dimensions (size_t) const;
-  size_t name_to_index (std::string) const;
+  size_t name_to_index (string) const;
   size_t index_to_charcode (size_t) const;
   void derived_mark () const;
   SCM sub_fonts () const;
   Real design_size () const;
 };
 
-std::string get_otf_table (FT_Face face, const std::string &tag);
-FT_Face open_ft_face (const std::string&, FT_Long idx);
+string get_otf_table (FT_Face face, const string &tag);
+FT_Face open_ft_face (const string&, FT_Long idx);
 
 #endif /* OPEN_TYPE_FONT_HH */
index e41cf75846ae39b4327c0c0ad9826abbb13c3ebf..5de672e67addf202f1609017da8d0d838272bb81 100644 (file)
@@ -66,7 +66,7 @@ public:
   /*
     variables.
    */
-  SCM c_variable (const std::string &id) const;
+  SCM c_variable (const string &id) const;
   SCM lookup_variable (SCM sym) const;
   void set_variable (SCM sym, SCM val);
   void normalize ();
index cab51e001cd4a7ec188567339f2db9ebfc093cc9..9a38485c28d181c0b6781879079e03272444394e 100644 (file)
@@ -101,7 +101,7 @@ class Page_breaking
 public:
   typedef bool (*Break_predicate) (Grob *);
   typedef bool (*Prob_break_predicate) (Prob *);
-  typedef std::vector<vsize> Line_division;
+  typedef vector<vsize> Line_division;
 
   /*
     TODO: naming.
@@ -142,7 +142,7 @@ protected:
 
   vsize next_system (Break_position const &break_pos) const;
 
-  SCM make_pages (std::vector<vsize> lines_per_page, SCM lines);
+  SCM make_pages (vector<vsize> lines_per_page, SCM lines);
 
   vsize min_system_count (vsize start, vsize end);
   vsize max_system_count (vsize start, vsize end);
@@ -179,11 +179,11 @@ protected:
 
   vsize last_break_position () const;
 
-  std::vector<System_spec> system_specs_;
+  vector<System_spec> system_specs_;
 private:
-  std::vector<Break_position> breaks_;
-  std::vector<Break_position> chunks_;
-  std::vector<Constrained_breaking> line_breaking_;
+  vector<Break_position> breaks_;
+  vector<Break_position> chunks_;
+  vector<Constrained_breaking> line_breaking_;
   bool ragged_;
   bool ragged_last_;
   int systems_per_page_;
@@ -197,8 +197,8 @@ private:
   Real footnote_footer_padding_;
   int orphan_penalty_;
 
-  std::vector<Line_division> current_configurations_;
-  std::vector<Break_position> current_chunks_;
+  vector<Line_division> current_configurations_;
+  vector<Break_position> current_chunks_;
   vsize current_start_breakpoint_;
   vsize current_end_breakpoint_;
 
@@ -206,15 +206,15 @@ private:
   void compute_line_heights ();
   void clear_line_details_cache ();
   vsize cached_configuration_index_;
-  std::vector<Line_details> cached_line_details_;
-  std::vector<Line_details> uncompressed_line_details_;
+  vector<Line_details> cached_line_details_;
+  vector<Line_details> uncompressed_line_details_;
 
   Real paper_height_;
-  mutable std::vector<Real> page_height_cache_;
-  mutable std::vector<Real> last_page_height_cache_;
+  mutable vector<Real> page_height_cache_;
+  mutable vector<Real> last_page_height_cache_;
 
-  std::vector<Break_position> chunk_list (vsize start, vsize end);
-  Line_division system_count_bounds (std::vector<Break_position> const &chunks, bool min);
+  vector<Break_position> chunk_list (vsize start, vsize end);
+  Line_division system_count_bounds (vector<Break_position> const &chunks, bool min);
   void line_breaker_args (vsize i,
                           Break_position const &start,
                           Break_position const &end,
@@ -226,8 +226,8 @@ private:
                            Line_division const &max,
                            Line_division *cur);
 
-  std::vector<Line_details> line_details (vsize start, vsize end, Line_division const &div);
-  Page_spacing_result space_systems_on_1_page (std::vector<Line_details> const &lines, Real page_height, bool ragged);
+  vector<Line_details> line_details (vsize start, vsize end, Line_division const &div);
+  Page_spacing_result space_systems_on_1_page (vector<Line_details> const &lines, Real page_height, bool ragged);
   Page_spacing_result space_systems_on_2_pages (vsize configuration_index, vsize first_page_num);
   Page_spacing_result finalize_spacing_result (vsize configuration_index, Page_spacing_result);
   void create_system_list ();
index f2b5d6a961184588b368d7887412f55f240a9ba0..a98d2643542895b0ab125a0e4b229907fbdfafcd 100644 (file)
@@ -37,7 +37,7 @@ public:
   static bool read_spacing_spec (SCM spec, Real *dest, SCM sym);
   static bool is_spaceable (Grob *g);
   static SCM get_details (Grob *g);
-  static std::vector<Grob *> get_footnote_grobs (SCM lines);
+  static vector<Grob *> get_footnote_grobs (SCM lines);
   static vsize get_footnote_count (SCM lines);
   static SCM get_footnotes_from_lines (SCM lines);
   static void add_footnotes_to_lines (SCM lines, int counter, Paper_book *pb);
@@ -52,24 +52,24 @@ protected:
 
   void solve_rod_spring_problem (bool ragged, Real fixed_force);
   SCM find_system_offsets ();
-  void distribute_loose_lines (std::vector<Grob *> const &, std::vector<Real> const &, Real, Real);
+  void distribute_loose_lines (vector<Grob *> const &, vector<Real> const &, Real, Real);
 
-  static void build_system_skyline (std::vector<Grob *> const &, std::vector<Real> const &, Skyline *up, Skyline *down);
-  static std::vector<Grob *> filter_dead_elements (std::vector<Grob *> const &);
+  static void build_system_skyline (vector<Grob *> const &, vector<Real> const &, Skyline *up, Skyline *down);
+  static vector<Grob *> filter_dead_elements (vector<Grob *> const &);
 
   // This is a union (in spirit).
   // Either staves must be empty or prob must be null.
   typedef struct Element
   {
     Prob *prob;
-    std::vector<Grob *> staves;
-    std::vector<Real> min_offsets;
+    vector<Grob *> staves;
+    vector<Real> min_offsets;
     // Store the appropriate '*-*-spacing 'padding, and skyline-distance,
     //  considering indentation, from the previous system.
     Real min_distance;
     Real padding;
 
-    Element (std::vector<Grob *> const &a, std::vector<Real> const &o, Real m, Real p)
+    Element (vector<Grob *> const &a, vector<Real> const &o, Real m, Real p)
     {
       staves = a;
       min_offsets = o;
@@ -93,9 +93,9 @@ protected:
   static void alter_spring_from_spacing_spec (SCM spec, Spring *spring);
   static void mark_as_spaceable (Grob *);
 
-  std::vector<Spring> springs_;
-  std::vector<Element> elements_;
-  std::vector<Real> solution_;
+  vector<Spring> springs_;
+  vector<Element> elements_;
+  vector<Real> solution_;
   Real force_;
   Skyline bottom_skyline_;
   Real bottom_loose_baseline_;
index 31c157141fab0303c2079d7e4cba7c18d03c1867..ccba917b077a815801a1f1d9097d498aa8203814 100644 (file)
@@ -36,8 +36,8 @@ typedef enum
 
 struct Page_spacing_result
 {
-  std::vector<vsize> systems_per_page_;
-  std::vector<Real> force_;
+  vector<vsize> systems_per_page_;
+  vector<Real> force_;
   Real penalty_;
   Real demerits_;
   int system_count_status_;
index 60b95530ba7745d39fbee67a8c632988698b6801..4775baf67439da958720aec320e885aa1733f4a4 100644 (file)
@@ -50,7 +50,7 @@ const Real TERRIBLE_SPACING_PENALTY = 1e8;
 class Page_spacer
 {
 public:
-  Page_spacer (std::vector<Line_details> const &lines, vsize first_page_num, Page_breaking const *);
+  Page_spacer (vector<Line_details> const &lines, vsize first_page_num, Page_breaking const *);
   Page_spacing_result solve (vsize page_count);
   Page_spacing_result solve ();
 
@@ -77,14 +77,14 @@ private:
 
   Page_breaking const *breaker_;
   vsize first_page_num_;
-  std::vector<Line_details> lines_;
+  vector<Line_details> lines_;
 
   // If a page-count is requested, we use state_, which
   // is indexed by page*system, for our dynamic programming
   // intermediate storage.  Otherwise, we use simple_state_,
   // which is indexed only by system.
   Matrix<Page_spacing_node> state_;
-  std::vector<Page_spacing_node> simple_state_;
+  vector<Page_spacing_node> simple_state_;
   vsize max_page_count_;
 
   bool ragged_;
index 061ef8a0bf3f4a42d63c85c0213b656e27711bd6..93fdaceadaf8cdd9f66939f0b40fc5690dcf1f95 100644 (file)
@@ -47,7 +47,7 @@ protected:
     vsize break_pos_; /* index into breaks_ */
 
     Line_division div_;
-    std::vector<vsize> system_count_; /* systems per page */
+    vector<vsize> system_count_; /* systems per page */
 
     Break_node ()
     {
@@ -59,7 +59,7 @@ protected:
     }
   };
 
-  std::vector<Break_node> state_;
+  vector<Break_node> state_;
 
   vsize total_page_count (Break_node const &b);
   Break_node put_systems_on_pages (vsize start,
@@ -67,8 +67,8 @@ protected:
                                    vsize configuration,
                                    vsize page_number);
 
-  SCM make_lines (std::vector<Break_node> *breaks);
-  SCM make_pages (std::vector<Break_node> const &breaks, SCM systems);
+  SCM make_lines (vector<Break_node> *breaks);
+  SCM make_pages (vector<Break_node> const &breaks, SCM systems);
 
   void calc_subproblem (vsize i);
   void print_break_node (Break_node const &b);
index 58f5a884f59b76e4d62a99cb6d18af5c0cfc8a5b..ff5e6302f061f505347001cce6a34aa3fbfef585 100644 (file)
@@ -46,11 +46,11 @@ public:
               Real);
   ~Pango_font ();
 
-  std::string description_string () const;
+  string description_string () const;
   SCM font_file_name () const;
-  void register_font_file (const std::string &filename, const std::string &ps_name, int face_index);
+  void register_font_file (const string &filename, const string &ps_name, int face_index);
 
-  size_t name_to_index (std::string) const;
+  size_t name_to_index (string) const;
   SCM get_glyph_outline (size_t signed_idx) const;
   Box get_glyph_outline_bbox (size_t signed_idx) const;
   Box get_unscaled_indexed_char_dimensions (size_t) const;
@@ -59,7 +59,7 @@ public:
   Stencil pango_item_string_stencil (PangoGlyphItem const *) const;
 
   virtual Stencil text_stencil (Output_def *output_state,
-                                const std::string &text, bool music) const;
+                                const string &text, bool music) const;
   virtual void derived_mark () const;
 };
 
index 9274988e05072f76ecd8c55c752f62c558d94f56..1279ff17c990c527db9eaba102eba4aa859357cf 100644 (file)
@@ -50,12 +50,12 @@ protected:
   DECLARE_ACKNOWLEDGER (staff_spacing);
 
   System *system_;
-  std::vector<Stream_event *> break_events_;
-  std::vector<Stream_event *> label_events_;
+  vector<Stream_event *> break_events_;
+  vector<Stream_event *> label_events_;
   int breaks_;                  // used for stat printing
   Paper_column *command_column_;
   Paper_column *musical_column_;
-  std::vector<Item *> items_;
+  vector<Item *> items_;
   bool first_;
   bool made_columns_;
   Moment last_moment_;
index 33a5f0ec406cc8c5e22ba00cf2cfd7925bdf6ead..cd1a5e2c92fb4ffb34a0581f85398750c1276d28 100644 (file)
@@ -37,11 +37,11 @@ public:
   virtual ~Paper_outputter ();
 private:
   SCM output_module_;
-  std::string file_name_;
+  string file_name_;
   SCM file_;
 
 public:
-  Paper_outputter (SCM port, const std::string &format);
+  Paper_outputter (SCM port, const string &format);
 
   void close ();
   SCM dump_string (SCM);
index 3a73bad21081b222060c1aa68b017c4137db610d..3d4d5840e1f075481c8d20b060353c7bfca9f633 100644 (file)
@@ -31,9 +31,9 @@ class Paper_score : public Music_output
   SCM systems_;
   SCM paper_systems_;
 
-  mutable std::vector<Grob *> cols_;
-  mutable std::vector<vsize> break_indices_;
-  mutable std::vector<vsize> break_ranks_;
+  mutable vector<Grob *> cols_;
+  mutable vector<vsize> break_indices_;
+  mutable vector<vsize> break_ranks_;
 public:
   Paper_score (Output_def *);
 
@@ -43,10 +43,10 @@ public:
   System *root_system () const;
 
   void typeset_system (System *);
-  std::vector<Column_x_positions> calc_breaking ();
-  std::vector<vsize> get_break_indices () const;
-  std::vector<vsize> get_break_ranks () const;
-  std::vector<Grob *> get_columns () const;
+  vector<Column_x_positions> calc_breaking ();
+  vector<vsize> get_break_indices () const;
+  vector<vsize> get_break_ranks () const;
+  vector<Grob *> get_columns () const;
   SCM get_paper_systems ();
 protected:
   void find_break_indices () const;
index d70ff0338570d433c89c36360f7f744a50a3ab99..f9c53ff2e85e7baa70007deb34e59c18d5697d28 100644 (file)
@@ -39,14 +39,14 @@ public:
   void add_element (Audio_element *p);
   virtual void process ();
   void remap_grace_durations ();
-  void output (Midi_stream &midi_stream, const std::string &performance_name) const;
+  void output (Midi_stream &midi_stream, const string &performance_name) const;
   void output_header_track (Midi_stream &midi_stream) const;
 
   void print () const;
-  void write_output (std::string filename, const std::string &performance_name) const;
+  void write_output (string filename, const string &performance_name) const;
 
-  std::vector<Audio_staff *> audio_staffs_;
-  std::vector<Audio_element *> audio_elements_;
+  vector<Audio_staff *> audio_staffs_;
+  vector<Audio_element *> audio_elements_;
   Output_def *midi_;
   bool ports_;
   SCM header_;
index bc6549107989ab0d4896f86db8de401860052baf..350af84de276edb557ba1a0c9317412c1f1b4f53 100644 (file)
@@ -35,7 +35,7 @@ public:
   virtual void announce_element (Audio_element_info);
 
 protected:
-  std::vector<Audio_element_info> announce_infos_;
+  vector<Audio_element_info> announce_infos_;
   virtual void acknowledge_audio_elements ();
 };
 
index 8ba72b3701cd22f897595fdadd9d43df143f4526..daade82e81994b5e06ca2d2103fbe58cc4bd1d04 100644 (file)
@@ -72,7 +72,7 @@ public:
   int rounded_semitone_pitch () const;
   int rounded_quartertone_pitch () const;
   Pitch negated () const;
-  std::string to_string () const;
+  string to_string () const;
 
   DECLARE_SCHEME_CALLBACK (less_p, (SCM a, SCM b));
 };
index c45725018104d0ccebc217381a7744aef23f4eed..26ff640610a187ada8b3bd1125e4466ac53b09fd 100644 (file)
@@ -36,8 +36,8 @@ public:
   static Grob *find_grob (Grob *, SCM, bool (*pred) (Grob *));
 };
 
-std::vector<Grob *> const &internal_extract_grob_array (Grob const *elt, SCM symbol);
-std::vector<Item *> internal_extract_item_array (Grob const *elt, SCM symbol);
+vector<Grob *> const &internal_extract_grob_array (Grob const *elt, SCM symbol);
+vector<Item *> internal_extract_item_array (Grob const *elt, SCM symbol);
 
 #define extract_grob_array(x, prop) internal_extract_grob_array (x, ly_symbol2scm (prop))
 #define extract_item_array(x, prop) internal_extract_item_array (x, ly_symbol2scm (prop))
@@ -47,9 +47,9 @@ std::vector<Item *> internal_extract_item_array (Grob const *elt, SCM symbol);
   representation of grob sets again.
 */
 #define extract_grob_set(grob, prop, set)                               \
-  std::vector<Grob*> const &set (internal_extract_grob_array (grob, ly_symbol2scm (prop)))
+  vector<Grob*> const &set (internal_extract_grob_array (grob, ly_symbol2scm (prop)))
 #define extract_item_set(grob, prop, set)                               \
-  std::vector<Item*> set (internal_extract_item_array (grob, ly_symbol2scm (prop)))
+  vector<Item*> set (internal_extract_item_array (grob, ly_symbol2scm (prop)))
 
 #endif /* POINTER_GROUP_INTERFACE_HH */
 
index bcdb1250986e1572b4fa09493b68a7b773f88687..7a06e4773705cc301e4add6dc0b93dca1fc5104d 100644 (file)
@@ -55,7 +55,7 @@ protected:
 public:
   Prob (SCM, SCM);
   Prob (Prob const &);
-  virtual std::string name () const;
+  virtual string name () const;
   SCM type () const { return type_; }
   SCM get_property_alist (bool _mutable) const;
   SCM internal_get_property (SCM sym) const;
index c5e8e1ca69e0184fb7451a068c8950781a9c25df..acf1a93b5c27d3a56c7379c6a98d429f955c2c77 100644 (file)
@@ -27,6 +27,6 @@ SCM ly_get_option (SCM);
 SCM ly_set_option (SCM, SCM);
 
 bool get_program_option (const char *);
-std::string get_output_backend_name ();
+string get_output_backend_name ();
 
 #endif /* SCM_OPTION_HH */
index 6f93d104911c58c3f6325fda2d6d75409f7569bb..c531d97cfb98d496cda307cd1f11a68d7d2b988d 100644 (file)
 
 #include "std-string.hh"
 
-void read_relocation_dir (const std::string &dirname);
-void read_relocation_file (const std::string &filename);
-std::string expand_environment_variables (const std::string &orig);
+void read_relocation_dir (const string &dirname);
+void read_relocation_file (const string &filename);
+string expand_environment_variables (const string &orig);
 
-int sane_putenv (char const *key, const std::string &value, bool overwrite);
+int sane_putenv (char const *key, const string &value, bool overwrite);
 void setup_paths (char const *argv0);
 extern bool relocate_binary;
 
index 9235f746ce0a9275a9ff126e20504f064981f3fe..644aa1450c7bf904d203f444424d82f3eef7b24f 100644 (file)
@@ -29,7 +29,7 @@ class Rest
 public:
   DECLARE_SCHEME_CALLBACK (y_offset_callback, (SCM));
   DECLARE_SCHEME_CALLBACK (calc_cross_staff, (SCM));
-  static std::string glyph_name (Grob *, int durlog, const std::string &style, bool, Real);
+  static string glyph_name (Grob *, int durlog, const string &style, bool, Real);
   static Real staff_position_internal (Grob *, int /* duration_log */,
                                        int /* dir */);
   static SCM brew_internal_stencil (Grob *, bool);
index 11e9837c2b598ef6f6bf8d34a70b90ce89ff3cc1..19cd175c797fd7d9e63a5ac79dbb8c73696c1fa0 100644 (file)
@@ -27,7 +27,7 @@
 struct Scale : public Smob<Scale>
 {
   virtual ~Scale ();
-  Scale (std::vector<Rational> const &);
+  Scale (vector<Rational> const &);
   Scale (Scale const &);
 
   Rational tones_at_step (int step, int octave) const;
@@ -37,7 +37,7 @@ struct Scale : public Smob<Scale>
 
 
 private:
-  std::vector<Rational> step_tones_;
+  vector<Rational> step_tones_;
 };
 
 extern Scale *default_global_scale;
index 86bbad2500e16a7c8c1fc9224eea9efe5d9b6c24..9b7927ddab680a6be67089e4d0a85f6f193e35e3 100644 (file)
@@ -26,7 +26,7 @@ class Score_engraver : public Engraver_group
 {
   System *system_;
 
-  std::vector<Grob *> elems_;
+  vector<Grob *> elems_;
   Paper_score *pscore_;
 
   void typeset_all ();
index d1659a06227382b9d356861652d5ce766d3968d8..b3ece8960a813245139822c999120a85d668899a 100644 (file)
@@ -40,7 +40,7 @@ private:
 public:
   Input *origin () const;
 
-  std::vector<Output_def *> defs_;
+  vector<Output_def *> defs_;
   bool error_found_;
 
   Score ();
index a5942a9698336814729deb98ce15406de816a854..fe4816eae16d3bc797b490bad6969db5096b1315 100644 (file)
@@ -30,7 +30,7 @@ public:
   static void add_side_positioned (Grob *, Grob *);
   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
   DECLARE_SCHEME_CALLBACK (row_before_line_breaking, (SCM));
-  static void order_grobs (std::vector<Grob *> grobs);
+  static void order_grobs (vector<Grob *> grobs);
 
 };
 
index bb365b2ff64d50936db3219b37e3fe6513b72c21..81ea523fe29b649807323bbdcb99eb3ea1c097f2 100644 (file)
@@ -30,7 +30,7 @@ struct Separation_item
   DECLARE_SCHEME_CALLBACK (calc_skylines, (SCM));
   DECLARE_SCHEME_CALLBACK (print, (SCM));
 
-  static std::vector<Box> boxes (Grob *me, Grob *left);
+  static vector<Box> boxes (Grob *me, Grob *left);
   static Skyline conditional_skyline (Grob *, Grob *);
   static Grob *extremal_break_aligned_grob (Grob *, Direction, Interval *);
   static Real set_distance (Item *left, Item *right, Real padding);
index ca709a6133e0e54f19ab62cd8f7ab837f4bae257..d036dd191d3b3e5f8ff124a6cda6c2063bd7d34d 100644 (file)
@@ -36,7 +36,7 @@ public:
   Real range_ideal_len (int l, int r) const;
   Real range_stiffness (int l, int r, bool stretch) const;
   Real configuration_length (Real) const;
-  std::vector<Real> spring_positions () const;
+  vector<Real> spring_positions () const;
 
   void set_force (Real force);
   Real force () const;
@@ -49,7 +49,7 @@ private:
   Real compress_line ();
   Real rod_force (int l, int r, Real dist);
 
-  std::vector<Spring> springs_;
+  vector<Spring> springs_;
   Real line_len_;
   Real force_;
   bool ragged_;
@@ -57,12 +57,12 @@ private:
 };
 
 /* returns a vector of dimensions breaks.size () * breaks.size () */
-std::vector<Real> get_line_forces (std::vector<Grob *> const &columns,
+vector<Real> get_line_forces (vector<Grob *> const &columns,
                               Real line_len,
                               Real indent,
                               bool ragged);
 
-Column_x_positions get_line_configuration (std::vector<Grob *> const &columns,
+Column_x_positions get_line_configuration (vector<Grob *> const &columns,
                                            Real line_len,
                                            Real indent,
                                            bool ragged);
index a174204cd2a004161c420dcd13865d7d552bd3e6..6d7cea0ac248d917091bea19bb05cba6d0abf72c 100644 (file)
@@ -31,9 +31,9 @@ private:
 
 public:
   Skyline_pair ();
-  Skyline_pair (std::vector<Box> const &boxes, Axis a);
-  Skyline_pair (std::vector<Drul_array<Offset> > const &buildings, Axis a);
-  Skyline_pair (std::vector<Skyline_pair> const &skypairs);
+  Skyline_pair (vector<Box> const &boxes, Axis a);
+  Skyline_pair (vector<Drul_array<Offset> > const &buildings, Axis a);
+  Skyline_pair (vector<Skyline_pair> const &skypairs);
   Skyline_pair (Box const &, Axis a);
 
   Real left () const;
index c8a8a1423463898796a2aef16582400ea4117e2c..21693420c88419fd0fc8834eb3e7e749d4fafb6d 100644 (file)
@@ -53,12 +53,12 @@ class Skyline : public Simple_smob<Skyline>
 public:
   static const char type_p_name_[];
 private:
-  std::list<Building> buildings_;
+  list<Building> buildings_;
   Direction sky_;
 
-  void internal_merge_skyline (std::list<Building> *, std::list<Building> *,
-                               std::list<Building> *result) const;
-  std::list<Building> internal_build_skyline (std::list<Building> *) const;
+  void internal_merge_skyline (list<Building> *, list<Building> *,
+                               list<Building> *result) const;
+  list<Building> internal_build_skyline (list<Building> *) const;
   Real internal_distance (Skyline const &, Real horizon_padding, Real *touch_point) const;
   Real internal_distance (Skyline const &, Real *touch_point) const;
   void normalize ();
@@ -67,12 +67,12 @@ private:
 public:
   Skyline ();
   Skyline (Direction sky);
-  Skyline (std::vector<Box> const &bldgs, Axis a, Direction sky);
-  Skyline (std::vector<Drul_array<Offset> > const &bldgs, Axis a, Direction sky);
-  Skyline (std::vector<Skyline_pair> const &skypairs, Direction sky);
+  Skyline (vector<Box> const &bldgs, Axis a, Direction sky);
+  Skyline (vector<Drul_array<Offset> > const &bldgs, Axis a, Direction sky);
+  Skyline (vector<Skyline_pair> const &skypairs, Direction sky);
   Skyline (Box const &b, Axis a, Direction sky);
 
-  std::vector<Offset> to_points (Axis) const;
+  vector<Offset> to_points (Axis) const;
   void merge (Skyline const &);
   void insert (Box const &, Axis);
   void print () const;
index c0ae07fd579ba5452bc962ad855e2c1a16331793..be30352676bd072e8690369134340df854def5d2 100644 (file)
@@ -27,7 +27,7 @@
 class Slur_configuration
 {
   Real score_;
-  std::string score_card_;
+  string score_card_;
 
 public:
   Drul_array<Offset> attachment_;
@@ -50,11 +50,11 @@ public:
   Slur_configuration ();
 
   Real score () const { return score_; }
-  std::string card () const { return score_card_; }
-  void add_score (Real, const std::string&);
+  string card () const { return score_card_; }
+  void add_score (Real, const string&);
 
   void generate_curve (Slur_score_state const &state, Real r0, Real h_inf,
-                       std::vector<Offset> const &);
+                       vector<Offset> const &);
   void run_next_scorer (Slur_score_state const &);
   bool done () const;
   static Slur_configuration *new_config (Drul_array<Offset> const &offs, int idx);
index b3e7c879f5524a5436fb7d7670cab0136392c999..5bae1647f1664930ba4c4283695346753e85449b 100644 (file)
@@ -33,11 +33,11 @@ protected:
       event_name_ (event_name) {}
 
   // protected so that subclasses can see them
-  std::vector<Stream_event *> start_events_;
-  std::vector<Stream_event *> stop_events_;
-  std::vector<Grob *> slurs_;
-  std::vector<Grob *> end_slurs_;
-  std::vector<Grob_info> objects_to_acknowledge_;
+  vector<Stream_event *> start_events_;
+  vector<Stream_event *> stop_events_;
+  vector<Grob *> slurs_;
+  vector<Grob *> end_slurs_;
+  vector<Grob_info> objects_to_acknowledge_;
   const char* double_property_name_;
   const char* grob_name_;
   const char* object_name_;
@@ -57,8 +57,8 @@ protected:
   void stop_translation_timestep ();
   void process_music ();
 
-  bool can_create_slur (const std::string&, vsize, vsize *, Stream_event *);
-  void create_slur (const std::string &spanner_id, Stream_event *ev_cause, Grob *g_cause, Direction dir, bool left_broken);
+  bool can_create_slur (const string&, vsize, vsize *, Stream_event *);
+  void create_slur (const string &spanner_id, Stream_event *ev_cause, Grob *g_cause, Direction dir, bool left_broken);
   bool try_to_end (Stream_event *ev);
 
   virtual void set_melisma (bool);
index d516993d553a42517fb887b47dde8691d5cbfd39..1ae187477b28c9979f9377f325a4c77555cc9764 100644 (file)
@@ -90,15 +90,15 @@ struct Slur_score_state
   bool has_same_beam_;
 
   Real musical_dy_;
-  std::vector<Grob *> columns_;
-  std::vector<Encompass_info> encompass_infos_;
-  std::vector<Extra_collision_info> extra_encompass_infos_;
+  vector<Grob *> columns_;
+  vector<Encompass_info> encompass_infos_;
+  vector<Extra_collision_info> extra_encompass_infos_;
 
   Direction dir_;
   Slur_score_parameters parameters_;
   Drul_array<Bound_info> extremes_;
   Drul_array<Offset> base_attachments_;
-  std::vector<Slur_configuration *> configurations_;
+  vector<Slur_configuration *> configurations_;
   Real staff_space_;
   Real line_thickness_;
   Real thickness_;
@@ -111,14 +111,14 @@ struct Slur_score_state
   void fill (Grob *);
   Direction slur_direction () const;
 
-  std::vector<Offset> generate_avoid_offsets () const;
+  vector<Offset> generate_avoid_offsets () const;
   Drul_array<Bound_info> get_bound_info () const;
   void generate_curves () const;
-  std::vector<Slur_configuration *> enumerate_attachments (Drul_array<Real> end_ys) const;
+  vector<Slur_configuration *> enumerate_attachments (Drul_array<Real> end_ys) const;
   Drul_array<Offset> get_base_attachments () const;
   Drul_array<Real> get_y_attachment_range () const;
   Encompass_info get_encompass_info (Grob *col) const;
-  std::vector<Extra_collision_info> get_extra_encompass_infos () const;
+  vector<Extra_collision_info> get_extra_encompass_infos () const;
   Real move_away_from_staffline (Real y, Grob *on_staff) const;
 
   Interval breakable_bound_extent (Direction) const;
index 7656ff26e1bafd4879ec52e01fe0e33201c21d73..ae85ac24d3c769253e98390535b880eb1d67e27c 100644 (file)
@@ -30,7 +30,7 @@ public:
   static void add_column (Grob *me, Grob *col);
   static void add_extra_encompass (Grob *me, Grob *col);
   static void replace_breakable_encompass_objects (Grob *me);
-  static void auxiliary_acknowledge_extra_object (Grob_info const &, std::vector<Grob *> &, std::vector<Grob *> &);
+  static void auxiliary_acknowledge_extra_object (Grob_info const &, vector<Grob *> &, vector<Grob *> &);
   DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (calc_control_points, (SCM));
   DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
index 14ee09101c0fce4535d23c9c8c01f5524744bf64..9ccaa61345565a02a4a50d5ac6d402389993b934 100644 (file)
     debugging purposes.  If the class does not define this function,
     the output will be #<Classname> when printing.
 
-  - a static const type_p_name_[] std::string set to something like
+  - a static const type_p_name_[] string set to something like
     "ly:grob?".  When provided, an accordingly named function for
     checking for the given smob type will be available in Scheme.
 
@@ -150,7 +150,7 @@ class Smob_base
   static scm_t_bits smob_tag_;
   static Scm_init scm_init_;
   static void init (void);
-  static std::string smob_name_;
+  static string smob_name_;
 protected:
   static Super *unchecked_unsmob (SCM s)
   {
@@ -186,9 +186,9 @@ private:
   static void smob_proc_init (scm_t_bits) { };
 
   // type_p_name_ can be overriden in the Super class with a static
-  // const char [] std::string.  This requires both a declaration in the
+  // const char [] string.  This requires both a declaration in the
   // class as well as a single instantiation outside.  Using a
-  // template specialization for supplying a different std::string name
+  // template specialization for supplying a different string name
   // right in Smob_base<Super> itself seems tempting, but the C++
   // rules would then require a specialization declaration at the
   // class definition site as well as a specialization instantiation
@@ -330,7 +330,7 @@ public:
 extern bool parsed_objects_should_be_dead;
 class parsed_dead
 {
-  static std::vector<parsed_dead *> elements;
+  static vector<parsed_dead *> elements;
   SCM data;
   SCM readout_one ()
   {
index dd815e59db2fea6cf6582f6895db6a25049b2f3c..b8dfc1f67fdb6027b897fa78b2dbb19964eb3312 100644 (file)
@@ -111,7 +111,7 @@ template <class Super>
 Scm_init Smob_base<Super>::scm_init_ (init);
 
 template <class Super>
-std::string Smob_base<Super>::smob_name_;
+string Smob_base<Super>::smob_name_;
 
 template <class Super>
 void Smob_base<Super>::init ()
@@ -142,7 +142,7 @@ void Smob_base<Super>::init ()
     {
       SCM subr = scm_c_define_gsubr (Super::type_p_name_, 1, 0, 0,
                                      (scm_t_subr) smob_p);
-      std::string fundoc = std::string("Is @var{x} a @code{") + smob_name_
+      string fundoc = string("Is @var{x} a @code{") + smob_name_
         + "} object?";
       ly_add_function_documentation (subr, Super::type_p_name_, "(SCM x)",
                                      fundoc);
index 46a5947cee722585cb98b7b207c72228ece2c2fb..6686389289e3cc04909d7aff588a38a719115cc7 100644 (file)
@@ -25,6 +25,7 @@
 #include "smobs.hh"
 
 #include <iostream>
+using namespace std;
 
 /**
    class for reading and mapping a file.
@@ -42,9 +43,9 @@ public:
   static const char type_p_name_[];
   virtual ~Source_file ();
 private:
-  std::vector<char const *> newline_locations_;
-  std::istream *istream_;
-  std::vector<char> characters_;
+  vector<char const *> newline_locations_;
+  istream *istream_;
+  vector<char> characters_;
   SCM str_port_;
 
   void load_stdin ();
@@ -52,30 +53,30 @@ private:
   void init ();
 
 public:
-  Source_file (const std::string &fn);
-  Source_file (const std::string&, const std::string&);
+  Source_file (const string &fn);
+  Source_file (const string&, const string&);
 
   char const *c_str () const;
-  virtual std::string quote_input (char const *pos_str0) const;
-  std::istream *get_istream ();
+  virtual string quote_input (char const *pos_str0) const;
+  istream *get_istream ();
   bool contains (char const *pos_str0) const;
   int length () const;
   virtual int get_line (char const *pos_str0) const;
   void set_line (char const *pos_str0, int i);
-  std::string name_string () const;
-  std::string file_line_column_string (char const *str0) const;
+  string name_string () const;
+  string file_line_column_string (char const *str0) const;
 
   Slice line_slice (char const *pos_str0) const;
-  std::string line_string (char const *pos_str0) const;
+  string line_string (char const *pos_str0) const;
   void get_counts (char const *pos_str0, int *, int *, int *, int *) const;
 
   SCM get_port () const;
-  std::string name_;
+  string name_;
 
 protected:
   int line_offset_;
 };
 
-std::vector<char> gulp_file (const std::string &fn, int desired);
+vector<char> gulp_file (const string &fn, int desired);
 
 #endif /* SOURCE_FILE_HH */
index a4efd7886eaeba46979bf4875939cb7bd167e5f6..2db87cee973e26d0c3d2cecc253a3f5e990a593d 100644 (file)
 class Sources
 {
   Sources (Sources const &);  // Do not define!  Not copyable!
-  std::vector<Source_file *> sourcefiles_;
+  vector<Source_file *> sourcefiles_;
 
 public:
   Sources ();
   ~Sources ();
 
-  Source_file *get_file (std::string file_name, std::string const &currentpath);
+  Source_file *get_file (string file_name, string const &currentpath);
   void add (Source_file *sourcefile);
   void set_path (File_path *);
 
index 03fb72bc726932c901d2b689513be87c52826c4e..ddfe2efb1c43b48aed07249933cd37adfa3b922f 100644 (file)
@@ -25,8 +25,8 @@
 struct Spacing_interface
 {
   static Real minimum_distance (Grob *me, Grob *right_col);
-  static std::vector<Item *> right_note_columns (Grob *me);
-  static std::vector<Item *> left_note_columns (Grob *me);
+  static vector<Item *> right_note_columns (Grob *me);
+  static vector<Item *> left_note_columns (Grob *me);
   static Item *right_column (Grob *me);
   static Item *left_column (Grob *me);
   static Drul_array<Skyline> skylines (Grob *me, Grob *right_col);
index d24b6008ec60f06995dd0183558fdc56268cd2e1..fcfba904175f8a4a830306f557dd587f6bb8c4e8 100644 (file)
@@ -35,16 +35,16 @@ private:
                                      Paper_column *nextr,
                                      Spacing_options const *options);
   static Real default_bar_spacing (Grob *, Grob *, Grob *, Moment);
-  static Rational effective_shortest_duration (Grob *me, std::vector<Grob *> const &all);
+  static Rational effective_shortest_duration (Grob *me, vector<Grob *> const &all);
   static void breakable_column_spacing (Grob *, Item *l, Item *r, Spacing_options const *);
-  static void prune_loose_columns (Grob *, std::vector<Grob *> *cols, Spacing_options *);
-  static void set_explicit_neighbor_columns (std::vector<Grob *> const &cols);
-  static void set_implicit_neighbor_columns (std::vector<Grob *> const &cols);
-  static void generate_springs (Grob *me, std::vector<Grob *> const &cols, Spacing_options const *);
+  static void prune_loose_columns (Grob *, vector<Grob *> *cols, Spacing_options *);
+  static void set_explicit_neighbor_columns (vector<Grob *> const &cols);
+  static void set_implicit_neighbor_columns (vector<Grob *> const &cols);
+  static void generate_springs (Grob *me, vector<Grob *> const &cols, Spacing_options const *);
   static void musical_column_spacing (Grob *, Item *, Item *, Spacing_options const *);
   static bool fills_measure (Grob *, Item *, Item *);
 public:
-  static std::vector<Grob *> get_columns (Grob *me);
+  static vector<Grob *> get_columns (Grob *me);
   static Spring note_spacing (Grob *, Grob *, Grob *, Spacing_options const *);
   static Spring standard_breakable_column_spacing (Grob *me, Item *l, Item *r, Spacing_options const *);
 
index 72b295232dbaf19e97fb36e09749dd968574c2b7..79032dfb305c2d52dc2eef5f3d057e52565240c7 100644 (file)
@@ -52,7 +52,7 @@ public:
   DECLARE_SCHEME_CALLBACK (bounds_width, (SCM));
   DECLARE_SCHEME_CALLBACK (kill_zero_spanned_time, (SCM));
 
-  std::vector<Spanner *> broken_intos_;
+  vector<Spanner *> broken_intos_;
 
   vsize get_break_index () const;
   Spanner *broken_neighbor (Direction d) const;
index 9c6c41827923338f1de94eee4664940bf6a7ad1b..fd01ca048cf7bc0ce53506c8b058dae13b244702 100644 (file)
@@ -65,6 +65,6 @@ public:
   bool operator > (Spring const &) const;
 };
 
-Spring merge_springs (std::vector<Spring> const &springs);
+Spring merge_springs (vector<Spring> const &springs);
 
 #endif /* SPRING_HH */
index c86fb4ae31eae8ba10aef6799ebde4e3e41c2ebd..9454ebe7f445a53c72f7284c1e7bfb5a6cd9280e 100644 (file)
@@ -33,8 +33,8 @@ public:
   static Real get_line_thickness (Grob *);
   static Real get_ledger_line_thickness (Grob *);
 
-  static std::vector<Real> line_positions (Grob *);
-  static std::vector<Real> ledger_positions (Grob *me, int pos);
+  static vector<Real> line_positions (Grob *);
+  static vector<Real> ledger_positions (Grob *me, int pos);
   static int line_count (Grob *);
   static bool on_line (Grob *me, int pos, bool allow_ledger = true);
   static Interval line_span (Grob *);
index ab325d427a9ad8dc187a2770d9fa4755c99b072c..7c4612552a13d6c3ea34545b2ff35ef69fae1890 100644 (file)
@@ -28,7 +28,7 @@
 class Stem
 {
 public:
-  static std::vector<int> note_head_positions (Grob *, bool filter = false);
+  static vector<int> note_head_positions (Grob *, bool filter = false);
   static int duration_log (Grob *);
   static void set_beaming (Grob *, int, Direction d);
   static int get_beaming (Grob *, Direction d);
index 543aafcc9234b7ca085557a7d3c8700917c494f8..6ccb9252bb18a224f5a38ff36b53bda6c30cd94b 100644 (file)
@@ -20,6 +20,7 @@
 #define STENCIL_HH
 
 #include <cstdlib>              // size_t
+using namespace std;
 
 #include "lily-proto.hh"
 #include "box.hh"
index 387cbfd71ef0b69bfff15f1da4f781d6afc4d27a..4e402ffeca5c40ead781a964ce5d8f2dd34bad18 100644 (file)
@@ -44,10 +44,10 @@ public:
   Grob *get_pure_bound (Direction dir, int start, int end);
   Grob *get_maybe_pure_bound (Direction dir, bool pure, int start, int end);
   int get_rank () const;
-  std::vector<Real> get_footnote_heights_in_range (vsize st, vsize end);
-  std::vector<Real> get_in_note_heights_in_range (vsize st, vsize end);
-  std::vector<Real> internal_get_note_heights_in_range (vsize st, vsize end, bool foot);
-  std::vector<Grob *> get_footnote_grobs_in_range (vsize st, vsize end);
+  vector<Real> get_footnote_heights_in_range (vsize st, vsize end);
+  vector<Real> get_in_note_heights_in_range (vsize st, vsize end);
+  vector<Real> internal_get_note_heights_in_range (vsize st, vsize end, bool foot);
+  vector<Grob *> get_footnote_grobs_in_range (vsize st, vsize end);
   vsize num_footnotes ();
   void do_break_substitution_and_fixup_refpoints ();
   void post_processing ();
@@ -73,10 +73,10 @@ public:
   int element_count () const;
   int spanner_count () const;
 
-  void break_into_pieces (std::vector<Column_x_positions> const &);
+  void break_into_pieces (vector<Column_x_positions> const &);
 
-  std::vector<Item *> broken_col_range (Item const *, Item const *) const;
-  std::vector<Grob *> used_columns () const;
+  vector<Item *> broken_col_range (Item const *, Item const *) const;
+  vector<Grob *> used_columns () const;
   Paper_column *column (vsize i) const;
 
   void add_column (Paper_column *);
index 93f575ca52c49d202473386486777aa3c8739d6c..aaf0746a4aadf6ba72b2ce1e8de6d953b465fc20 100644 (file)
@@ -28,7 +28,7 @@
 class Tie_configuration
 {
 #if DEBUG_SLUR_SCORING
-  std::string score_card_;
+  string score_card_;
 #endif
   Real score_;
   bool scored_;
@@ -36,7 +36,7 @@ class Tie_configuration
 
 public:
   Real score () const { return score_; }
-  std::string card () const { return score_card_; }
+  string card () const { return score_card_; }
 
   int position_;
   Direction dir_;
@@ -46,7 +46,7 @@ public:
   /* computed. */
   Interval attachment_x_;
 
-  void add_score (Real, const std::string&);
+  void add_score (Real, const string&);
   Tie_configuration ();
   void center_tie_vertically (Tie_details const &);
   Bezier get_transformed_bezier (Tie_details const &) const;
@@ -62,24 +62,24 @@ public:
 
 INSTANTIATE_COMPARE (Tie_configuration, Tie_configuration::compare);
 
-class Ties_configuration : public std::vector<Tie_configuration>
+class Ties_configuration : public vector<Tie_configuration>
 {
   Real score_;
-  std::string score_card_;
+  string score_card_;
   bool scored_;
-  std::vector<std::string> tie_score_cards_;
+  vector<string> tie_score_cards_;
 
   friend class Tie_formatting_problem;
 public:
   Ties_configuration ();
-  void add_score (Real amount, const std::string &description);
-  void add_tie_score (Real amount, int i, const std::string &description);
+  void add_score (Real amount, const string &description);
+  void add_tie_score (Real amount, int i, const string &description);
   Real score () const;
   void reset_score ();
-  std::string card () const;
-  std::string tie_card (int i) const { return tie_score_cards_[i]; }
-  std::string complete_tie_card (vsize i) const;
-  std::string complete_score_card () const;
+  string card () const;
+  string tie_card (int i) const { return tie_score_cards_[i]; }
+  string complete_tie_card (vsize i) const;
+  string complete_score_card () const;
 };
 
 #endif /* TIE_CONFIGURATION_HH */
index 14376a9ef0bef0a3ec5eb13460d7c8c09198c993..2d3ce617b47d99f057a4ce0bf943de7c288c5ac9 100644 (file)
 #include <map>
 #include <set>
 
-typedef std::map< Tuple<int, 4>, Tie_configuration *> Tie_configuration_map;
+typedef map< Tuple<int, 4>, Tie_configuration *> Tie_configuration_map;
 
 struct Tie_configuration_variation
 {
-  std::vector<std::pair<int, Tie_configuration *> > index_suggestion_pairs_;
+  vector<pair<int, Tie_configuration *> > index_suggestion_pairs_;
   void add_suggestion (int index, Tie_configuration *suggestion)
   {
-    index_suggestion_pairs_.push_back (std::make_pair (index, suggestion));
+    index_suggestion_pairs_.push_back (make_pair (index, suggestion));
   }
 };
 
-typedef std::map < Tuple<int, 2>, Skyline> Chord_outline_map;
-typedef std::map < Tuple<int, 2>, Box> Column_extent_map;
-typedef std::map <int, Slice> Position_extent_map;
+typedef map < Tuple<int, 2>, Skyline> Chord_outline_map;
+typedef map < Tuple<int, 2>, Box> Column_extent_map;
+typedef map <int, Slice> Position_extent_map;
 
 class Tie_formatting_problem
 {
@@ -52,9 +52,9 @@ class Tie_formatting_problem
   Column_extent_map head_extents_;
   Position_extent_map head_positions_;
 
-  std::set<int> dot_positions_;
+  set<int> dot_positions_;
   Interval dot_x_;
-  std::vector<Tie_specification> specifications_;
+  vector<Tie_specification> specifications_;
   bool use_horizontal_spacing_;
 
   Tie_configuration_map possibilities_;
@@ -65,9 +65,9 @@ class Tie_formatting_problem
   Tie_configuration *get_configuration (int position, Direction dir, Drul_array<int> cols, bool tune_y) const;
   Tie_configuration *generate_configuration (int position, Direction dir, Drul_array<int> cols, bool tune_y) const;
 
-  std::vector<Tie_configuration_variation> generate_collision_variations (Ties_configuration const &ties) const;
-  std::vector<Tie_configuration_variation> generate_extremal_tie_variations (Ties_configuration const &ties) const;
-  std::vector<Tie_configuration_variation> generate_single_tie_variations (Ties_configuration const &ties) const;
+  vector<Tie_configuration_variation> generate_collision_variations (Ties_configuration const &ties) const;
+  vector<Tie_configuration_variation> generate_extremal_tie_variations (Ties_configuration const &ties) const;
+  vector<Tie_configuration_variation> generate_single_tie_variations (Ties_configuration const &ties) const;
 
   void score_configuration (Tie_configuration *) const;
   Real score_aptitude (Tie_configuration *, Tie_specification const &,
@@ -80,7 +80,7 @@ class Tie_formatting_problem
   Slice head_positions_slice (int) const;
   Ties_configuration generate_base_chord_configuration ();
   Ties_configuration find_best_variation (Ties_configuration const &base,
-                                          std::vector<Tie_configuration_variation> const &vars);
+                                          vector<Tie_configuration_variation> const &vars);
 
 public:
   Tie_details details_;
@@ -97,11 +97,11 @@ public:
   Ties_configuration generate_optimal_configuration ();
   Ties_configuration generate_ties_configuration (Ties_configuration const &);
 
-  void from_ties (std::vector<Grob *> const &ties);
+  void from_ties (vector<Grob *> const &ties);
   void from_tie (Grob *tie);
-  void from_semi_ties (std::vector<Grob *> const &, Direction head_dir);
-  void set_chord_outline (std::vector<Item *>, Direction);
-  void set_column_chord_outline (std::vector<Item *>, Direction, int rank);
+  void from_semi_ties (vector<Grob *> const &, Direction head_dir);
+  void set_chord_outline (vector<Item *>, Direction);
+  void set_column_chord_outline (vector<Item *>, Direction, int rank);
   void set_manual_tie_configuration (SCM);
   Interval get_attachment (Real, Drul_array<int>) const;
   Grob *common_x_refpoint () const;
index 29f7ff16c75fb1064bde2d4936306f5208c4a34a..6c365d088effb2540559b99b2445849cc952e7b8 100644 (file)
@@ -33,7 +33,7 @@ struct Engraver_dispatch_entry
 
 class Engraver_dispatch_list : public Simple_smob<Engraver_dispatch_list>
 {
-  std::vector<Engraver_dispatch_entry> dispatch_entries_;
+  vector<Engraver_dispatch_entry> dispatch_entries_;
 public:
   void apply (Grob_info);
   SCM static create (SCM trans_list,
index a2c6f8de2dee344ee8c68c8dbf0f98c9a4c8ef2c..d90c2929de2d3d93a5271fae07250108c5b730f1 100644 (file)
@@ -56,7 +56,7 @@ public:
   virtual ~Translator_group ();
 private:
   void precompute_method_bindings ();
-  std::vector<Translator_method_binding>
+  vector<Translator_method_binding>
   precomputed_method_bindings_[TRANSLATOR_METHOD_PRECOMPUTE_COUNT];
 
   Translator_group_void_method
index 78a46917421c5f0eb5b52fc158b11bf6911637a2..8154409efced3e763e13a6bd5862a371d8f7ae81 100644 (file)
@@ -33,7 +33,7 @@
   NAME ();                                                              \
   VIRTUAL_COPY_CONSTRUCTOR (Translator, NAME);                          \
   static SCM static_description_;                                       \
-  static Drul_array<std::vector<Acknowledge_information> > acknowledge_static_array_drul_; \
+  static Drul_array<vector<Acknowledge_information> > acknowledge_static_array_drul_; \
   virtual void fetch_precomputable_methods (Callback methods[]); \
   virtual SCM static_translator_description () const;                   \
   virtual SCM translator_description () const;                          \
index 827908901d4bbcacab37883369d16c57725181f5..7fc128fe72f68d732fa448f9a42d4755fc17e7c3 100644 (file)
@@ -52,7 +52,7 @@
   /* end define */
 
 #define DEFINE_ACKNOWLEDGERS(classname) \
-  Drul_array< std::vector<Acknowledge_information> > classname::acknowledge_static_array_drul_;      \
+  Drul_array< vector<Acknowledge_information> > classname::acknowledge_static_array_drul_;      \
   Translator::Grob_info_callback                                        \
   classname::static_get_acknowledger (SCM sym)                          \
   {                                                                     \
 
 void add_acknowledger (Translator::Grob_info_callback ptr,
                        char const *func_name,
-                       std::vector<Acknowledge_information> *ack_array);
+                       vector<Acknowledge_information> *ack_array);
 
 Translator::Grob_info_callback
 generic_get_acknowledger (SCM sym,
-                          std::vector<Acknowledge_information> const *ack_array);
+                          vector<Acknowledge_information> const *ack_array);
 
 #define ADD_ACKNOWLEDGER(CLASS, NAME)                                   \
   void CLASS ## NAME ## _ack_adder ()                                   \
index c34a78c0a4f42c668039543adb269eb7bb12e710..1e41154fbf32dfd03755ffd524cf1a6de81a8230 100644 (file)
@@ -40,7 +40,7 @@ public:
   static void add_column (Grob *me, Item *);
   static void add_script (Grob *me, Item *);
   static void add_beam (Grob *me, Grob *);
-  static Grob *parallel_beam (Grob *me, std::vector<Grob *> const &cols,
+  static Grob *parallel_beam (Grob *me, vector<Grob *> const &cols,
                               bool *equally_long);
   static void calc_position_and_height (Grob *, Real *, Real *dy);
   static Stencil make_bracket (Grob *me, Axis protrusion_axis,
index 82bb9a9110a2286e143c5a912b0d3d7eeccb8c54..24ba77a37712efee55a98be041e215e02135a79d 100644 (file)
@@ -33,7 +33,7 @@ struct Tuplet_number
 
   static Real calc_offset (Spanner *me, Axis a); // not used
 
-  static Grob *select_reference_stem (Grob *me, std::vector<Grob *> const &cols);
+  static Grob *select_reference_stem (Grob *me, vector<Grob *> const &cols);
   static Drul_array<Grob *> adjacent_note_columns (Grob *me, Grob *ref_stem);
   static bool knee_position_against_beam (Grob *me, Grob *ref_stem);
 };
index 19f6ac019ee1fc2272cc549034771adbc4ae1427..74b7a61b3265ed24321a2ad4f520de546f289658 100644 (file)
@@ -20,6 +20,7 @@
 #include "input.hh"
 
 #include <cstdio>
+using namespace std;
 
 #include "international.hh"
 #include "lily-imports.hh"
index 4eb7c835941d59bab59558b7ba6cbc25161b8384..b5f7947ada203e31550ee041a557f37f439b115c 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <cstring>
 #include <cstdlib>
+using namespace std;
 
 /* for qsort */
 bool tab_less (Keyword_ent const &p1, Keyword_ent const &p2)
index 4849cdfee5d31a84bc49f6260239d0f24b2e4137..7463f676e93e7c54ce853da11f8edca984ba3c9e 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <map>
+using namespace std;
 
 #include "note-head.hh"
 #include "staff-symbol-referencer.hh"
@@ -131,7 +132,7 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
         continue;
 
       current_extents[vdir].unite (head_extent);
-      current_head_width = std::max (current_head_width, head_extent.length ());
+      current_head_width = max (current_head_width, head_extent.length ());
     }
 
   if (previous_column && current_column)
@@ -216,7 +217,7 @@ Ledger_line_spanner::print (SCM smob)
           reqs[rank][vdir].ledger_extent_.unite (ledger_extent);
           reqs[rank][vdir].head_extent_.unite (head_extent);
           reqs[rank][vdir].position_
-            = vdir * std::max (vdir * reqs[rank][vdir].position_, vdir * pos);
+            = vdir * max (vdir * reqs[rank][vdir].position_, vdir * pos);
         }
     }
 
@@ -251,7 +252,7 @@ Ledger_line_spanner::print (SCM smob)
                                                   - sign (i->second[d].position_)));
                   Real limit = (center + (both ? which * gap / 2 : 0));
                   lr.ledger_extent_.at (-which)
-                    = which * std::max (which * lr.ledger_extent_[-which], which * limit);
+                    = which * max (which * lr.ledger_extent_[-which], which * limit);
                 }
             }
         }
@@ -296,7 +297,7 @@ Ledger_line_spanner::print (SCM smob)
                                                               head_size[LEFT]),
                                             0.0);
 
-                    Real left_shorten = std::max (-ledger_size[LEFT] + d, 0.0);
+                    Real left_shorten = max (-ledger_size[LEFT] + d, 0.0);
 
                     x_extent[LEFT] += left_shorten;
                     /*
index 82c1e9ac8b98e407d129a64457ea7e1dcd4169f9..870c466d16f1b815e674f0ea602d42af443b26d0 100644 (file)
@@ -51,6 +51,7 @@
 #define LEXER_CC
 
 #include <iostream>
+using namespace std;
 
 #include "context-def.hh"
 #include "duration.hh"
index 3c033d70f53445f2212d411d55d3456e71aaaa88..5a54e864ddffaf8529286a9770703f6c97f12c31 100644 (file)
@@ -25,6 +25,7 @@
 #include <cstring> /* strdup, strchr */
 #include <cctype>
 
+using namespace std;
 
 #include "dimensions.hh"
 #include "direction.hh"
index 7cfec596c8dff63ca7bdb5a63c3319b5020fb100..c58885a89542771b29cc503f8531d60033b52a29 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <cctype>
 #include <sstream>
+using namespace std;
 
 #include "context.hh" // for nested_property_alist
 #include "international.hh"
index c12019ce0168957cb8a110f8244d9ecd451d6f0a..0aeec915409660ae7a4b4cc2c7248f529f5dea0b 100644 (file)
@@ -124,9 +124,9 @@ Stencil
 Line_interface::make_dashed_line (Real thick, Offset from, Offset to,
                                   Real dash_period, Real dash_fraction)
 {
-  dash_fraction = std::min (std::max (dash_fraction, 0.0), 1.0);
+  dash_fraction = min (max (dash_fraction, 0.0), 1.0);
   Real on = dash_fraction * dash_period + thick;
-  Real off = std::max (0.0, dash_period - on);
+  Real off = max (0.0, dash_period - on);
 
   SCM at = scm_list_n (ly_symbol2scm ("dashed-line"),
                        scm_from_double (thick),
@@ -220,7 +220,7 @@ Line_interface::line (Grob *me, Offset from, Offset to)
           ? 0.0
           : robust_scm2double (me->get_property ("dash-fraction"), 0.4);
 
-      fraction = std::min (std::max (fraction, 0.0), 1.0);
+      fraction = min (max (fraction, 0.0), 1.0);
       Real period = Staff_symbol_referencer::staff_space (me)
                     * robust_scm2double (me->get_property ("dash-period"), 1.0);
 
@@ -230,7 +230,7 @@ Line_interface::line (Grob *me, Offset from, Offset to)
       Real len = (to - from).length ();
 
       int n = (int) rint ((len - period * fraction) / period);
-      n = std::max (0, n);
+      n = max (0, n);
       if (n > 0)
         {
           /*
index dbf2a2ef898e5ecabb7f575935fd72b65ece5620..4e338caec99c199e19a8b1dd4d34882bdeba1465 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <cmath>
 #include <cctype>
+using namespace std;
 
 #include "line-interface.hh"
 #include "warn.hh"
@@ -169,9 +170,9 @@ Stencil
 Lookup::round_filled_box (Box b, Real blotdiameter)
 {
   Real width = b.x ().delta ();
-  blotdiameter = std::min (blotdiameter, width);
+  blotdiameter = min (blotdiameter, width);
   Real height = b.y ().delta ();
-  blotdiameter = std::min (blotdiameter, height);
+  blotdiameter = min (blotdiameter, height);
 
   if (blotdiameter < 0.0)
     {
@@ -588,7 +589,7 @@ Lookup::triangle (Interval iv, Real thick, Real protrude)
 {
   Box b;
   b[X_AXIS] = Interval (0, iv.length ());
-  b[Y_AXIS] = Interval (std::min (0., protrude), std::max (0.0, protrude));
+  b[Y_AXIS] = Interval (min (0., protrude), max (0.0, protrude));
 
   vector<Offset> points;
   points.push_back (Offset (iv[LEFT], 0));
index 38d9333684b7d1f959d08b901637d73b104dc140..6e8c617ef426b6b71bbfe7d0bb93aba25cf468d0 100644 (file)
@@ -103,7 +103,7 @@ Lyric_combine_music_iterator::set_busy (SCM se)
   if ((e->in_event_class ("note-event") || e->in_event_class ("cluster-note-event"))
       && music_context_)
 
-    busy_moment_ = std::max (music_context_->now_mom (),
+    busy_moment_ = max (music_context_->now_mom (),
                         busy_moment_);
 
 }
index bb841e41403845fa8b3883900d2c7da8b6070111..8afe2c5569200d48a8a4caec55c460e0af91ee8f 100644 (file)
@@ -70,21 +70,21 @@ Lyric_extender::print (SCM smob)
   Real right_point
     = left_point + (robust_scm2double (minlen, 0));
 
-  right_point = std::min (right_point, me->get_system ()->get_bound (RIGHT)->relative_coordinate (common, X_AXIS));
+  right_point = min (right_point, me->get_system ()->get_bound (RIGHT)->relative_coordinate (common, X_AXIS));
 
   if (heads.size ())
-    right_point = std::max (right_point, heads.back ()->extent (common, X_AXIS)[RIGHT]);
+    right_point = max (right_point, heads.back ()->extent (common, X_AXIS)[RIGHT]);
 
   Real h = sl * robust_scm2double (me->get_property ("thickness"), 0);
   Drul_array<Real> paddings (robust_scm2double (me->get_property ("left-padding"), h),
                              robust_scm2double (me->get_property ("right-padding"), h));
 
   if (right_text)
-    right_point = std::min (right_point, (robust_relative_extent (right_text, common, X_AXIS)[LEFT] - paddings[RIGHT]));
+    right_point = min (right_point, (robust_relative_extent (right_text, common, X_AXIS)[LEFT] - paddings[RIGHT]));
 
   /* run to end of line. */
   if (me->get_bound (RIGHT)->break_status_dir ())
-    right_point = std::max (right_point, (robust_relative_extent (me->get_bound (RIGHT), common, X_AXIS)[LEFT] - paddings[RIGHT]));
+    right_point = max (right_point, (robust_relative_extent (me->get_bound (RIGHT), common, X_AXIS)[LEFT] - paddings[RIGHT]));
 
   left_point += paddings[LEFT];
   Real w = right_point - left_point;
index 236e7e315aef9d0c5f234010f820333ba80ee5b5..029391f92f681fbe3e144efa7c66444c0da20fd4 100644 (file)
@@ -81,7 +81,7 @@ Lyric_hyphen::print (SCM smob)
       && !bounds[RIGHT]->break_status_dir ())
     {
       Real minimum_length = robust_scm2double (me->get_property ("minimum-length"), .3);
-      dash_length = std::max ((l - 2 * padding), minimum_length);
+      dash_length = max ((l - 2 * padding), minimum_length);
     }
 
   Real space_left = l - dash_length - (n - 1) * dash_period;
@@ -94,7 +94,7 @@ Lyric_hyphen::print (SCM smob)
       && !bounds[RIGHT]->break_status_dir ())
     return SCM_EOL;
 
-  space_left = std::max (space_left, 0.0);
+  space_left = max (space_left, 0.0);
 
   Box b (Interval (0, dash_length), Interval (h, h + th));
   Stencil dash_mol (Lookup::round_filled_box (b, 0.8 * lt));
index 1283bcfcc671ebffdb398864a6f74705fe06911e..001dc3a882c9d26b9dac22a337faad1808c7b73d 100644 (file)
@@ -25,6 +25,7 @@
 #include <cstring>
 #include <cerrno>
 #include <cstdio>
+using namespace std;
 
 #include <unistd.h>
 #include <sys/types.h>
index 51add1233e0c72ff1ae1d0833c167db3944509d8..7db0a781cc8d993807ac51af519218ef0b48d42d 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "engraver.hh"
 
index f5bc1079816e73d181575e9c32cfb4a75b5c01c5..e1de3e23e0f48692e536060357856741152f65ee 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <cctype>
+using namespace std;
 
 #include "engraver.hh"
 
index 542e2b0df20ecbd94f3ce9240bb2207ec3e2f0a6..a602edc6fed05838c2ccb3e3401a94123e59d439 100644 (file)
@@ -195,7 +195,7 @@ Midi_time_signature::to_string () const
 Midi_note::Midi_note (Audio_note *a)
   : Midi_channel_item (a),
     audio_ (a),
-    dynamic_byte_ (std::min (std::max (Byte ((a->dynamic_ && a->dynamic_->volume_ >= 0
+    dynamic_byte_ (min (max (Byte ((a->dynamic_ && a->dynamic_->volume_ >= 0
                                     ? a->dynamic_->volume_ * 0x7f : 0x5a)
                                    + a->extra_velocity_),
                              Byte (0)), Byte (0x7f)))
index 69db19590f570dc32fe836c8bc1006c43e423675..07e9e45e100fdb55a72a377f2c3d28ef4da63d4f 100644 (file)
@@ -20,6 +20,7 @@
 #include "midi-stream.hh"
 
 #include <cerrno>
+using namespace std;
 
 #include "international.hh"
 #include "main.hh"
index 77fbb2137489cb55ed16fe04a205200958a7a381..7bb417bd6251ef2b5e7d34012ccfc2b4dd3c0d5b 100644 (file)
@@ -67,7 +67,7 @@ peak_around (Real epsilon, Real threshold, Real x)
 {
   if (x < 0)
     return 1.0;
-  return std::max (- epsilon * (x - threshold) / ((x + epsilon) * threshold), 0.0);
+  return max (- epsilon * (x - threshold) / ((x + epsilon) * threshold), 0.0);
 }
 
 /*
index b746fdaa68d0753f096f92bb3973de51a538cb90..2256eb9d180f2cf28e3652cf07ca850c0fddab30 100644 (file)
@@ -17,6 +17,7 @@
   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 #include <cctype>
+using namespace std;
 
 #include "modified-font-metric.hh"
 #include "pango-font.hh"
index 056989a60ed26477b20c816d9b4932ea6932997f..7f2a720d6f809e06736272397e703d577d70f827 100644 (file)
@@ -80,7 +80,7 @@ Multi_measure_rest::percent (SCM smob)
     we gotta stay clear of sp_iv, so move a bit to the right if
     needed.
   */
-  x_off += std::max (sp_iv[LEFT] - rx, 0.0);
+  x_off += max (sp_iv[LEFT] - rx, 0.0);
 
   /*
     center between stuff.
@@ -107,7 +107,7 @@ Multi_measure_rest::print (SCM smob)
     we gotta stay clear of sp_iv, so move a bit to the right if
     needed.
   */
-  Real x_off = std::max (sp_iv[LEFT] - rx, 0.0);
+  Real x_off = max (sp_iv[LEFT] - rx, 0.0);
 
   Stencil mol;
   mol.add_stencil (symbol_stencil (me, space));
@@ -251,9 +251,9 @@ Multi_measure_rest::big_rest (Grob *me, Real width)
   Real slt = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
   Real y = slt * thick_thick / 2 * ss;
   Real ythick = hair_thick * slt * ss;
-  Box b (Interval (0.0, std::max (0.0, (width - 2 * ythick))), Interval (-y, y));
+  Box b (Interval (0.0, max (0.0, (width - 2 * ythick))), Interval (-y, y));
 
-  Real blot = width ? (.8 * std::min (y, ythick)) : 0.0;
+  Real blot = width ? (.8 * min (y, ythick)) : 0.0;
 
   Stencil m = Lookup::round_filled_box (b, blot);
   Stencil yb = Lookup::round_filled_box (Box (Interval (-0.5, 0.5) * ythick, Interval (-ss, ss)), blot);
@@ -392,7 +392,7 @@ Multi_measure_rest::calculate_spacing_rods (Grob *me, Real length)
       rod.item_drul_[LEFT] = li;
       rod.item_drul_[RIGHT] = ri;
 
-      rod.distance_ = std::max (Paper_column::minimum_distance (li, ri) + length,
+      rod.distance_ = max (Paper_column::minimum_distance (li, ri) + length,
                            minlen);
       rod.add_to_cols ();
     }
index f1ef8d6488a5b55034e35a561230a50efc8bf13f..b89e92c28ec968f2f13bfbfff070a440d891ce7f 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <cstdio>
+using namespace std;
 
 #include "warn.hh"
 #include "music.hh"
index 33a035d8a303d9b3f50883fff5b2a835761a5c9d..d280953714b820c25513cd4e54ddf89b84b2ba80 100644 (file)
@@ -66,7 +66,7 @@ Music_sequence::maximum_length (SCM l)
       else
         {
           Moment l = m->get_length ();
-          dur = std::max (dur, l);
+          dur = max (dur, l);
         }
     }
 
@@ -153,7 +153,7 @@ Music_sequence::minimum_start (SCM l)
   Moment m;
 
   for (SCM s = l; scm_is_pair (s); s = scm_cdr (s))
-    m = std::min (m, unsmob<Music> (scm_car (s))->start_mom ());
+    m = min (m, unsmob<Music> (scm_car (s))->start_mom ());
   return m;
 }
 
index f75ccd69dc4bd43a0ebf33b687f14c1dc0122ce2..e0b0d0980981f8ebfb727e6aab4428d62b01d785 100644 (file)
@@ -230,7 +230,7 @@ New_fingering_engraver::position_scripts (SCM orientations,
         }
     }
 
-  vector_sort (*scripts, std::less<Finger_tuple> ());
+  vector_sort (*scripts, less<Finger_tuple> ());
 
   bool up_p = scm_is_true (scm_c_memq (ly_symbol2scm ("up"), orientations));
   bool down_p = scm_is_true (scm_c_memq (ly_symbol2scm ("down"), orientations));
index 18e8e00dbaf6ba1831d23d57d45c128dceea786b..4d1303b739e5e77d31b0f1566c4392340867df13 100644 (file)
@@ -524,11 +524,11 @@ Note_collision_interface::automatic_shift (Grob *me,
 
               // check if we cross the opposite-stemmed voices
               if (d * extents[d][i][-d] < d * extent_union[-d][d])
-                offset = std::max (offset, 0.5);
+                offset = max (offset, 0.5);
               if (extents[-d].size ()
                   && extents[d][i][UP] > extents[-d][0][DOWN]
                   && extents[d][i][DOWN] < extents[-d][0][UP])
-                offset = std::max (offset, 1.0);
+                offset = max (offset, 1.0);
             }
           offsets[d].push_back (d * offset);
         }
@@ -595,7 +595,7 @@ Note_collision_interface::note_head_positions (Grob *me)
         out.insert (out.end (), nhp.begin (), nhp.end ());
       }
 
-  vector_sort (out, std::less<int> ());
+  vector_sort (out, less<int> ());
   return out;
 }
 
index 87396b5a1324f30abc0bc04b4e51c3f1025b6b60..1d79fee652c57a825400a5e9a3fca3abb9c483a2 100644 (file)
@@ -20,6 +20,7 @@
 #include "note-column.hh"
 
 #include <cmath>                // ceil
+using namespace std;
 
 #include "accidental-placement.hh"
 #include "axis-group-interface.hh"
index af516bef2b0092a708196b80da510ebf2bb35208..dda8e040b963d806b30116f457d0afb76f7cd642 100644 (file)
@@ -23,6 +23,7 @@
 #include <cctype>
 #include <algorithm>            //  min, max
 
+using namespace std;
 
 #include "directional-element-interface.hh"
 #include "font-interface.hh"
@@ -39,7 +40,7 @@ internal_print (Grob *me, string *font_char)
 {
   string style = robust_symbol2string (me->get_property ("style"), "default");
 
-  string suffix = ::to_string (std::min (robust_scm2int (me->get_property ("duration-log"), 2), 2));
+  string suffix = ::to_string (min (robust_scm2int (me->get_property ("duration-log"), 2), 2));
   if (style != "default")
     suffix = robust_scm2string (me->get_property ("glyph-name"), "");
 
@@ -145,8 +146,8 @@ Note_head::include_ledger_line_height (SCM smob)
       // The +1 and -1 come from the fact that we only want to add
       // the interval between the note and the first ledger line, not
       // the whole interval between the note and the staff.
-      Interval iv (std::min (0.0, lines[UP] - my_ext[DOWN] + 1),
-                   std::max (0.0, lines[DOWN] - my_ext[UP] - 1));
+      Interval iv (min (0.0, lines[UP] - my_ext[DOWN] + 1),
+                   max (0.0, lines[DOWN] - my_ext[UP] - 1));
       return ly_interval2scm (iv);
     }
 
index 9c12fc78b26a53a208454254141ba4218c1093f7..20036d021f30f0998ac234c3f7ec0f6c56f90ff9 100644 (file)
@@ -20,6 +20,7 @@
 #include "engraver.hh"
 
 #include <cctype>
+using namespace std;
 
 #include "duration.hh"
 #include "item.hh"
index 63a35874759be647da88217fba3a5da53799dce5..eab36515205ba3b97dfc118fcb87e46198f00d47 100644 (file)
@@ -78,7 +78,7 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
   Real ideal = base.distance () - increment + left_head_end;
   Drul_array<Skyline> skys = Spacing_interface::skylines (me, right_col);
   Real distance = skys[LEFT].distance (skys[RIGHT], robust_scm2double (right_col->get_property ("skyline-vertical-padding"), 0.0));
-  Real min_dist = std::max (0.0, distance);
+  Real min_dist = max (0.0, distance);
   base.set_min_distance (min_dist);
 
   /* If we have a NonMusical column on the right, we measure the ideal distance
@@ -99,13 +99,13 @@ Note_spacing::get_spacing (Grob *me, Item *right_col,
              but keep at least half the gap we would have had to a note */
           Real min_desired_space = (ideal + min_dist) / 2.0;
           ideal -= right_col->extent (right_col, X_AXIS)[RIGHT];
-          ideal = std::max (ideal, min_desired_space);
+          ideal = max (ideal, min_desired_space);
         }
     }
 
   stem_dir_correction (me, right_col, increment, &ideal);
 
-  base.set_distance (std::max (0.0, ideal));
+  base.set_distance (max (0.0, ideal));
   return base;
 }
 
@@ -147,7 +147,7 @@ different_directions_correction (Grob *note_spacing,
       /*
         Ugh. 7 is hardcoded.
       */
-      ret = std::min (ret / 7, 1.0)
+      ret = min (ret / 7, 1.0)
             * left_stem_dir
             * robust_scm2double (note_spacing->get_property ("stem-spacing-correction"), 0);
     }
index a96b37fc008610e4fce7c7a677c6e91e74acbf3d..9110cdad967dd9e6602c58cf0a8db109c8dbb296 100644 (file)
@@ -60,7 +60,7 @@ One_line_page_breaking::solve ()
           vector<Grob *> cols = ps->root_system ()->used_columns ();
 
           // No indent, "infinite" line width, ragged.
-          Column_x_positions pos = get_line_configuration (cols, std::numeric_limits<Real>::max (), 0, true);
+          Column_x_positions pos = get_line_configuration (cols, numeric_limits<Real>::max (), 0, true);
           vector<Column_x_positions> positions;
           positions.push_back (pos);
 
@@ -73,7 +73,7 @@ One_line_page_breaking::solve ()
           SCM systems = scm_list_1 (system->self_scm ());
           SCM pages = make_pages (lines_per_page, systems);
 
-          max_width = std::max (max_width, system->extent (system, X_AXIS).length ());
+          max_width = max (max_width, system->extent (system, X_AXIS).length ());
           all_pages = scm_cons (scm_car (pages), all_pages);
         }
       else if (Prob *pb = system_specs_[i].prob_)
index b200b1188d21c4e8a423832a60eaa43de2fb6f4b..8a7bdf7221bd51ffe465aaf131381894b33141d2 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <cstdio>
 
+using namespace std;
 
 #include FT_TRUETYPE_TABLES_H
 
index 9116f19f0488ceed50424ad148538e6acc613ec8..63a9d3ebca37adaa2b60dd4bce024875b2301202 100644 (file)
@@ -129,7 +129,7 @@ Ottava_bracket::print (SCM smob)
                    ? 0.0 : text.extent (X_AXIS)[RIGHT] + 0.3;
 
   span_points[LEFT]
-    = std::min (span_points[LEFT],
+    = min (span_points[LEFT],
            (span_points[RIGHT] - text_size
             - robust_scm2double (me->get_property ("minimum-length"), -1.0)));
 
index 94a76f9a19af835867ea8550d2ce0da1ac9d2336..20ae15271a6c6891a9519388fec19514338f3904 100644 (file)
@@ -251,9 +251,9 @@ Page_breaking::Page_breaking (Paper_book *pb, Break_predicate is_break, Prob_bre
   paper_height_ = robust_scm2double (pb->paper_->c_variable ("paper-height"), 1.0);
   ragged_ = to_boolean (pb->paper_->c_variable ("ragged-bottom"));
   ragged_last_ = to_boolean (pb->paper_->c_variable ("ragged-last-bottom"));
-  systems_per_page_ = std::max (0, robust_scm2int (pb->paper_->c_variable ("systems-per-page"), 0));
-  max_systems_per_page_ = std::max (0, robust_scm2int (pb->paper_->c_variable ("max-systems-per-page"), 0));
-  min_systems_per_page_ = std::max (0, robust_scm2int (pb->paper_->c_variable ("min-systems-per-page"), 0));
+  systems_per_page_ = max (0, robust_scm2int (pb->paper_->c_variable ("systems-per-page"), 0));
+  max_systems_per_page_ = max (0, robust_scm2int (pb->paper_->c_variable ("max-systems-per-page"), 0));
+  min_systems_per_page_ = max (0, robust_scm2int (pb->paper_->c_variable ("min-systems-per-page"), 0));
   orphan_penalty_ = robust_scm2int (pb->paper_->c_variable ("orphan-penalty"), 100000);
 
   Stencil footnote_separator = Page_layout_problem::get_footnote_separator_stencil (pb->paper_);
@@ -927,7 +927,7 @@ Page_breaking::set_current_breakpoints (vsize start,
 
           dems_and_indices.push_back (pair<Real, vsize> (dem, i));
         }
-      vector_sort (dems_and_indices, std::less<pair<Real, vsize> > ());
+      vector_sort (dems_and_indices, less<pair<Real, vsize> > ());
 
       vector<Line_division> best_5_configurations;
       for (vsize i = 0; i < 5; i++)
@@ -1031,9 +1031,9 @@ Page_breaking::line_divisions_rec (vsize system_count,
       others_min += min_sys[i];
       others_max += max_sys[i];
     }
-  others_max = std::min (others_max, (int) system_count);
-  int real_min = std::max ((int) min_sys[my_index], (int) system_count - others_max);
-  int real_max = std::min ((int) max_sys[my_index], (int) system_count - others_min);
+  others_max = min (others_max, (int) system_count);
+  int real_min = max ((int) min_sys[my_index], (int) system_count - others_max);
+  int real_max = min ((int) max_sys[my_index], (int) system_count - others_min);
 
   if (real_min > real_max || real_min < 0)
     {
@@ -1073,7 +1073,7 @@ Page_breaking::compute_line_heights ()
       Real a = shape.begin_[UP];
       Real b = shape.rest_[UP];
       bool title = cur.title_;
-      Real refpoint_hanging = std::max (prev_hanging_begin + a, prev_hanging_rest + b);
+      Real refpoint_hanging = max (prev_hanging_begin + a, prev_hanging_rest + b);
 
       if (i > 0)
         {
@@ -1086,14 +1086,14 @@ Page_breaking::compute_line_heights ()
           Real min_dist = title
                           ? prev.title_min_distance_
                           : prev.min_distance_;
-          refpoint_hanging = std::max (refpoint_hanging + padding,
+          refpoint_hanging = max (refpoint_hanging + padding,
                                   prev_refpoint_hanging - prev.refpoint_extent_[DOWN]
                                   + cur.refpoint_extent_[UP] + min_dist);
         }
 
       Real hanging_begin = refpoint_hanging - shape.begin_[DOWN];
       Real hanging_rest = refpoint_hanging - shape.rest_[DOWN];
-      Real hanging = std::max (hanging_begin, hanging_rest);
+      Real hanging = max (hanging_begin, hanging_rest);
       cur.tallness_ = hanging - prev_hanging;
       prev_hanging = hanging;
       prev_hanging_begin = hanging_begin;
@@ -1449,7 +1449,7 @@ Page_breaking::finalize_spacing_result (vsize configuration, Page_spacing_result
     {
       Real f = res.force_[i];
 
-      page_demerits += std::min (f * f, BAD_SPACING_PENALTY);
+      page_demerits += min (f * f, BAD_SPACING_PENALTY);
     }
 
   /* for a while we tried averaging page and line forces across pages instead
@@ -1483,7 +1483,7 @@ Page_breaking::space_systems_on_1_page (vector<Line_details> const &lines, Real
     }
 
   ret.systems_per_page_.push_back (lines.size ());
-  ret.force_.push_back (ragged ? std::min (space.force_, 0.0) : space.force_);
+  ret.force_.push_back (ragged ? min (space.force_, 0.0) : space.force_);
   ret.penalty_ = line_count_penalty (line_count) + lines.back ().page_penalty_ + lines.back ().turn_penalty_;
   ret.system_count_status_ |= line_count_status (line_count);
 
@@ -1657,8 +1657,8 @@ Page_breaking::min_whitespace_at_top_of_page (Line_details const &line) const
                                           ly_symbol2scm ("padding"));
 
   // FIXME: take into account the height of the header
-  Real translate = std::max (line.shape_.begin_[UP], line.shape_.rest_[UP]);
-  return std::max (0.0, std::max (padding, min_distance - translate));
+  Real translate = max (line.shape_.begin_[UP], line.shape_.rest_[UP]);
+  return max (0.0, max (padding, min_distance - translate));
 }
 
 Real
@@ -1676,8 +1676,8 @@ Page_breaking::min_whitespace_at_bottom_of_page (Line_details const &line) const
                                           ly_symbol2scm ("padding"));
 
   // FIXME: take into account the height of the footer
-  Real translate = std::min (line.shape_.begin_[DOWN], line.shape_.rest_[DOWN]);
-  return std::max (0.0, std::max (padding, min_distance + translate));
+  Real translate = min (line.shape_.begin_[DOWN], line.shape_.rest_[DOWN]);
+  return max (0.0, max (padding, min_distance + translate));
 }
 
 int
index ebe147d59e6230e65960f845ce0de7a69b4ae08d..b0ef9ab36dbbf9004cd343246dc520d57a9c52e9 100644 (file)
@@ -189,7 +189,7 @@ Page_layout_problem::add_footnotes_to_lines (SCM lines, int counter, Paper_book
       numbers = scm_cons (stencil, numbers);
 
       if (!st->extent (X_AXIS).is_empty ())
-        max_length = std::max (max_length, st->extent (X_AXIS)[RIGHT]);
+        max_length = max (max_length, st->extent (X_AXIS)[RIGHT]);
 
       counter++;
     }
@@ -665,7 +665,7 @@ Page_layout_problem::append_prob (Prob *prob, Spring const &spring, Real padding
 
   if (sky)
     {
-      minimum_distance = std::max ((*sky)[UP].distance (bottom_skyline_),
+      minimum_distance = max ((*sky)[UP].distance (bottom_skyline_),
                               bottom_loose_baseline_);
       bottom_skyline_ = (*sky)[DOWN];
     }
@@ -1126,7 +1126,7 @@ Page_layout_problem::get_fixed_spacing (Grob *before, Grob *after, int spaceable
         {
           SCM forced = robust_list_ref (spaceable_index - 1, manual_dists);
           if (scm_is_number (forced))
-            ret = std::max (ret, scm_to_double (forced));
+            ret = max (ret, scm_to_double (forced));
         }
     }
 
index f9cb9540d1a0b51eb4f9507eaa99cadc8f044708..ce9aabedac0d0e1e3cc34f5ec4a9e7b329eea28c 100644 (file)
@@ -37,7 +37,7 @@ Page_spacing::calc_force ()
     force_ = -infinity_f;
   else
     force_ = (height - rod_height_ - last_line_.bottom_padding_ - spring_len_)
-             / std::max (0.1, inverse_spring_k_);
+             / max (0.1, inverse_spring_k_);
 }
 
 void
@@ -356,7 +356,7 @@ Page_spacer::calc_subproblem (vsize page, vsize line)
           // Clamp the demerits at BAD_SPACING_PENALTY, even if the page
           // is overfull.  This ensures that TERRIBLE_SPACING_PENALTY takes
           // precedence over overfull pages.
-          demerits = std::min (demerits, BAD_SPACING_PENALTY);
+          demerits = min (demerits, BAD_SPACING_PENALTY);
           demerits += (prev ? prev->demerits_ : 0);
 
           Real penalty = breaker_->line_count_penalty (line_count);
index 874ebe7e7e56ce62791f5d2281e5270f8a609e72..82b33aadfbbc61026f281c754ee1987654de8ebb 100644 (file)
@@ -64,7 +64,7 @@ public:
         return ret;
       }
 
-    Real new_pen = std::max (penalty_, penalty.penalty_);
+    Real new_pen = max (penalty_, penalty.penalty_);
 
     if (duration_[LEFT] < penalty.duration_[LEFT])
       ret.push_back (Page_turn_event (duration_[LEFT], penalty.duration_[LEFT], permission_, penalty_));
@@ -121,8 +121,8 @@ Page_turn_engraver::Page_turn_engraver ()
 Grob *
 Page_turn_engraver::breakable_column (Page_turn_event const &brk)
 {
-  vsize start = lower_bound (breakable_moments_, brk.duration_[LEFT], std::less<Rational> ());
-  vsize end = upper_bound (breakable_moments_, brk.duration_[RIGHT], std::less<Rational> ());
+  vsize start = lower_bound (breakable_moments_, brk.duration_[LEFT], less<Rational> ());
+  vsize end = upper_bound (breakable_moments_, brk.duration_[RIGHT], less<Rational> ());
 
   if (start == breakable_moments_.size ())
     return NULL;
@@ -323,7 +323,7 @@ Page_turn_engraver::finalize ()
       if (pc)
         {
           SCM perm = max_permission (pc->get_property ("page-turn-permission"), brk.permission_);
-          Real pen = std::min (robust_scm2double (pc->get_property ("page-turn-penalty"), infinity_f), brk.penalty_);
+          Real pen = min (robust_scm2double (pc->get_property ("page-turn-penalty"), infinity_f), brk.penalty_);
           pc->set_property ("page-turn-permission", perm);
           pc->set_property ("page-turn-penalty", scm_from_double (pen));
         }
index daa060c939e72b58225ff03473b4be599c43b0b0..85a090f6eab69ed97e3c233ea0cc904de4c4777f 100644 (file)
@@ -173,7 +173,7 @@ Page_turn_page_breaking::calc_subproblem (vsize ending_breakpoint)
 
       /* heuristic: we've just added a breakpoint, we'll need at least as
          many systems as before */
-      min_sys_count = std::max (min_sys_count, prev_best_system_count);
+      min_sys_count = max (min_sys_count, prev_best_system_count);
       for (vsize sys_count = min_sys_count; sys_count <= max_sys_count && ok_page; sys_count++)
         {
           set_current_breakpoints (start, end, sys_count, min_division, max_division);
index 692a28f9d9333f7472113e4f5b7c73fca2b82fc8..c5f6cc5b95718a6c566decd15e7c09b079d70f80 100644 (file)
@@ -179,7 +179,7 @@ Paper_column::minimum_distance (Grob *left, Grob *right)
 
   skys[RIGHT].merge (Separation_item::conditional_skyline (right, left));
 
-  return std::max (0.0, skys[LEFT].distance (skys[RIGHT]));
+  return max (0.0, skys[LEFT].distance (skys[RIGHT]));
 }
 
 Interval
index 943c3561f465ea5ffab88bf984b01c3ad28bc795..87f14570e21f25ae27aed8c4d46740df02c37481 100644 (file)
@@ -23,6 +23,7 @@
 #include <cmath>
 #include <ctime>
 
+using namespace std;
 
 #include "dimensions.hh"
 #include "file-name.hh"
index 72ddff36323d996e3451a259d6104c0f10ed74f7..576591dc97265e2a77dd93bcfa7c61b7ee48ecba 100644 (file)
@@ -20,6 +20,7 @@
 #include "parse-scm.hh"
 
 #include <cstdio>
+using namespace std;
 
 #include "lily-parser.hh"
 #include "lily-lexer.hh"
index a166aee8e538f87b5ac002ffec5f6b95e72f9cc2..cadcd898698ef56b245eed44df0091f0c2a2b9e1 100644 (file)
@@ -116,6 +116,7 @@ FIXME:
 #include <cctype>
 #include <cstdlib>
 #include <cstdio>
+using namespace std;
 
 #include "book.hh"
 #include "context-def.hh"
index d7d159bed0f4a942cd296bde84ac7b47c66afe47..f742d75a734f8f3bccc061e7482277f4218e9f32 100644 (file)
@@ -99,7 +99,7 @@ Part_combine_iterator::pending_moment () const
 
   for (size_t i = 0; i < NUM_PARTS; i++)
     if (iterators_[i]->ok ())
-      p = std::min (p, iterators_[i]->pending_moment ());
+      p = min (p, iterators_[i]->pending_moment ());
 
   return p;
 }
index 79cc21a5d5013b3becd58ff3f1db1e69a74dcce3..da2ce2cef3c74b8346ef707eda37d1006111e3c1 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <glib.h>
+using namespace std;
 
 #include "international.hh"
 #include "warn.hh"
index af083021cea180bd35f215ad5ed7b519db921834..3024ea69afea83e7af0cb3f00bcd5ea54a667203 100644 (file)
@@ -20,6 +20,7 @@
 #include "performance.hh"
 
 #include <ctime>
+using namespace std;
 
 #include "audio-column.hh"
 #include "audio-item.hh"
@@ -81,7 +82,7 @@ Performance::output (Midi_stream &midi_stream,
   Moment start_mom = 0;
   for (vsize i = 0; i < audio_elements_.size (); i++)
     if (Audio_item *item = dynamic_cast<Audio_item *>(audio_elements_[i]))
-      start_mom = std::min (start_mom, item->audio_column_->when ());
+      start_mom = min (start_mom, item->audio_column_->when ());
 
   for (vsize i = 0; i < audio_staffs_.size (); i++)
     {
index f62cea6d2aabe448205d8ad7c9628819681e23d4..c971024548087c547c826da0d323dfa5a37c972c 100644 (file)
@@ -20,6 +20,7 @@
 #include <cstdlib>
 #include <cstdio>
 #include <cstring>
+using namespace std;
 
 #include "program-option.hh"
 #include "source-file.hh"
index 405e5d17c2aeb3ec7ab2873284847567a11abefd..b7003c085c7357694cdcb5ebc5503d395b642b04 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <cstdio>
 #include <cstring>
+using namespace std;
 
 #include "profile.hh"
 #include "international.hh"
@@ -171,7 +172,7 @@ get_help_string ()
     }
 
   string help ("Options supported by `ly:set-option':\n\n");
-  vector_sort (opts, std::less<string> ());
+  vector_sort (opts, less<string> ());
   for (vsize i = 0; i < opts.size (); i++)
     help += opts[i];
   return help;
index f222e5a8e4cc47a12f95981700a19be4f30cf169..c4336250111170df3e40d0d58085cb645403ef37 100644 (file)
@@ -178,14 +178,14 @@ Quote_iterator::pending_moment () const
   Moment m (infty);
 
   if (Music_wrapper_iterator::ok ())
-    m = std::min (m, Music_wrapper_iterator::pending_moment ());
+    m = min (m, Music_wrapper_iterator::pending_moment ());
 
   /*
     In case event_idx_ < 0, we're not initted yet, and the wrapped
     music expression determines the starting moment.
   */
   if (quote_ok ())
-    m = std::min (m, vector_moment (event_idx_) - start_moment_);
+    m = min (m, vector_moment (event_idx_) - start_moment_);
 
   return m;
 }
index 1abd13646c26f4e36902befe001dd5ed0bdd65cf..8425e6eee2f25dcab66b2c326b2492bbee4bab83 100644 (file)
@@ -20,6 +20,7 @@
 #include "rest-collision.hh"
 
 #include <cmath>                // ceil.
+using namespace std;
 
 #include "directional-element-interface.hh"
 #include "duration.hh"
@@ -255,7 +256,7 @@ Rest_collision::calc_positioning_done (SCM smob)
                 notedim.unite (notes[i]->extent (common, Y_AXIS));
             }
 
-          Real y = dir * std::max (0.0,
+          Real y = dir * max (0.0,
                               -dir * restdim[-dir] + dir * notedim[dir] + minimum_dist);
 
           // move discretely by half spaces.
index b56c400556167339b5052ded5e41021a41fa9242..08419d83dd0d223fcff7592af87f9a24cfec2f88 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <cstdio>
 #include <algorithm>
+using namespace std;
 
 
 /*
index 102a549cc4692b16d250d772e6e1132316069c40..da48e8f1031c3a5230f2c073b9bd2b0ff4166442 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <cstdio>
 
+using namespace std;
 
 #include "book.hh"
 #include "cpu-timer.hh"
index 20fc2c564a57eac6d6224bb7f44a3385990b0c10..632f6bcccfc477c9e053dc6c35db3de01e80015e 100644 (file)
@@ -64,7 +64,7 @@ Separation_item::set_distance (Item *l, Item *r, Real padding)
       rod.add_to_cols ();
     }
 
-  return std::max (dist, 0.0);
+  return max (dist, 0.0);
 }
 
 bool
index 2e4591153a2a8af143c4630fad4f4ba0e31ab4e0..efb182092fe599634fdb82b59cd780fdaa1ca122 100644 (file)
@@ -24,6 +24,7 @@
 #include <set>
 #include <map>
 
+using namespace std;
 
 #include "accidental-interface.hh"
 #include "accidental-placement.hh"
@@ -347,7 +348,7 @@ Side_position_interface::aligned_side (Grob *me, Axis a, bool pure, int start, i
     total_off = minimum_space * dir;
 
   if (current_off)
-    total_off = dir * std::max (dir * total_off,
+    total_off = dir * max (dir * total_off,
                            dir * (*current_off));
 
   /* FIXME: 1000 should relate to paper size.  */
@@ -406,7 +407,7 @@ Side_position_interface::aligned_side (Grob *me, Axis a, bool pure, int start, i
           Real diff = (dir * staff_extent[dir] + staff_padding
                        - dir * total_off
                        + dir * (staff_position - parent_position));
-          total_off += dir * std::max (diff, 0.0);
+          total_off += dir * max (diff, 0.0);
         }
     }
   return scm_from_double (total_off);
index 5244d33c9e6d58ba8a3da4ece88ff4467855b0bd..5b8183d96afd105f4aa32d3591318771f131beba 100644 (file)
@@ -127,9 +127,9 @@ Simple_spacer::add_rod (int l, int r, Real dist)
 
       return;
     }
-  force_ = std::max (force_, block_force);
+  force_ = max (force_, block_force);
   for (int i = l; i < r; i++)
-    springs_[i].set_blocking_force (std::max (block_force, springs_[i].blocking_force ()));
+    springs_[i].set_blocking_force (max (block_force, springs_[i].blocking_force ()));
 }
 
 Real
@@ -225,7 +225,7 @@ Simple_spacer::compress_line ()
   if (line_len_ > (1 + 1e-6) * cur_len)
     programming_error ("misuse of compress_line");
   vector<Spring> sorted_springs = springs_;
-  sort (sorted_springs.begin (), sorted_springs.end (), std::greater<Spring> ());
+  sort (sorted_springs.begin (), sorted_springs.end (), greater<Spring> ());
 
   /* inv_hooke is the total flexibility of currently-active springs */
   double inv_hooke = 0;
@@ -269,7 +269,7 @@ Simple_spacer::compress_line ()
 void
 Simple_spacer::add_spring (Spring const &sp)
 {
-  force_ = std::max (force_, sp.blocking_force ());
+  force_ = max (force_, sp.blocking_force ());
   springs_.push_back (sp);
 }
 
@@ -291,7 +291,7 @@ Simple_spacer::force_penalty (bool ragged) const
      but according to the amount of whitespace that is present after the end
      of the line. */
   if (ragged)
-    return std::max (0.0, line_len_ - configuration_length (0.0));
+    return max (0.0, line_len_ - configuration_length (0.0));
 
   /* Use a convex compression penalty. */
   Real f = force_;
index abcc6aaee312e0ee17dd3fada93277aabca9fbdd..e892776b61a39e6f4814eb350500ab706a45c4ee 100644 (file)
@@ -135,7 +135,7 @@ Simultaneous_music_iterator::pending_moment () const
   for (SCM s = children_list_; scm_is_pair (s); s = scm_cdr (s))
     {
       Music_iterator *it = unsmob<Music_iterator> (scm_car (s));
-      next = std::min (next, it->pending_moment ());
+      next = min (next, it->pending_moment ());
     }
 
   return next;
index 5dc217d3426217e5174b10699646fedbe2f8cee4..67fef4c51ac43bf1d240073375b43fb097372002 100644 (file)
@@ -87,13 +87,13 @@ Skyline_pair::print () const
 Real
 Skyline_pair::left () const
 {
-  return std::min (skylines_[UP].left (), skylines_[DOWN].left ());
+  return min (skylines_[UP].left (), skylines_[DOWN].left ());
 }
 
 Real
 Skyline_pair::right () const
 {
-  return std::max (skylines_[UP].right (), skylines_[DOWN].right ());
+  return max (skylines_[UP].right (), skylines_[DOWN].right ());
 }
 
 void
index 88e699a6eb760c2aa8a4a6032c98fba42d70c243..5ce66cb9991ff5a6013486cf45d0a14656fe2d42 100644 (file)
@@ -131,7 +131,7 @@ Building::precompute (Real start, Real start_height, Real end_height, Real end)
     // too steep to be stored in slope-intercept form, given round-off error
     {
       slope_ = 0.0;
-      y_intercept_ = std::max (start_height, end_height);
+      y_intercept_ = max (start_height, end_height);
     }
   else
     y_intercept_ = start_height - slope_ * start;
@@ -251,7 +251,7 @@ Skyline::internal_merge_skyline (list<Building> *sb, list<Building> *sc,
             }
           /* 'c' continues further, so move it into 'b' for the next pass. */
           b = c;
-          std::swap (sb, sc);
+          swap (sb, sc);
         }
       else /* b.end_ > c.end_ so finish with c */
         {
@@ -456,7 +456,7 @@ Skyline::Skyline (vector<Drul_array<Offset> > const &segments, Axis horizon_axis
       Offset left = seg[LEFT];
       Offset right = seg[RIGHT];
       if (left[horizon_axis] > right[horizon_axis])
-        std::swap (left, right);
+        swap (left, right);
 
       Real x1 = left[horizon_axis];
       Real x2 = right[horizon_axis];
@@ -671,10 +671,10 @@ Skyline::internal_distance (Skyline const &other, Real *touch_point) const
   Real touch = -infinity_f;
   while (i != buildings_.end () && j != other.buildings_.end ())
     {
-      Real end = std::min (i->end_, j->end_);
+      Real end = min (i->end_, j->end_);
       Real start_dist = i->height (start) + j->height (start);
       Real end_dist = i->height (end) + j->height (end);
-      dist = std::max (dist, std::max (start_dist, end_dist));
+      dist = max (dist, max (start_dist, end_dist));
 
       if (end_dist == dist)
         touch = end;
@@ -716,8 +716,8 @@ Skyline::max_height () const
   list<Building>::const_iterator i;
   for (i = buildings_.begin (); i != buildings_.end (); ++i)
     {
-      ret = std::max (ret, i->height (i->start_));
-      ret = std::max (ret, i->height (i->end_));
+      ret = max (ret, i->height (i->start_));
+      ret = max (ret, i->height (i->end_));
     }
 
   return sky_ * ret;
index 4bd0c7113959f92d21e29c19bf0e5f7b103c6356..aac2a97a0ec9dab09fda72ff593a86eb41191798 100644 (file)
@@ -122,7 +122,7 @@ fit_factor (Offset dz_unit, Offset dz_perp, Real close_to_edge_length,
 
       Real y = curve.get_other_coordinate (X_AXIS, p[X_AXIS]);
       if (y)
-        fit_factor = std::max (fit_factor, (p[Y_AXIS] / y));
+        fit_factor = max (fit_factor, (p[Y_AXIS] / y));
     }
   return fit_factor;
 }
@@ -154,7 +154,7 @@ Slur_configuration::generate_curve (Slur_score_state const &state,
   (control3 - control0).  */
 
   Real max_indent = len / 3.1;
-  indent = std::min (indent, max_indent);
+  indent = min (indent, max_indent);
 
   Real a1 = sqr (len) / 3.0;
   Real a2 = 0.75 * sqr (indent + len / 3.0);
@@ -184,7 +184,7 @@ Slur_configuration::generate_curve (Slur_score_state const &state,
   Real ff = fit_factor (dz_unit, dz_perp, state.parameters_.close_to_edge_length_,
                         curve, state.dir_, avoid);
 
-  height = std::max (height, std::min (height * ff, max_h));
+  height = max (height, min (height * ff, max_h));
 
   curve.control_[0] = attachment_[LEFT];
   curve.control_[1] = attachment_[LEFT] + dz_perp * height * state.dir_
@@ -258,7 +258,7 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
               Real hd = (head_dy)
                         ? (1 / fabs (head_dy) - 1 / state.parameters_.free_head_distance_)
                         : state.parameters_.head_encompass_penalty_;
-              hd = std::min (std::max (hd, 0.0), state.parameters_.head_encompass_penalty_);
+              hd = min (max (hd, 0.0), state.parameters_.head_encompass_penalty_);
 
               demerit += hd;
             }
@@ -273,7 +273,7 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
             {
 
               Real closest
-                = state.dir_ * std::max (state.dir_ * state.encompass_infos_[j].get_point (state.dir_), state.dir_ * line_y);
+                = state.dir_ * max (state.dir_ * state.encompass_infos_[j].get_point (state.dir_), state.dir_ * line_y);
               Real d = fabs (closest - y);
 
               convex_head_distances.push_back (d);
@@ -299,7 +299,7 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
 
       for (vsize j = 0; j < n; j++)
         {
-          min_dist = std::min (min_dist, convex_head_distances[j]);
+          min_dist = min (min_dist, convex_head_distances[j]);
           avg_distance += convex_head_distances[j];
         }
 
@@ -322,9 +322,9 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
       Real variance_penalty = state.parameters_.head_slur_distance_max_ratio_;
       if (min_dist > 0.0)
         variance_penalty
-          = std::min ((avg_distance / (min_dist + state.parameters_.absolute_closeness_measure_) - 1.0), variance_penalty);
+          = min ((avg_distance / (min_dist + state.parameters_.absolute_closeness_measure_) - 1.0), variance_penalty);
 
-      variance_penalty = std::max (variance_penalty, 0.0);
+      variance_penalty = max (variance_penalty, 0.0);
       variance_penalty *= state.parameters_.head_slur_distance_factor_;
 
       add_score (variance_penalty, "variance");
@@ -427,7 +427,7 @@ Slur_configuration::score_extra_encompass (Slur_score_state const &state)
       else
         programming_error ("unknown avoidance type");
 
-      dist = std::max (dist, 0.0);
+      dist = max (dist, 0.0);
 
       Real penalty = info.penalty_ * peak_around (0.1 * state.parameters_.extra_encompass_free_distance_,
                                                   state.parameters_.extra_encompass_free_distance_,
@@ -473,7 +473,7 @@ Slur_configuration::score_slopes (Slur_score_state const &state)
   Real slur_dy = slur_dz[Y_AXIS];
   Real demerit = 0.0;
 
-  demerit += std::max ((fabs (slur_dy / slur_dz[X_AXIS])
+  demerit += max ((fabs (slur_dy / slur_dz[X_AXIS])
                    - state.parameters_.max_slope_), 0.0)
              * state.parameters_.max_slope_factor_;
 
@@ -484,9 +484,9 @@ Slur_configuration::score_slopes (Slur_score_state const &state)
 
   if (!state.is_broken_)
     demerit += state.parameters_.steeper_slope_factor_
-               * (std::max (fabs (slur_dy) - max_dy, 0.0));
+               * (max (fabs (slur_dy) - max_dy, 0.0));
 
-  demerit += std::max ((fabs (slur_dy / slur_dz[X_AXIS])
+  demerit += max ((fabs (slur_dy / slur_dz[X_AXIS])
                    - state.parameters_.max_slope_), 0.0)
              * state.parameters_.max_slope_factor_;
 
index fe7a273cd0c93c6bd537af1353153b8c22eaffb4..58ad4873d933b704caff41b7ddca647be7bd42ec 100644 (file)
@@ -468,7 +468,7 @@ Slur_score_state::get_y_attachment_range () const
             slur_->warning ("slur trying to encompass an empty note column.");
           else
             end_ys[d] = dir_
-                        * std::max (std::max (dir_ * (base_attachments_[d][Y_AXIS]
+                        * max (max (dir_ * (base_attachments_[d][Y_AXIS]
                                             + parameters_.region_size_ * dir_),
                                     dir_ * (dir_ + nc_extent[dir_])),
                                dir_ * base_attachments_[-d][Y_AXIS]);
@@ -622,7 +622,7 @@ Slur_score_state::generate_avoid_offsets () const
         continue;
 
       Encompass_info inf (get_encompass_info (encompasses[i]));
-      Real y = dir_ * (std::max (dir_ * inf.head_, dir_ * inf.stem_));
+      Real y = dir_ * (max (dir_ * inf.head_, dir_ * inf.stem_));
 
       avoid.push_back (Offset (inf.x_, y + dir_ * parameters_.free_head_distance_));
     }
index ea3b4cf92283a785f3cf8fc5b1e1016446da2cdc..0e077ffbb127afacabf7ea455bb2162362a01a99 100644 (file)
@@ -365,7 +365,7 @@ Slur::outside_slur_callback (SCM grob, SCM offset_scm)
         }
     }
 
-  Real avoidance_offset = do_shift ? curve.minmax (X_AXIS, std::max (xext[LEFT], curve.control_[0][X_AXIS] + EPS), std::min (xext[RIGHT], curve.control_[3][X_AXIS] - EPS), dir) - yext[-dir] : 0.0;
+  Real avoidance_offset = do_shift ? curve.minmax (X_AXIS, max (xext[LEFT], curve.control_[0][X_AXIS] + EPS), min (xext[RIGHT], curve.control_[3][X_AXIS] - EPS), dir) - yext[-dir] : 0.0;
 
   return scm_from_double (offset + avoidance_offset);
 }
index 98d4a0f8785ca534803b1cc7a53730f212c53d6d..a3c08d29ba25dd4c65e35460db9ed9986bb77a0c 100644 (file)
@@ -34,6 +34,7 @@
 #else
 #include <strstream>
 #endif
+using namespace std;
 
 #include "file-name-map.hh"
 #include "international.hh"
@@ -81,7 +82,7 @@ gulp_file (const string &filename, int desired_size)
   int read_count = real_size;
 
   if (desired_size > 0)
-    read_count = std::min (read_count, desired_size);
+    read_count = min (read_count, desired_size);
 
   rewind (f);
 
@@ -174,8 +175,8 @@ Source_file::get_istream ()
       else
         {
           istream_ = new istringstream ("");
-          istream_->setstate (std::ios::eofbit);
-          //      istream_->set (std::ios::eofbit);
+          istream_->setstate (ios::eofbit);
+          //      istream_->set (ios::eofbit);
         }
     }
   return istream_;
@@ -329,7 +330,7 @@ Source_file::get_line (char const *pos_str0) const
   /* this will find the '\n' character at the end of our line */
   vsize lo = lower_bound (newline_locations_,
                           pos_str0,
-                          std::less<char const *> ());
+                          less<char const *> ());
 
   /* the return value will be indexed from 1 */
   return lo + 1 + line_offset_;
index 4ed797d673b5227e01954848c0fa037259d8ae88..ff245aa30fdd438b17efced4c3fa1ebc64eb28d2 100644 (file)
@@ -40,7 +40,7 @@
 Spring
 Spacing_spanner::standard_breakable_column_spacing (Grob *me, Item *l, Item *r, Spacing_options const *options)
 {
-  Real min_dist = std::max (0.0, Paper_column::minimum_distance (l, r));
+  Real min_dist = max (0.0, Paper_column::minimum_distance (l, r));
 
   if (Paper_column::is_breakable (l) && Paper_column::is_breakable (r))
     {
@@ -136,13 +136,13 @@ Spacing_spanner::note_spacing (Grob * /* me */,
 
   if (Moment *measure_len = get_measure_length (lc))
     {
-      delta_t = std::min (delta_t, *measure_len);
+      delta_t = min (delta_t, *measure_len);
 
       /*
         The following is an extra safety measure, such that
         the length of a mmrest event doesn't cause havoc.
       */
-      shortest_playing_len = std::min (shortest_playing_len, *measure_len);
+      shortest_playing_len = min (shortest_playing_len, *measure_len);
     }
 
   Spring ret;
@@ -157,7 +157,7 @@ Spacing_spanner::note_spacing (Grob * /* me */,
       ret = Spring (fraction * len, fraction * min);
 
       // Stretch proportional to the space between canonical bare noteheads
-      ret.set_inverse_stretch_strength (fraction * std::max (0.1, (len - min)));
+      ret.set_inverse_stretch_strength (fraction * max (0.1, (len - min)));
     }
   else if (delta_t.grace_part_)
     {
index 00e6e125dd4bb0b37fda9539106b57e3064fdaa8..12859cb1915a0c05b2c132046ac9cd0879b2fed5 100644 (file)
@@ -161,13 +161,13 @@ Spacing_spanner::set_distances_for_loose_col (Grob *me, Grob *c,
               Spring base = note_spacing (me, lc, rc, options);
               Spring spring = Note_spacing::get_spacing (sp, rc, base, options->increment_);
 
-              dists[d] = std::max (dists[d], spring.min_distance ());
+              dists[d] = max (dists[d], spring.min_distance ());
             }
           else if (has_interface<Staff_spacing> (sp))
             {
               Spring spring = Staff_spacing::get_spacing (sp, rc, 0.0);
 
-              dists[d] = std::max (dists[d], spring.min_distance ());
+              dists[d] = max (dists[d], spring.min_distance ());
             }
           else
             programming_error ("Subversive spacing wish");
index 7efa1e649cc7bc3e13c463ec765ccaac85b2b3db..244a55b376e5fee3f4161d92d05d4ef502ed0705 100644 (file)
@@ -222,7 +222,7 @@ Spacing_engraver::stop_translation_timestep ()
       if (ev)
         {
           Moment m = get_event_length (ev);
-          shortest_playing = std::min (shortest_playing, m);
+          shortest_playing = min (shortest_playing, m);
         }
     }
   Moment starter;
@@ -233,13 +233,13 @@ Spacing_engraver::stop_translation_timestep ()
       Moment m = get_event_length (now_durations_[i].info_.event_cause ());
       if (m.to_bool ())
         {
-          starter = std::min (starter, m);
+          starter = min (starter, m);
           playing_durations_.insert (now_durations_[i]);
         }
     }
   now_durations_.clear ();
 
-  shortest_playing = std::min (shortest_playing, starter);
+  shortest_playing = min (shortest_playing, starter);
 
   assert (starter.to_bool ());
   SCM sh = shortest_playing.smobbed_copy ();
index 8f9875ff9795ae176e009c073952df71fbe18503..bcad9d741caf6316c873d661e325c190e7937283 100644 (file)
@@ -98,7 +98,7 @@ Spacing_interface::minimum_distance (Grob *me, Grob *right)
 {
   Drul_array<Skyline> skylines = Spacing_interface::skylines (me, right);
 
-  return std::max (0.0, skylines[LEFT].distance (skylines[RIGHT]));
+  return max (0.0, skylines[LEFT].distance (skylines[RIGHT]));
 }
 
 /*
index 32ffe220322990408a2c00a19222bc4142b7983c..462a793b062cd57d718a7cd089008e6209c656eb 100644 (file)
@@ -175,8 +175,8 @@ set_loose_columns (System *which, Column_x_positions const *posns)
             }
 
           Real loose_col_horizontal_length = loose_col->extent (loose_col, X_AXIS).length ();
-          base_note_space = std::max (base_note_space, loose_col_horizontal_length);
-          tight_note_space = std::max (tight_note_space, loose_col_horizontal_length);
+          base_note_space = max (base_note_space, loose_col_horizontal_length);
+          tight_note_space = max (tight_note_space, loose_col_horizontal_length);
 
           clique_spacing.push_back (base_note_space);
           clique_tight_spacing.push_back (tight_note_space);
@@ -195,7 +195,7 @@ set_loose_columns (System *which, Column_x_positions const *posns)
           sum_tight_spacing += clique_tight_spacing[j];
           sum_spacing += clique_spacing[j];
         }
-      Real scale_factor = std::max (0.0, std::min (1.0, (permissible_distance - left_padding - sum_tight_spacing) / (sum_spacing - sum_tight_spacing)));
+      Real scale_factor = max (0.0, min (1.0, (permissible_distance - left_padding - sum_tight_spacing) / (sum_spacing - sum_tight_spacing)));
       for (vsize j = clique.size () - 2; j > 0; j--)
         {
           Paper_column *clique_col = dynamic_cast<Paper_column *> (clique[j]);
index 12f18e865fedbf6adba8575b8d2db74bfffe969f..7ee6e3ef956a6d0242b5bda00db19da38979a5db 100644 (file)
@@ -119,7 +119,7 @@ Spacing_spanner::calc_common_shortest_duration (SCM grob)
           SCM st = cols[i]->get_property ("shortest-starter-duration");
           Moment this_shortest = *unsmob<Moment> (st);
           assert (this_shortest.to_bool ());
-          shortest_in_measure = std::min (shortest_in_measure, this_shortest.main_part_);
+          shortest_in_measure = min (shortest_in_measure, this_shortest.main_part_);
         }
       else if (!shortest_in_measure.is_infinity ()
                && Paper_column::is_breakable (cols[i]))
@@ -167,7 +167,7 @@ Spacing_spanner::calc_common_shortest_duration (SCM grob)
     d = m->main_part_;
 
   if (max_idx != VPOS)
-    d = std::min (d, durations[max_idx]);
+    d = min (d, durations[max_idx]);
 
   return Moment (d).smobbed_copy ();
 }
@@ -246,7 +246,7 @@ set_column_rods (vector<Grob *> const &cols, Real padding)
 
       /* min rather than max because stickout will be negative if the right-hand column
          sticks out a lot to the left */
-      Real stickout = std::min (skys ? (*skys)[LEFT].max_height () : 0.0,
+      Real stickout = min (skys ? (*skys)[LEFT].max_height () : 0.0,
                            Separation_item::conditional_skyline (r, cols[i - 1]).max_height ());
 
       Real prev_distances = 0.0;
@@ -263,7 +263,7 @@ set_column_rods (vector<Grob *> const &cols, Real padding)
           Item *lb = l->find_prebroken_piece (RIGHT);
 
           Real dist = Separation_item::set_distance (l, r, padding);
-          distances[i] = std::max (distances[i], dist - prev_distances);
+          distances[i] = max (distances[i], dist - prev_distances);
 
           if (lb)
             {
@@ -272,7 +272,7 @@ set_column_rods (vector<Grob *> const &cols, Real padding)
               // right than the unbroken version, by extending farther and/or
               // nesting more closely;
               if (j == i - 1) // check this, the first time we see each lb.
-                overhangs[j] = std::max (overhangs[j],
+                overhangs[j] = max (overhangs[j],
                                     lb->extent (lb, X_AXIS)[RIGHT]
                                     + distances[i] - dist);
             }
@@ -283,7 +283,7 @@ set_column_rods (vector<Grob *> const &cols, Real padding)
 
           prev_distances += distances[j];
         }
-      overhangs[i] = std::max (overhangs[i],
+      overhangs[i] = max (overhangs[i],
                           overhangs[i - 1] - distances[i]);
     }
 }
@@ -420,7 +420,7 @@ Spacing_spanner::musical_column_spacing (Grob *me,
       if (Paper_column::is_extraneous_column_from_ligature (left_col))
         spring.set_distance (spring.min_distance ());
       else
-        spring.set_distance (std::max (left_col->extent (left_col, X_AXIS)[RIGHT],
+        spring.set_distance (max (left_col->extent (left_col, X_AXIS)[RIGHT],
                                   spring.min_distance ()));
 
       spring.set_inverse_stretch_strength (1.0);
index 5dfc3c804ce1792612d3563deb695378ec687e5d..105ae73d1ddf6548a6a6ec2ba711b92741c51676 100644 (file)
@@ -86,8 +86,8 @@ Spring::update_blocking_force ()
 void
 Spring::operator *= (Real r)
 {
-  distance_ = std::max (min_distance_, distance_ * r);
-  inverse_compress_strength_ = std::max (0.0, distance_ - min_distance_);
+  distance_ = max (min_distance_, distance_ * r);
+  inverse_compress_strength_ = max (0.0, distance_ - min_distance_);
   inverse_stretch_strength_ *= r;
   update_blocking_force ();
 }
@@ -113,13 +113,13 @@ merge_springs (vector<Spring> const &springs)
       avg_distance += springs[i].distance ();
       avg_stretch += springs[i].inverse_stretch_strength ();
       avg_compress += 1 / springs[i].inverse_compress_strength ();
-      min_distance = std::max (springs[i].min_distance (), min_distance);
+      min_distance = max (springs[i].min_distance (), min_distance);
     }
 
   avg_stretch /= Real (springs.size ());
   avg_compress /= Real (springs.size ());
   avg_distance /= Real (springs.size ());
-  avg_distance = std::max (min_distance + 0.3, avg_distance);
+  avg_distance = max (min_distance + 0.3, avg_distance);
 
   Spring ret = Spring (avg_distance, min_distance);
   ret.set_inverse_stretch_strength (avg_stretch);
@@ -155,7 +155,7 @@ Spring::set_min_distance (Real d)
 void
 Spring::ensure_min_distance (Real d)
 {
-  set_min_distance (std::max (d, min_distance_));
+  set_min_distance (max (d, min_distance_));
 }
 
 void
@@ -217,7 +217,7 @@ Spring::set_default_stretch_strength ()
 Real
 Spring::length (Real f) const
 {
-  Real force = std::max (f, blocking_force_);
+  Real force = max (f, blocking_force_);
   Real inv_k = force < 0.0 ? inverse_compress_strength_ : inverse_stretch_strength_;
 
   if (isinf (force))
@@ -229,6 +229,6 @@ Spring::length (Real f) const
   // There is a corner case here: if min_distance_ is larger than
   // distance_ but the spring is fixed, then inv_k will be zero
   // and we need to make sure that we return min_distance_.
-  return std::max (min_distance_, distance_ + force * inv_k);
+  return max (min_distance_, distance_ + force * inv_k);
 }
 
index 52dedd5d77605a4c07929e92971e10fe7c69a3e1..d693feaee1056fd5d293f27eff0e7d873765e66f 100644 (file)
@@ -20,6 +20,7 @@
 #include "staff-spacing.hh"
 
 #include <cstdio>
+using namespace std;
 
 #include "international.hh"
 #include "paper-column.hh"
@@ -61,7 +62,7 @@ Staff_spacing::optical_correction (Grob *me, Grob *g, Interval bar_height)
 
           stem_posns.intersect (bar_height);
 
-          ret = std::min (abs (stem_posns.length () / 7.0), 1.0);
+          ret = min (abs (stem_posns.length () / 7.0), 1.0);
           ret *= robust_scm2double (me->get_property ("stem-spacing-correction"), 1);
         }
     }
@@ -105,7 +106,7 @@ Staff_spacing::next_notes_correction (Grob *me,
   Real max_optical = 0.0;
 
   for (vsize i = 0; i < note_columns.size (); i++)
-    max_optical = std::max (max_optical, optical_correction (me, note_columns[i], bar_size));
+    max_optical = max (max_optical, optical_correction (me, note_columns[i], bar_size));
 
   return max_optical;
 }
@@ -180,10 +181,10 @@ Staff_spacing::get_spacing (Grob *me, Grob *right_col, Real situational_space)
       ideal = fixed + distance / 2;
     }
   else if (scm_is_eq (type, ly_symbol2scm ("minimum-space")))
-    ideal = last_ext[LEFT] + std::max (last_ext.length (), distance);
+    ideal = last_ext[LEFT] + max (last_ext.length (), distance);
   else if (scm_is_eq (type, ly_symbol2scm ("minimum-fixed-space")))
     {
-      fixed = last_ext[LEFT] + std::max (last_ext.length (), distance);
+      fixed = last_ext[LEFT] + max (last_ext.length (), distance);
       ideal = fixed;
     }
 
@@ -200,13 +201,13 @@ Staff_spacing::get_spacing (Grob *me, Grob *right_col, Real situational_space)
   Real min_dist = Paper_column::minimum_distance (left_col, right_col);
 
   /* ensure that the "fixed" distance will leave a gap of at least 0.3 ss. */
-  Real min_dist_correction = std::max (0.0, 0.3 + min_dist - fixed);
+  Real min_dist_correction = max (0.0, 0.3 + min_dist - fixed);
   fixed += min_dist_correction;
-  ideal = std::max (ideal, fixed);
+  ideal = max (ideal, fixed);
 
   Spring ret (ideal, min_dist);
-  ret.set_inverse_stretch_strength (std::max (0.0, stretchability));
-  ret.set_inverse_compress_strength (std::max (0.0, ideal - fixed));
+  ret.set_inverse_stretch_strength (max (0.0, stretchability));
+  ret.set_inverse_compress_strength (max (0.0, ideal - fixed));
   return ret;
 }
 
index 1c44a67924b2e13319ac58a443aa3e6322201de0..f88b41c450be6095b6158bf827a6275b50804805 100644 (file)
@@ -180,7 +180,7 @@ Stem_tremolo::pure_height (SCM smob, SCM, SCM)
   int beam_count = Stem::beam_multiplicity (stem).length () + 1;
   Real beam_translation = get_beam_translation (me);
 
-  ph = ph - dir * std::max (beam_count, 1) * beam_translation;
+  ph = ph - dir * max (beam_count, 1) * beam_translation;
   ph = ph - ph.center ();
 
   return ly_interval2scm (ph);
@@ -304,14 +304,14 @@ Stem_tremolo::y_offset (Grob *me, bool pure)
       Stem_info si = Stem::get_stem_info (stem);
       ph[-dir] = si.shortest_y_;
 
-      return (ph - dir * std::max (beam_count, 1) * beam_translation)[dir] - dir * 0.5 * me->pure_y_extent (me, 0, INT_MAX).length ();
+      return (ph - dir * max (beam_count, 1) * beam_translation)[dir] - dir * 0.5 * me->pure_y_extent (me, 0, INT_MAX).length ();
     }
 
   Real end_y
     = (pure
        ? stem->pure_y_extent (stem, 0, INT_MAX)[dir]
        : stem->extent (stem, Y_AXIS)[dir])
-      - dir * std::max (beam_count, 1) * beam_translation
+      - dir * max (beam_count, 1) * beam_translation
       - Stem::beam_end_corrective (stem);
 
   if (!beam && Stem::duration_log (stem) >= 3)
index 9d32e0b625d4a83ac7a306d37d39a9e9b477c425..a8105c9402adfe132fe1a3ebc6c636a8c273c321 100644 (file)
@@ -41,6 +41,7 @@
 #include "spanner.hh"
 
 #include <cmath>                // rint
+using namespace std;
 
 #include "beam.hh"
 #include "directional-element-interface.hh"
@@ -94,7 +95,7 @@ Stem::get_beaming (Grob *me, Direction d)
   SCM lst = index_get_cell (pair, d);
 
   int len = scm_ilength (lst);
-  return std::max (len, 0);
+  return max (len, 0);
 }
 
 Interval
@@ -154,7 +155,7 @@ Stem::set_stem_positions (Grob *me, Real se)
 
           height[-d] = (height[d] - d
                         * (0.5 * beam_thickness
-                           + beam_translation * std::max (0, (beam_count - 1))
+                           + beam_translation * max (0, (beam_count - 1))
                            + stemlet_length));
         }
       else if (!stemlet && beam)
@@ -259,7 +260,7 @@ Stem::note_head_positions (Grob *me, bool filter)
       ps.push_back (p);
     }
 
-  vector_sort (ps, std::less<int> ());
+  vector_sort (ps, less<int> ());
   return ps;
 }
 
@@ -344,8 +345,8 @@ Stem::internal_pure_height (Grob *me, bool calc_beam)
       for (vsize i = 0; i < my_stems.size (); i++)
         {
           coords.push_back (my_stems[i]->pure_relative_y_coordinate (common, 0, INT_MAX));
-          min_pos = std::min (min_pos, coords[i]);
-          max_pos = std::max (max_pos, coords[i]);
+          min_pos = min (min_pos, coords[i]);
+          max_pos = max (max_pos, coords[i]);
         }
       for (vsize i = 0; i < heights.size (); i++)
         {
@@ -430,7 +431,7 @@ Stem::internal_calc_stem_end_position (Grob *me, bool calc_beam)
     {
       SCM sshorten = ly_assoc_get (ly_symbol2scm ("stem-shorten"), details, SCM_EOL);
       SCM scm_shorten = scm_is_pair (sshorten)
-                        ? robust_list_ref (std::max (duration_log (me) - 2, 0), sshorten) : SCM_EOL;
+                        ? robust_list_ref (max (duration_log (me) - 2, 0), sshorten) : SCM_EOL;
       Real shorten_property = 2 * robust_scm2double (scm_shorten, 0);
       /*  change in length between full-size and shortened stems is executed gradually.
           "transition area" = stems between full-sized and fully-shortened.
@@ -442,14 +443,14 @@ Stem::internal_calc_stem_end_position (Grob *me, bool calc_beam)
           (but not greater than 1/2 and not smaller than 1/4).
           value 6 is heuristic; it determines the suggested transition slope steepnesas.
           */
-      Real shortening_step = std::min (std::max (0.25, (shorten_property / 6)), 0.5);
+      Real shortening_step = min (max (0.25, (shorten_property / 6)), 0.5);
       /*  Shortening of unflagged stems should begin on the first stem that sticks
           more than 1 staffspace (2 units) out of the staff.
           Shortening of flagged stems begins in the same moment as unflagged ones,
           but not earlier than on the middle line note.
           */
-      Real which_step = (std::min (1.0, quarter_stem_length - (2 * staff_rad) - 2.0)) + abs (hp[dir]);
-      Real shorten = std::min (std::max (0.0, (shortening_step * which_step)), shorten_property);
+      Real which_step = (min (1.0, quarter_stem_length - (2 * staff_rad) - 2.0)) + abs (hp[dir]);
+      Real shorten = min (max (0.0, (shortening_step * which_step)), shorten_property);
 
       length -= shorten;
     }
@@ -483,7 +484,7 @@ Stem::internal_calc_stem_end_position (Grob *me, bool calc_beam)
           if (dir == UP)
             minlen += beam_trans;
         }
-      length = std::max (length, minlen + 1.0);
+      length = max (length, minlen + 1.0);
     }
 
   Real stem_end = dir ? hp[dir] + dir * length : 0;
@@ -743,7 +744,7 @@ Stem::internal_height (Grob *me, bool calc_beam)
 
   Real half_space = Staff_symbol_referencer::staff_space (me) * 0.5;
 
-  Interval stem_y = Interval (std::min (y1, y2), std::max (y2, y1)) * half_space;
+  Interval stem_y = Interval (min (y1, y2), max (y2, y1)) * half_space;
 
   return stem_y;
 }
@@ -884,7 +885,7 @@ Stem::print (SCM smob)
 
   Real half_space = Staff_symbol_referencer::staff_space (me) * 0.5;
 
-  Interval stem_y = Interval (std::min (y1, y2), std::max (y2, y1)) * half_space;
+  Interval stem_y = Interval (min (y1, y2), max (y2, y1)) * half_space;
 
   stem_y[dir] -= beam_end_corrective (me);
 
@@ -1048,7 +1049,7 @@ Stem::calc_stem_info (SCM smob)
                               /* stem only extends to center of beam */
                               - 0.5 * beam_thickness;
 
-  ideal_length = std::max (ideal_length, ideal_minimum_length);
+  ideal_length = max (ideal_length, ideal_minimum_length);
 
   /* Convert to Y position, calculate for dir == UP */
   Real note_start
@@ -1078,9 +1079,9 @@ Stem::calc_stem_info (SCM smob)
     {
       /* Highest beam of (UP) beam must never be lower than middle
          staffline */
-      ideal_y = std::max (ideal_y, 0.0);
+      ideal_y = max (ideal_y, 0.0);
       /* Lowest beam of (UP) beam must never be lower than second staffline */
-      ideal_y = std::max (ideal_y, (-staff_space
+      ideal_y = max (ideal_y, (-staff_space
                                - beam_thickness + height_of_my_beams));
     }
 
@@ -1096,7 +1097,7 @@ Stem::calc_stem_info (SCM smob)
           * length_fraction)
        : 0.0);
 
-  Real minimum_length = std::max (minimum_free, height_of_my_trem)
+  Real minimum_length = max (minimum_free, height_of_my_trem)
                         + height_of_my_beams
                         /* stem only extends to center of beam */
                         - 0.5 * beam_thickness;
index 9a23d2f38c4ec777983dc2e364affdcd9f15bee5..a6e6d7c84b14114a862a96f16f57f2fbc16737ac 100644 (file)
@@ -55,6 +55,7 @@ when this transforms a point (x,y), the point is written as matrix:
 #include "skyline.hh"
 #include "skyline-pair.hh"
 #include "spanner.hh"
+using namespace std;
 
 using std::string;
 using std::vector;
@@ -186,8 +187,8 @@ make_draw_line_boxes (vector<Box> &boxes, vector<Drul_array<Offset> > &buildings
   //////////////////////
   if (x1 < x0)
     {
-      std::swap (x0, x1);
-      std::swap (y0, y1);
+      swap (x0, x1);
+      swap (y0, y1);
     }
   Offset left (x0, y0);
   Offset right (x1, y1);
@@ -280,7 +281,7 @@ make_partial_ellipse_boxes (vector<Box> &boxes,
   Offset ep (cos (end) * x_rad, sin (end) * y_rad);
   //////////////////////
   Drul_array<vector<Offset> > points;
-  int quantization = std::max (1, (int) (((x_rad * trans.xx) + (y_rad * trans.yy)) * M_PI / QUANTIZATION_UNIT));
+  int quantization = max (1, (int) (((x_rad * trans.xx) + (y_rad * trans.yy)) * M_PI / QUANTIZATION_UNIT));
   for (DOWN_and_UP (d))
     {
       for (vsize i = 0; i < 1 + (vsize) quantization; i++)
@@ -777,7 +778,7 @@ make_glyph_string_boxes (vector<Box> &boxes,
         {
           assert (abs (xlen - ylen) < 10e-3);
 
-          Real scale_factor = std::max (xlen, ylen);
+          Real scale_factor = max (xlen, ylen);
           // the three operations below move the stencil from its original coordinates to current coordinates
           pango_matrix_translate (&transcopy, kerned_bbox[X_AXIS][LEFT],
                                   kerned_bbox[Y_AXIS][DOWN] - real_bbox[Y_AXIS][DOWN]);
index 7c1c918655c1d05b87aae6b0c3f682d508323c18..34b68d9b3a38c6367c8b9fc80362523aad1d79fe 100644 (file)
@@ -249,7 +249,7 @@ Stencil::align_to (Axis a, Real x)
 /*  See scheme Function.  */
 
 // Any stencil that is empty in the orthogonal axis is spacing.
-// Spacing is not subjected to the std::max (0) rule and can thus be
+// Spacing is not subjected to the max (0) rule and can thus be
 // negative.
 
 void
index 7eb8c998718a9810bd0258c57282c096eec70d8f..e5460a0f0485521356c5f5a1dfeecc60379b5084 100644 (file)
@@ -154,7 +154,7 @@ System_start_delimiter::staff_brace (Grob *me, Real y)
 
   int
   lo = 0;
-  int hi = std::max ((int) fm->count () - 1, 2);
+  int hi = max ((int) fm->count () - 1, 2);
 
   /* do a binary search for each Y, not very efficient, but passable?  */
   Box b;
index 700ec999940d10dab4fe11f7c4bc239608942837..51ea30da01e421219ba32f6ea2309176b4a1945a 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "engraver.hh"
 
+using namespace std;
 
 #include "articulations.hh"
 #include "duration.hh"
index defbe19668431b26a7c8f77ef3e42dce2d4f4f13..fbc5f0c3b2cc7a5394310f3deccd4018c4462cf5 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "engraver.hh"
 
+using namespace std;
 
 #include "context.hh"
 #include "item.hh"
index b8ec1d6c88f31b7077ff5caed0f83724b611728d..7c5ce5019c0fe76b1c1d8ecf7117d6037953d862 100644 (file)
@@ -47,7 +47,7 @@ replace_special_characters (string &str, SCM props)
   int max_length = 0;
   for (SCM s = replacement_alist; scm_is_pair (s); s = scm_cdr (s))
     {
-      max_length = std::max (max_length, scm_to_int
+      max_length = max (max_length, scm_to_int
                         (scm_string_length (scm_caar (s))));
     }
 
index 1fb17a6f588cbc344a62c78fa6f7b34295f108b4..b814e4c442e5e607ff79ca249ca548cff09852e4 100644 (file)
@@ -32,6 +32,7 @@
 #include "tie-formatting-problem.hh"
 #include "tie-configuration.hh"
 
+using namespace std;
 using std::vector;
 
 void
index d4a7be2cfb7cbab6117edceaf08c63ff3ed7667b..6a5e62fde135c3c181810bd2dab9863ca7d70c91 100644 (file)
@@ -284,7 +284,7 @@ Tie_formatting_problem::set_chord_outline (vector<Item *> bounds,
   for (vsize i = 0; i < bounds.size (); i++)
     ranks.push_back (bounds[i]->get_column ()->get_rank ());
 
-  vector_sort (ranks, std::less<int> ());
+  vector_sort (ranks, less<int> ());
   uniq (ranks);
 
   for (vsize i = 0; i < ranks.size (); i++)
@@ -481,7 +481,7 @@ Tie_formatting_problem::generate_configuration (int pos, Direction dir,
     }
 
   if (y_tune
-      && std::max (fabs (get_head_extent (columns[LEFT], LEFT, Y_AXIS)[dir] - y),
+      && max (fabs (get_head_extent (columns[LEFT], LEFT, Y_AXIS)[dir] - y),
               fabs (get_head_extent (columns[RIGHT], RIGHT, Y_AXIS)[dir] - y)) < 0.25
       && !Staff_symbol_referencer::on_line (details_.staff_symbol_referencer_, pos))
     {
@@ -577,7 +577,7 @@ Tie_formatting_problem::generate_configuration (int pos, Direction dir,
             continue;
 
           conf->attachment_x_[d]
-            = d * std::min (d * conf->attachment_x_[d],
+            = d * min (d * conf->attachment_x_[d],
                        d * (get_stem_extent (conf->column_ranks_[d], d, X_AXIS)[-d] - d * details_.stem_gap_));
         }
     }
@@ -625,7 +625,7 @@ Tie_formatting_problem::score_aptitude (Tie_configuration *conf,
     }
 
   {
-    Real relevant_dist = std::max (fabs (curve_y - tie_y) - 0.5, 0.0);
+    Real relevant_dist = max (fabs (curve_y - tie_y) - 0.5, 0.0);
     Real p = details_.vertical_distance_penalty_factor_ * convex_amplifier (1.0, 0.9, relevant_dist);
     if (ties_conf)
       ties_conf->add_tie_score (p, tie_idx, "vdist");
index 4a8487adc5f0163ae45421bb31b2c43d4e2633c0..1bad21ba405f513e820c258f056cd3621ea65c20 100644 (file)
@@ -238,7 +238,7 @@ Tuplet_bracket::calc_x_positions (SCM smob)
           if (to_boolean (me->get_property ("full-length-to-extent")))
             coord = robust_relative_extent (bounds[d], commonx, X_AXIS)[LEFT];
 
-          coord = std::max (coord, x_span[LEFT]);
+          coord = max (coord, x_span[LEFT]);
 
           x_span[d] = coord - padding;
         }
index ad0d3c7361ff842924084a96545c90e1e6ccf309..c43e630c4384e51f4c0acf44a158918fb5467df8 100644 (file)
@@ -92,7 +92,7 @@ Moment
 Tuplet_iterator::pending_moment () const
 {
   Moment next_mom = Music_wrapper_iterator::pending_moment ();
-  next_mom = std::min (next_mom, next_split_mom_);
+  next_mom = min (next_mom, next_split_mom_);
 
   return next_mom;
 }
@@ -110,7 +110,7 @@ Tuplet_iterator::process (Moment m)
       if (m.main_part_ < music_get_length ().main_part_)
         {
           spanner_duration_ =
-            std::min (music_get_length () - next_split_mom_, spanner_duration_);
+            min (music_get_length () - next_split_mom_, spanner_duration_);
           tuplet_handler_.set_context (get_outlet ());
           report_event (create_event (START));
 
index a28458b2b8857c8b7aa6fda28f81eb078b78e35a..df970939886ff281cdec753b7eef19fb00234173 100644 (file)
@@ -342,7 +342,7 @@ count_beams_not_touching_stem (SCM beaming)
         ++count;
     }
 
-  return std::max (0, count - 1);
+  return max (0, count - 1);
 }
 
 MAKE_SCHEME_CALLBACK (Tuplet_number, calc_y_offset, 1);
@@ -418,8 +418,8 @@ Tuplet_number::calc_y_offset (SCM smob)
                   : staff_ext_y[DOWN] > ref_stem_ext[UP];
       if (move)
         {
-          Interval ledger_domain = Interval (std::min (staff_ext_y[UP], ref_stem_ext[UP]),
-                                             std::max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
+          Interval ledger_domain = Interval (min (staff_ext_y[UP], ref_stem_ext[UP]),
+                                             max (staff_ext_y[DOWN], ref_stem_ext[DOWN]));
           Interval num_y (me->extent (commony, Y_AXIS));
           num_y.translate (y_offset);
           Interval num_ledger_overlap (num_y);
index 36959d0518b28f59c8a8d833a0a2be24ce4ec441..f0e14849e8d58e79c509ede7bab10434c71547ca 100644 (file)
@@ -732,7 +732,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
   add_mora_column (prev_primitive->get_column ());
 
 #if 0 // experimental code to collapse spacing after ligature
-  /* TODO: set to std::max (old/new spacing-increment), since other
+  /* TODO: set to max (old/new spacing-increment), since other
      voices/staves also may want to set this property. */
   Item *first_primitive = dynamic_cast<Item *> (primitives[0].grob ());
   Paper_column *paper_column = first_primitive->get_column ();
index c8be2880132f53aa32d1a93b55d33041883522fe..eb38442c3ff5f9ba4459229fee61c59731f8b838 100644 (file)
@@ -108,7 +108,7 @@ vaticana_brew_flexa (Grob *me,
    */
   Real left_height
     = right_height
-      + std::min (0.12 * abs (interval), 0.3) * staff_space;
+      + min (0.12 * abs (interval), 0.3) * staff_space;
 
   /*
    * Compensate optical illusion regarding vertical position of left
index 65e57ea3b179c1d09878379e5cb3c3a98eaba0fd..b135e8e1983c876186540cfe19da3d0ec5f8cdc8 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include <cstring>
+using namespace std;
 
 #include "warn.hh"
 #include "font-interface.hh"