function.
+2004-10-07 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/kpath.cc (LY_DEFINE): ly_kpathsea_expand_variable. New
+ function.
+
2004-10-05 Han-Wen Nienhuys <hanwen@xs4all.nl>
- * scm/framework-tex.scm (convert-to-dvi): set extra_mem_top
+ * scm/framework-tex.scm (convert-to-dvi): set extra_mem_top to 1M.
2004-10-04 Han-Wen Nienhuys <hanwen@xs4all.nl>
}
+LY_DEFINE (ly_kpathsea_expand_variable, "ly:kpathsea-expand-variable",
+ 1, 0, 0, (SCM var),
+ "Return the expanded version @var{var}.")
+{
+ SCM_ASSERT_TYPE (scm_is_string (var), var, SCM_ARG1, __FUNCTION__, "string");
+
+ String nm = ly_scm2string (var);
+ char *result = kpse_var_expand (nm.to_str0 ());
+ SCM ret = scm_makfrom0str (result);
+ delete[] result;
+
+ return ret;
+}
+
+
void
initialize_kpathsea (char *av0)
{
;;; Running LilyPond on this file generates the documentation
-(debug-enable 'debug)
-(debug-enable 'backtrace)
-(read-enable 'positions)
+;(set-debug-cell-accesses! 5000)
;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;; TODO : make modules of these!
; todo: naming: grob vs. layout property
-(define load-files '("documentation-lib.scm"
- "document-functions.scm"
- "document-translation.scm"
- "document-music.scm"
- "document-backend.scm"
- "document-markup.scm"
- ))
-(map ly:load load-files)
+(map ly:load '("documentation-lib.scm"
+ "document-functions.scm"
+ "document-translation.scm"
+ "document-music.scm"
+ "document-backend.scm"
+ "document-markup.scm"
+ ))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(newline (current-error-port))
(exit 1))
(exit 0))))
+