2 input-smob.cc -- implement Input smob
4 source file of the GNU LilyPond music typesetter
6 (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "input-smob.hh"
13 #include "ly-smobs.icc"
15 static long input_tag;
25 print_smob (SCM s, SCM port, scm_print_state *)
27 String str = "#<location" + unsmob_input (s)->location_str () + ">";
28 scm_puts (str.ch_C(), port);
33 scm_sizet free_smob (SCM s)
35 delete unsmob_input (s);
40 void start_input_smobs()
43 = scm_make_smob_type_mfpe ("input", 0,
51 Input * nip = new Input (ip);
55 SCM_SETCAR (z, (SCM)input_tag);
56 SCM_SETCDR (z, (SCM)nip);
66 if ((long)SCM_CAR(s) == input_tag) // ugh.
67 return (Input*) SCM_CDR(s);
73 ADD_SCM_INIT_FUNC(input, start_input_smobs);
76 Input dummy_input_global;