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.
@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
+++ /dev/null
-/*
- 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
-
-
+++ /dev/null
-/*
- 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
+++ /dev/null
-/*
- 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 */
-
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,
#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
(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)
+
+ ))