X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.h;h=99e41f010be31f2d62e22328c3a601a7d93e869a;hb=4e6fd9a7436d61af311ab83b5ec264b37078fe76;hp=1e1b16cdf9149cccb4279e1f1e048c9b4835c9d1;hpb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;p=builder.git diff --git a/source/misc.h b/source/misc.h index 1e1b16c..99e41f0 100644 --- a/source/misc.h +++ b/source/misc.h @@ -1,13 +1,31 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef MISC_H_ #define MISC_H_ #include +#include #include -#include +#include + +enum LibMode +{ + ALL_STATIC, + LOCAL_STATIC, + 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