diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:59:32 +0000 | 
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-21 18:59:32 +0000 | 
| commit | 8ebc3f17961ef6a0cf708cc6bdca948d77817ee0 (patch) | |
| tree | bab53e5e249dc4eab4904a5a4519b372245eee53 /src/action.cpp | |
| parent | 0bcd7aeb48055e74203332851ce51ea55335d135 (diff) | |
| download | build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.tar.gz build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.tar.bz2 build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.tar.xz build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.zip | |
Wow, it's much more general now, I like that.
Diffstat (limited to '')
| -rw-r--r-- | src/action.cpp | 25 | 
1 files changed, 25 insertions, 0 deletions
| diff --git a/src/action.cpp b/src/action.cpp index 23c24cd..8b10641 100644 --- a/src/action.cpp +++ b/src/action.cpp | |||
| @@ -80,6 +80,31 @@ Action *Action::genDefaultClean() | |||
| 80 | return pRet; | 80 | return pRet; | 
| 81 | } | 81 | } | 
| 82 | 82 | ||
| 83 | Action *Action::genDefaultCleanAll() | ||
| 84 | { | ||
| 85 | Ast *pAst = new Ast(); | ||
| 86 | pAst->addNode( AstNode::typeActionDef ); | ||
| 87 | pAst->openBranch(); | ||
| 88 | pAst->addNode( AstNode::typeString, "clean-all" ); | ||
| 89 | pAst->openBranch(); | ||
| 90 | pAst->addNode( AstNode::typeProcessTarget ); | ||
| 91 | pAst->openBranch(); | ||
| 92 | pAst->addNode( AstNode::typeString, "clean" ); | ||
| 93 | pAst->openBranch(); | ||
| 94 | pAst->addNode( AstNode::typeFunction ); | ||
| 95 | pAst->openBranch(); | ||
| 96 | pAst->addNode( AstNode::typeString, "targets" ); | ||
| 97 | pAst->closeNode(); | ||
| 98 | pAst->closeNode(); | ||
| 99 | pAst->closeNode(); | ||
| 100 | Action *pRet = new Action( | ||
| 101 | dynamic_cast<const AstBranch *>( *pAst->getNodeBegin() ) | ||
| 102 | ); | ||
| 103 | pRet->pAst = pAst; | ||
| 104 | |||
| 105 | return pRet; | ||
| 106 | } | ||
| 107 | |||
| 83 | Action *Action::genDefaultDefault() | 108 | Action *Action::genDefaultDefault() | 
| 84 | { | 109 | { | 
| 85 | Ast *pAst = new Ast(); | 110 | Ast *pAst = new Ast(); | 
