X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=0d6997c53263b02c3dacce41763641ead1a6abab;hb=16bda19cc87b5064daad9955f0ebb5ac5be7dec7;hp=508a9b0cf6a0fd0b48c876c91742df1695ac69b2;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/misc.h b/source/misc.h index 508a9b0..0d6997c 100644 --- a/source/misc.h +++ b/source/misc.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MISC_H_ #define MISC_H_ @@ -25,7 +18,7 @@ typedef std::list PathList; typedef std::map StringMap; /** Runs a command and returns its output as a string. The exit status of the -command is lost. */ -std::string run_command(const StringList &); +command is returned in the second parameter if it is not null. */ +std::string run_command(const StringList &, int * =0); #endif