X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=99e41f010be31f2d62e22328c3a601a7d93e869a;hb=699493ee7346c578537f4e310702c57012686c22;hp=edbf314b1b60f138ea57ea23bac679dbde76b048;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/misc.h b/source/misc.h index edbf314..99e41f0 100644 --- a/source/misc.h +++ b/source/misc.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -11,7 +11,7 @@ Distributed under the LGPL #include #include #include -#include +#include enum LibMode { @@ -20,10 +20,12 @@ enum LibMode DYNAMIC }; -typedef std::list StringList; -typedef std::list PathList; +typedef std::list StringList; +typedef std::list PathList; typedef std::map StringMap; -std::string run_command(const StringList &); +/** Runs a command and returns its output as a string. The exit status of the +command is returned in the second parameter if it is not null. */ +std::string run_command(const StringList &, int * =0); #endif