]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/lily-guile.hh
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / include / lily-guile.hh
index 34578511b8388700b38f7c4bacfe02605ded908f..a014e018a6b4cbba32d35a0579d53157037b08a8 100644 (file)
     A ly_B2A (B b);  */
 
 SCM ly_last (SCM list);
-string ly_scm_write_string (SCM s);
+std::string ly_scm_write_string (SCM s);
 SCM ly_deep_copy (SCM);
 SCM ly_truncate_list (int k, SCM lst);
 
-string gulp_file_to_string (const string &fn, bool must_exist, int size);
+std::string gulp_file_to_string (const std::string &fn, bool must_exist, int size);
 
-SCM ly_string2scm (string const &s);
-string ly_scm2string (SCM s);
-string ly_symbol2string (SCM);
-string robust_symbol2string (SCM, const string&);
+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&);
 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);
-string robust_scm2string (SCM, const string&);
+std::string robust_scm2string (SCM, const std::string&);
 Rational robust_scm2rational (SCM, Rational);
-vector<Real> ly_scm2floatvector (SCM);
-SCM ly_floatvector2scm (vector<Real> v);
+std::vector<Real> ly_scm2floatvector (SCM);
+SCM ly_floatvector2scm (std::vector<Real> v);
 
 SCM ly_quote_scm (SCM s);
 bool type_check_assignment (SCM val, SCM sym, SCM type_symbol);
-string print_scm_val (SCM val);
+std::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 (string);
+void read_lily_scm_file (std::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 (vector<T> const &src)
+ly_cxx_vector_to_list (std::vector<T> const &src)
 {
   SCM l = SCM_EOL;
   for (vsize i = src.size (); i--;)
@@ -211,8 +211,8 @@ ly_cxx_vector_to_list (vector<T> const &src)
   return l;
 }
 
-SCM ly_offsets2scm (vector<Offset> os);
-vector<Offset> ly_scm2offsets (SCM s);
+SCM ly_offsets2scm (std::vector<Offset> os);
+std::vector<Offset> ly_scm2offsets (SCM s);
 
 /* For backward compatability with Guile 1.8 */
 #if !HAVE_GUILE_HASH_FUNC