X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fidentifier-smob.cc;h=0fec5798663e57a3016f8c0cebaf2c78880c2556;hb=725ff5c600041c5ce8ea41880bc11575b836c5fb;hp=7846df26665834ebb7fad38740780f9a58824ded;hpb=61bba8a98a53e424054b26d63ead26b0696ea29d;p=lilypond.git diff --git a/lily/identifier-smob.cc b/lily/identifier-smob.cc index 7846df2666..0fec579866 100644 --- a/lily/identifier-smob.cc +++ b/lily/identifier-smob.cc @@ -1,15 +1,24 @@ /* - identifier-smob.cc -- implement glue to pass Scheme expressions off as - identifiers. + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2002--2010 Han-Wen Nienhuys - (c) 2002--2004 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "identifier-smob.hh" - scm_t_bits package_tag; static int @@ -29,8 +38,8 @@ print_box (SCM b, SCM port, scm_print_state *) type `box', initialized to `#f'. */ LY_DEFINE (ly_export, "ly:export", 1, 0, 0, (SCM arg), - "Export a Scheme object to the parser, " - "so it is treated as an identifier.") + "Export a Scheme object to the parser" + " so it is treated as an identifier.") { SCM_RETURN_NEWSMOB (package_tag, arg); } @@ -40,7 +49,7 @@ unpack_identifier (SCM box) { if (SCM_IMP (box) || SCM_CELL_TYPE (box) != package_tag) return SCM_UNDEFINED; - + return SCM_CELL_OBJECT_1 (box); } @@ -52,4 +61,4 @@ init_box_type (void) scm_set_smob_print (package_tag, print_box); } -ADD_SCM_INIT_FUNC (package, init_box_type); +ADD_SCM_INIT_FUNC (package, init_box_type);