X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=0d6997c53263b02c3dacce41763641ead1a6abab;hb=dad4c41302de525a1456e9d5b738831487c8acac;hp=0fc0e32dd4c642e0fac0e59f2b2d7ec82ed194c6;hpb=57bdb055acb0453c75b22cb64f35cc0e817a2827;p=builder.git diff --git a/source/misc.h b/source/misc.h index 0fc0e32..0d6997c 100644 --- a/source/misc.h +++ b/source/misc.h @@ -4,7 +4,7 @@ #include #include #include -#include +#include enum LibMode { @@ -13,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