1.5.23.jcn1
===========
-* Fixes for guile 1.4.
+* Rewrote new conditional guile >= 1.5 compilation switches, to keep
+ code clean from conditionals and have a concentrated sets of
+ compatitility fixes for old guile versions.
+
+* Fixes for guile 1.4, including embedded ps.
1.5.23
======
MAJOR_VERSION=1
MINOR_VERSION=5
PATCH_LEVEL=23
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
}
zoger = \context Staff = zoger \notes \relative c'' {
+ % Hmm
+ \property Staff.HaraKiriVerticalGroup \override
+ #'items-worth-living = #'(#t #t)
+
+
\clef treble
\property Staff.instrument = #"Zoger"
\property Staff.instr = #"Zog."
c4^"zog" d e f
\skip 1*2
-
\translator Staff=zager
\stemDown
c2 g2
>
>
\paper{
- linewidth = 80.0\mm
+ linewidth = 100.0\mm
\translator { \HaraKiriStaffContext }
%uh?
\translator { \OrchestralScoreContext }
#define fix_guile_1_4_scm_primitive_eval(form) scm_eval_3 (form, 1, SCM_EOL)
#define scm_primitive_eval(form) fix_guile_1_4_scm_primitive_eval (form)
+#define scm_current_module() (SCM)0
+#define scm_set_current_module(x) (void)x
+#define scm_c_resolve_module(x) (SCM)0
+
#define scm_c_define_gsubr scm_make_gsubr
#define scm_c_eval_string(str) gh_eval_str ((char*)str)
#define scm_c_memq scm_sloppy_memq
// todo: junk this. We should make real modules iso. just loading files.
prepend_load_path (p + "/scm/");
-
-#if GUILE_MINOR_VERSION >= 5
SCM last_mod = scm_current_module ();
scm_set_current_module (scm_c_resolve_module ("guile"));
-#endif
init_cxx_function_smobs ();
for (int i=scm_init_funcs_->size () ; i--;)
progress_indication ("\n");
read_lily_scm_file ("lily.scm");
-#if GUILE_MINOR_VERSION >= 5
scm_set_current_module (last_mod);
-#endif
}
unsigned int ly_scm_hash (SCM s)
(if (or (equal? (minor-version) "4")
(equal? (minor-version) "3.4"))
- (define-public (ps-output-expression expr port)
- (display (eval-in-module expr this-module) port )
- )
+ (define-public (ps-output-expression expr)
+ (display (eval-in-module expr this-module)))
(define-public (ps-output-expression expr port)
- (display (eval expr this-module) port )
- )
- )
+ (display (eval expr this-module) port)))
(use-modules
;; guile < 1.4 compatibility for eval
-(define (ly-eval e m)
- (eval-in-module e m))
+(if (or (equal? (minor-version) "4")
+ (equal? (minor-version) "3.4"))
+ (define (ly-eval e m)
+ (eval-in-module e m))
+ (define (ly-eval e m)
+ (eval e m)))
(define-module (scm sketch))
(debug-enable 'backtrace)
""
)
-(define (embedded-ps expr)
- (let
- ((os (open-output-string)))
- (ps-output-expression expr os)
- (string-append "\\embeddedps{" (get-output-string os) "}")
- ))
+(if (or (equal? (minor-version) "4")
+ (equal? (minor-version) "3.4"))
+ (define (embedded-ps expr)
+ (let ((ps-string
+ (with-output-to-string
+ (lambda () (ps-output-expression expr)))))
+ (string-append "\\embeddedps{" ps-string "}")))
+ (define (embedded-ps expr)
+ (let
+ ((os (open-output-string)))
+ (ps-output-expression expr os)
+ (string-append "\\embeddedps{" (get-output-string os) "}"))))
(define (comment s)
(string-append "% " s "\n"))