]> git.donarmstrong.com Git - lilypond.git/commitdiff
''
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 17 May 2002 13:01:21 +0000 (13:01 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 17 May 2002 13:01:21 +0000 (13:01 +0000)
ChangeLog
Documentation/user/invoking.itexi
flower/include/pointer.hh [deleted file]
flower/include/pointer.tcc [deleted file]
flower/include/tuple.hh [deleted file]
lily/lily-guile.cc
lily/main.cc
scm/lily.scm

index 12e8f899a18444ab93bd8d4e8e08662aaebdde1b..e61a6645f7ec6ea64851cb0f31df20bde1d9d7dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2002-05-17  Han-Wen  <hanwen@cs.uu.nl>
 
+       * scm/lily.scm (ly-load): show SCM filenames if verbose.
+
+       * lily/lily-guile.cc (init_functions): add ly-verbose function.
+
+       * lily/main.cc (setup_paths): remove LILYINCLUDE support. 
+
+       * flower/include/{pointer,tuple}*: removed.
+
+       * VERSION: released 1.5.56
+       
        * scm/music-functions.scm (check-start-chords): function to check
        for chords without \context. Apply automatically from parser.
 
index 23099a43f1903572848a71a285b9ac3218022c51..36a219557f8ee20cca214e121cc57014215572ab 100644 (file)
@@ -97,9 +97,6 @@ settings from within Scheme .}
 @section Environment variables
 
 @table @code
-@item LILYINCLUDE
-additional directories for finding lilypond data.  The
-format is like the format of @file{PATH}.
 @item LILYPONDPREFIX
 This specifies a directory where locale messages and
 data files will be looked up by default. The directory should contain
diff --git a/flower/include/pointer.hh b/flower/include/pointer.hh
deleted file mode 100644 (file)
index 5ff3582..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
-  pointer.hh -- declare P
-
-  source file of the Flower Library
-
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-
-#ifndef POINTER_HH
-#define POINTER_HH
-
-#error
-
-/** P<T> is a handy template to use iso T*. It inits to 0, deletes on
-  destruction, deep copies upon copying
-
-  It is probably not feasible to use P<T> as template argument, since
-  a lot of auto conversion wouldn't work. new T would be called too
-  much anyway.
-  
-  Sorry for the silly naming */
-template <class T>
-class P {
-  /**
-     Set contents to a copy of #t_l#
-  */
-  void copy (T const*t_l);
-  T* t_p;
-
-    /**
-      junk contents and set to 0
-     */
-  void junk ();
-public:
-    
-  P (P const &src);
-  /**
-      Remove  the pointer, and return it.
-     */
-    
-  T *get_p () { T*p = t_p; t_p=0; return p; }
-  /**
-      return the pointer
-     */
-  T *get_l ()  { return t_p; }
-
-  T const *get_C () const { return t_p; }
-  /**
-      copy the contents of pointer, and return it
-     */
-  T *copy_p () const;
-  /**
-      swallow new_p, and set contents t new_p
-     */
-  void set_p (T *new_p); 
-  /**
-      junk contents, and  copy contents of t_l
-     */
-  void set_l (T const *t_C); 
-    
-  P &operator = (P const &);
-  ~P ();
-  P () { t_p = 0; }
-  //P (T *p) { t_p = p; }
-    
-  T *operator -> () { return t_p; }
-  operator T * () {  return t_p; }
-  const T *operator -> () const { return t_p ; }
-  T &operator * () { return *t_p; }
-  T const  &operator * () const { return *t_p; }
-  operator const T * () const { return t_p; }
-};
-#endif // POINTER_HH
-
-    
diff --git a/flower/include/pointer.tcc b/flower/include/pointer.tcc
deleted file mode 100644 (file)
index cd4aac5..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
-  pointer.tcc -- implement P
-
-  source file of the Flower Library
-
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-*/
-
-
-#ifndef POINTER_TCC
-#define POINTER_TCC
-
-template<class T>
-inline
-T *
-P<T>::copy_p () const
-{
-  return t_p? new T (*t_p) : 0;
-}
-
-template<class T>
-inline
-void
-P<T>::copy (T const *l_C)
-{
-  t_p = l_C ? new T (*l_C) : 0;
-}
-
-template<class T>
-inline
-void
-P<T>::junk ()
-{
-  delete t_p;
-  t_p =0;
-}
-
-template<class T>
-inline
-P<T>::P (P<T> const &s) 
-{
-  t_p = s.copy_p ();
-}
-
-template<class T>
-inline
-P<T> &
-P<T>::operator = (P const&s)
-{
-  junk ();
-  copy (s.t_p);
-  return *this;
-}
-
-template<class T>
-inline
-P<T>::~P () {
-  junk ();
-}
-
-template<class T>
-inline
-void
-P<T>::set_p (T * np) 
-{
-  if (np == t_p)
-    return;
-  delete t_p;
-  
-  t_p = np;
-}
-
-
-template<class T>
-inline
-void
-P<T>::set_l (T const * l_C) 
-{
-  if (t_p == l_C)
-    return;
-  
-  junk ();
-  copy (l_C);
-}
-
-
-
-#endif // POINTER_TCC
diff --git a/flower/include/tuple.hh b/flower/include/tuple.hh
deleted file mode 100644 (file)
index 1adf194..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*   
-  tuple.hh -- declare Tuple
-  
-  source file of the GNU LilyPond music typesetter
-  
-  (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
-
-#ifndef TUPLET_HH
-#define TUPLET_HH
-#error
-
-
-template<class T, class U>
-struct Tuple
-{
-  T e1_;
-  U e2_;
-
-  Tuple (T t, U u)
-    {
-      e1_ = t;
-      e2_ = u;
-    }
-  Tuple ()
-    {
-    }
-};
-
-
-
-#endif /* TUPLET_HH */
-
index 9065c0935840c3ed5982fdec90290d73d558643a..b9915bcc6fff2608a04101452c14c2f51d50513c 100644 (file)
@@ -470,11 +470,20 @@ ly_unit ()
   return ly_str02scm (INTERNAL_UNIT);
 }
 
