Am 04.12.2013 15:00, schrieb Jan-Peter Voigt:
Am 04.12.2013 14:58, schrieb Urs Liska:
Hi,

next helpless question: what Scheme type is the "location" argument used
for Scheme functions?
(write)ing location gives
Hi, its:
ly:input-location?

HTH
Unfortunately not (TH).
This is what redirects me to

Input *
unsmob_input (SCM s)
{
  if (SCM_IMP (s))
    return 0;
  if (SCM_CAR (s) == (SCM)input_tag) // ugh.
    return (Input *) SCM_CDR (s);
  else
    return 0;
}

And that's where I get stuck. This function looks like it somehow munges a Scheme pair or list, so I tried to access it through
(car location)
but that didn't work. Which isn't surprising because the original (write) would have printed something like (location "...") if it were a list, isn't it?

Urs

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to