]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/input-smob.cc
Issue 4082/3: Run scripts/auxiliar/smob-convert.sh
[lilypond.git] / lily / input-smob.cc
index 7f440b74ce024677cd670075349d8498e9701420..420177e2d71bb92bba1afa63052636da70f69aac 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2000--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 2000--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -21,7 +21,6 @@
 #include "source-file.hh"
 #include "std-string.hh"
 
-#include "ly-smobs.icc"
 
 /* Dummy input location for use if real one is missing.  */
 Input dummy_input_global;
@@ -42,7 +41,7 @@ mark_smob (SCM s)
 static int
 print_smob (SCM s, SCM port, scm_print_state *)
 {
-  string str = "#<location " + unsmob_input (s)->location_string () + ">";
+  string str = "#<location " + Input::unsmob (s)->location_string () + ">";
   scm_puts (str.c_str (), port);
   return 1;
 }
@@ -50,7 +49,7 @@ print_smob (SCM s, SCM port, scm_print_state *)
 static size_t
 free_smob (SCM s)
 {
-  delete unsmob_input (s);
+  delete Input::unsmob (s);
   return 0;
 }
 
@@ -59,9 +58,9 @@ equal_smob (SCM sa, SCM sb)
 {
   Input *a = (Input *) SCM_CELL_WORD_1 (sa);
   Input *b = (Input *) SCM_CELL_WORD_1 (sb);
-  if (a->get_source_file () == b->get_source_file () &&
-      a->start () == b->start () &&
-      a->end () == b->end ())
+  if (a->get_source_file () == b->get_source_file ()
+      && a->start () == b->start ()
+      && a->end () == b->end ())
     return SCM_BOOL_T;
   else
     return SCM_BOOL_F;
@@ -88,7 +87,7 @@ make_input (Input ip)
 }
 
 Input *
-unsmob_input (SCM s)
+Input::unsmob (SCM s)
 {
   if (SCM_IMP (s))
     return 0;
@@ -99,4 +98,3 @@ unsmob_input (SCM s)
 }
 
 ADD_SCM_INIT_FUNC (input, start_input_smobs);
-