]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/input-smob.cc
* scm/lily-library.scm (char->unicode-index): New function.
[lilypond.git] / lily / input-smob.cc
index 4ca03d940aaae7da83760f97304206062f0849fb..0c1018fc11f6e653de2b211880c5ab91443eb0f5 100644 (file)
@@ -85,16 +85,19 @@ LY_DEFINE (ly_input_message, "ly:input-message", 2, 0, 0, (SCM sip, SCM msg),
 {
   Input *ip = unsmob_input (sip);
   SCM_ASSERT_TYPE (ip, sip, SCM_ARG1, __FUNCTION__, "input location");
-  SCM_ASSERT_TYPE (gh_string_p (msg), msg, SCM_ARG2, __FUNCTION__, "string");
+  SCM_ASSERT_TYPE (scm_is_string (msg), msg, SCM_ARG2, __FUNCTION__, "string");
 
   String m = ly_scm2string (msg);
   ip->message (m);
 
-  return SCM_UNDEFINED;
+  return SCM_UNSPECIFIED;
 }
 
+/*
+  TODO: rename this function. ly:input-location? vs ly:input-location
+ */
 LY_DEFINE (ly_input_location, "ly:input-location", 1, 0, 0, (SCM sip),
-         "Return input location in @var{sip} as (filename line column).")
+         "Return input location in @var{sip} as (file-name line column).")
 {
   Input *ip = unsmob_input (sip);
   SCM_ASSERT_TYPE (ip, sip, SCM_ARG1, __FUNCTION__, "input location");