]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
Reorder functions
[builder.git] / source / component.cpp
index 5104cdf3e92b04c8567304baae993bf974f9952c..48675f7e5d7c0148cc2752f39f6946ff163a9f32 100644 (file)
@@ -254,6 +254,11 @@ Component::Loader::Loader(Component &c):
        add("use",             &Loader::use);
 }
 
+void Component::Loader::build_info()
+{
+       load_sub(obj.build_info);
+}
+
 void Component::Loader::if_arch(const string &cond)
 {
        bool match = obj.package.get_builder().get_current_arch().match_name(cond);
@@ -272,9 +277,9 @@ void Component::Loader::if_feature(const string &cond)
                load_sub_with(*this);
 }
 
-void Component::Loader::source(const string &s)
+void Component::Loader::install_map()
 {
-       obj.sources.push_back((obj.package.get_source_directory()/s).str());
+       load_sub(obj.install_map, obj.package.get_source_directory());
 }
 
 void Component::Loader::require(const string &n)
@@ -284,14 +289,9 @@ void Component::Loader::require(const string &n)
                obj.requires.push_back(req);
 }
 
-void Component::Loader::build_info()
-{
-       load_sub(obj.build_info);
-}
-
-void Component::Loader::install_map()
+void Component::Loader::source(const string &s)
 {
-       load_sub(obj.install_map, obj.package.get_source_directory());
+       obj.sources.push_back((obj.package.get_source_directory()/s).str());
 }
 
 void Component::Loader::use(const string &n)