@tab @code{Input::warning (msg)}
@item BASIC
-@tab @code{successful (msg)}
+@tab @code{basic_progress (msg)}
@tab -
@item PROGRESS
@tab @code{(ly:input-warning input msg args)}
@item BASIC
-@tab @code{(ly:success msg args)}
+@tab @code{(ly:basic-progress msg args)}
@tab -
@item PROGRESS
void programming_error (string s, string location = "");
void non_fatal_error (string, string location = "");
void warning (string s, string location = "");
-void successful (string s, string location = "");
+void basic_progress (string s, string location = "");
/* progress_indication does by default *NOT* start on a new line */
void progress_indication (string s, bool newline = false, string location = "");
void message (string s, bool newline = true, string location = "");
/* Display a success message. */
void
-successful (string s, string location)
+basic_progress (string s, string location)
{
- print_message (LOG_BASIC, location, _f ("success: %s", s) + "\n", true);
+ print_message (LOG_BASIC, location, s + "\n", true);
}
/* Display information about the progress. */
sources.set_path (&global_path);
string mapped_fn = map_file_name (file_name);
- message (_f ("Processing `%s'", mapped_fn.c_str ()));
- progress_indication ("\n");
+ basic_progress (_f ("Processing `%s'", mapped_fn.c_str ()));
Lily_parser *parser = new Lily_parser (&sources);
return SCM_UNSPECIFIED;
}
-LY_DEFINE (ly_success, "ly:success",
+LY_DEFINE (ly_basic_progress, "ly:basic-progress",
1, 0, 1, (SCM str, SCM rest),
- "A Scheme callable function to issue a success message @var{str}."
+ "A Scheme callable function to issue a basic progress message @var{str}."
" The message is formatted with @code{format} and @var{rest}.")
{
LY_ASSERT_TYPE (scm_is_string, str, 1);
str = scm_simple_format (SCM_BOOL_F, str, rest);
- successful (ly_scm2string (str));
+ basic_progress (ly_scm2string (str));
return SCM_UNSPECIFIED;
}
(node-children node)))
(define (processing name)
- (ly:message (_ "Processing ~S...") name))
+ (ly:basic-progress (_ "Processing ~S...") name))
(define (self-evaluating? x)
(or (number? x) (string? x) (procedure? x) (boolean? x)))
".scm"))
(outfile (open-file out-file-name "w")))
(set! gc-dumping #t)
- (format #t "Dumping GC statistics ~a...\n" out-file-name)
+ (ly:progress "Dumping GC statistics ~a...\n" out-file-name)
(for-each (lambda (y)
(let ((x (car y))
(c (cdr y)))
(newline outfile)
(if (defined? 'gc-live-object-stats)
(let* ((stats #f))
- (display "Live object statistics: GC'ing\n")
+ (ly:progress "Live object statistics: GC'ing\n")
(ly:reset-all-fonts)
(gc)
(gc)
- (display "Asserting dead objects\n")
+ (ly:progress "Asserting dead objects\n")
(ly:set-option 'debug-gc-assert-parsed-dead #t)
(gc)
(ly:set-option 'debug-gc-assert-parsed-dead #f)
(set! stats (gc-live-object-stats))
- (display "Dumping live object statistics.\n")
+ (ly:progress "Dumping live object statistics.\n")
(dump-live-object-stats outfile)))
(newline outfile)
(let* ((stats (gc-stats)))
"Exit function for lilypond"
(if (not silently)
(case status
- ((0) (ly:success (_ "Compilation successfully completed")))
+ ((0) (ly:basic-progress (_ "Success: compilation successfully completed")))
((1) (ly:warning (_ "Compilation completed with warnings or errors")))
(else (ly:message ""))))
(exit status))