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