X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=0d6997c53263b02c3dacce41763641ead1a6abab;hb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;hp=692ad6f4f3f3f3e7a59565301dd95e20620587cb;hpb=4d0d003b022943d8a0e39ba19078bab8d32d8857;p=builder.git diff --git a/source/misc.h b/source/misc.h index 692ad6f..0d6997c 100644 --- a/source/misc.h +++ b/source/misc.h @@ -1,17 +1,10 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MISC_H_ #define MISC_H_ #include #include #include -#include +#include enum LibMode { @@ -20,10 +13,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