diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2011-04-21 22:36:54 +0800 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2011-04-28 11:09:04 +0800 |
commit | 9d812d19cbcfe79cdbf5daa5b42cab1c2436902b (patch) | |
tree | 33d4f3bbc01b464b7b2eb5a8c94c22c226baaac2 /src/cppbash_builtin.cpp | |
parent | Builtin: implement source builtin (diff) | |
download | libbash-9d812d19cbcfe79cdbf5daa5b42cab1c2436902b.tar.gz libbash-9d812d19cbcfe79cdbf5daa5b42cab1c2436902b.tar.bz2 libbash-9d812d19cbcfe79cdbf5daa5b42cab1c2436902b.zip |
Builtin: implement inherit builtin
metadata_generator is improved to make use of the information added
by inherit builtin.
Diffstat (limited to 'src/cppbash_builtin.cpp')
-rw-r--r-- | src/cppbash_builtin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cppbash_builtin.cpp b/src/cppbash_builtin.cpp index 0df9cbf..dc6ec3e 100644 --- a/src/cppbash_builtin.cpp +++ b/src/cppbash_builtin.cpp @@ -24,6 +24,7 @@ #include "cppbash_builtin.h" #include "builtins/echo_builtin.h" +#include "builtins/inherit_builtin.h" #include "builtins/boolean_builtins.h" #include "builtins/source_builtin.h" @@ -35,6 +36,7 @@ cppbash_builtin::builtins_type& cppbash_builtin::builtins() { static boost::scoped_ptr<builtins_type> p(new builtins_type { {"echo", boost::factory<echo_builtin*>()}, {"source", boost::factory<source_builtin*>()}, + {"inherit", boost::factory<inherit_builtin*>()}, {"true", boost::factory<true_builtin*>()}, {"false", boost::factory<false_builtin*>()} }); |