aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-04-28 23:03:52 +0000
committerMike Buland <eichlan@xagasoft.com>2008-04-28 23:03:52 +0000
commit38f70faf083338bf32369dfe509e3045e3ccd24a (patch)
treeca3173e5ae8b3f4cfe79816f58d08c135c41fca5 /src
parentbcf473b324216e8622ea308974e0978dc97c83fc (diff)
downloadbuild-38f70faf083338bf32369dfe509e3045e3ccd24a.tar.gz
build-38f70faf083338bf32369dfe509e3045e3ccd24a.tar.bz2
build-38f70faf083338bf32369dfe509e3045e3ccd24a.tar.xz
build-38f70faf083338bf32369dfe509e3045e3ccd24a.zip
Same thing as libbu++, new version of gcc changed the rules a bit.
Diffstat (limited to '')
-rw-r--r--src/main.cpp6
-rw-r--r--src/performcommand.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7e18743..77ee0c0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -7,6 +7,8 @@
7#include "build.h" 7#include "build.h"
8#include "action.h" 8#include "action.h"
9 9
10#include <stdlib.h>
11
10class Param : public Bu::ParamProc 12class Param : public Bu::ParamProc
11{ 13{
12public: 14public:
@@ -114,10 +116,10 @@ int main( int argc, char *argv[] )
114 { 116 {
115 olddir = new char[4096]; 117 olddir = new char[4096];
116 getcwd( olddir, 4096 ); 118 getcwd( olddir, 4096 );
117 chdir( prm.sDir.c_str() ); 119 chdir( prm.sDir.getStr() );
118 } 120 }
119 121
120 pBuild = bld.load( prm.sFile.c_str() ); 122 pBuild = bld.load( prm.sFile.getStr() );
121 pBuild->setCache( prm.sCache.getStr() ); 123 pBuild->setCache( prm.sCache.getStr() );
122 pBuild->setView( prm.sView.getStr() ); 124 pBuild->setView( prm.sView.getStr() );
123 if( prm.bCleanMode ) 125 if( prm.bCleanMode )
diff --git a/src/performcommand.cpp b/src/performcommand.cpp
index 3f3aa32..65827c5 100644
--- a/src/performcommand.cpp
+++ b/src/performcommand.cpp
@@ -3,6 +3,8 @@
3#include "build.h" 3#include "build.h"
4#include "viewer.h" 4#include "viewer.h"
5 5
6#include <stdlib.h>
7
6PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); 8PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 );
7 9
8PerformCommand::PerformCommand() 10PerformCommand::PerformCommand()