lilypond-0.1.14
[lilypond.git] / src / source.cc
blob8a8c52883591bfa49930fec798e3c9afc8746d81
1 //
2 // source.cc
3 //
5 #include <assert.h>
7 #include "string.hh"
8 #include "proto.hh"
9 #include "plist.hh"
11 #include "source-file.hh"
12 #include "source.hh"
14 Source::Source()
18 Source::~Source()
22 void
23 Source::add( Source_file* sourcefile_p )
25 sourcefile_p_iplist_.bottom().add( sourcefile_p );
28 Source_file*
29 Source::sourcefile_l( char const* ch_c_l )
31 PCursor<Source_file*> sourcefile_l_pcur( sourcefile_p_iplist_.top() );
32 for ( ; sourcefile_l_pcur.ok(); sourcefile_l_pcur++ )
33 if ( sourcefile_l_pcur->in_b( ch_c_l ) )
34 return *sourcefile_l_pcur;
35 return 0;