+
+SCM
+ly_verbose ()
+{
+  return gh_bool2scm (verbose_global_b);
+}
+
 static void
 init_functions ()
 {
   scm_c_define_gsubr ("ly-warn", 1, 0, 0,
                      (Scheme_function_unknown)ly_warning);
+  scm_c_define_gsubr ("ly-verbose", 0, 0, 0,
+                     (Scheme_function_unknown)ly_verbose);
   scm_c_define_gsubr ("ly-version", 0, 0, 0,
                      (Scheme_function_unknown)ly_version);  
   scm_c_define_gsubr ("ly-unit", 0, 0, 0,
index a78bcf89cd50c37f689daa4b00def4260e3009f8..0e789e75c9cf8fe1d7a82d95e75e407bb5da0e4f 100644 (file)
@@ -247,10 +247,6 @@ setup_paths ()
 #endif
 
   global_path.add ("");
-  // must override (come before) "/usr/local/share/lilypond"!
-  char const *env_sz = getenv ("LILYINCLUDE");
-  if (env_sz)
-    global_path.parse_path (env_sz);
 
 
   /* Adding mf/out make lilypond unchanged source directory, when setting
index 2108e99262df0c11ded40373301a09cce565e80b..656c8a7bd6746c871f6678ad79628b68fe80db2e 100644 (file)
 
 
 (define (ly-load x)
-  ;; should check verbose
-;;  (format (current-error-port) "[~s]" x)
-  (primitive-load (%search-load-path x))
-
-  )
+  (let*
+      (
+       (fn (%search-load-path x))
+       )
+    (if (ly-verbose)
+       (format (current-error-port) "[~A]" fn))
+    (primitive-load fn)
+
+    ))