X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fidentifier-smob.cc;h=b85d14211fcb90f870d339eeedf2af654912448b;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=3696cf495464be2df7c3e7ed83a7044ca038d8dd;hpb=0f26985bb738f1bd3373d3b8bc3dc0980c202169;p=lilypond.git diff --git a/lily/identifier-smob.cc b/lily/identifier-smob.cc index 3696cf4954..b85d14211f 100644 --- a/lily/identifier-smob.cc +++ b/lily/identifier-smob.cc @@ -1,14 +1,13 @@ -/* -identifier-smob.cc -- implement glue to pass Scheme expressions off as -identifiers. +/* + identifier-smob.cc -- implement glue to pass Scheme expressions off as + identifiers. -source file of the GNU LilyPond music typesetter - -(c) 2002--2004 Han-Wen Nienhuys + source file of the GNU LilyPond music typesetter + (c) 2002--2008 Han-Wen Nienhuys */ -#include "identifier-smob.hh" +#include "identifier-smob.hh" scm_t_bits package_tag; @@ -25,22 +24,22 @@ print_box (SCM b, SCM port, scm_print_state *) return 1; } - /* This defines the primitve `make-box', which returns a new smob of type `box', initialized to `#f'. */ -LY_DEFINE (package_identifier, "ly:export", 1,0,0, (SCM arg), - "Export a Scheme object to the parser, so it is treated as an identifier.") +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.") { SCM_RETURN_NEWSMOB (package_tag, arg); } - SCM unpack_identifier (SCM box) { if (SCM_IMP (box) || SCM_CELL_TYPE (box) != package_tag) return SCM_UNDEFINED; - + return SCM_CELL_OBJECT_1 (box); } @@ -51,4 +50,5 @@ init_box_type (void) scm_set_smob_mark (package_tag, scm_markcdr); scm_set_smob_print (package_tag, print_box); } -ADD_SCM_INIT_FUNC (package, init_box_type); + +ADD_SCM_INIT_FUNC (package, init_box_type);