diff --git a/fflas-ffpack/utils/args-parser.h b/fflas-ffpack/utils/args-parser.h index 7f7d2184..32f2739f 100644 --- a/fflas-ffpack/utils/args-parser.h +++ b/fflas-ffpack/utils/args-parser.h @@ -72,7 +72,7 @@ namespace FFLAS { void parseArguments (int argc, char **argv, Argument *args, bool printDefaults = true); } -void printHelpMessage (const char *program, Argument *args, bool printDefaults = false) +inline void printHelpMessage (const char *program, Argument *args, bool printDefaults = false) { int i, l; @@ -153,7 +153,7 @@ void printHelpMessage (const char *program, Argument *args, bool printDefaults = /* Find an argument in the argument list for a character */ -Argument *findArgument (Argument *args, char c) +inline Argument *findArgument (Argument *args, char c) { int i; @@ -174,7 +174,7 @@ Argument *findArgument (Argument *args, char c) * @param instring list to be converted * @return status message. */ -int getListArgs(std::list & outlist, std::string & instring) +inline int getListArgs(std::list & outlist, std::string & instring) { int start = 0 ; int count = 0 ; @@ -231,7 +231,7 @@ namespace FFLAS { * @param i argument index * @return char* argument value */ - char* getArgumentValue(int argc, char **argv,int i){ + inline char* getArgumentValue(int argc, char **argv,int i){ if (i+1 < argc) { return argv[i+1]; } else { @@ -240,7 +240,7 @@ namespace FFLAS { } } - void parseArguments (int argc, char **argv, Argument *args, bool printDefaults) + inline void parseArguments (int argc, char **argv, Argument *args, bool printDefaults) { int i; Argument *current; @@ -345,7 +345,7 @@ namespace FFLAS { } /** writes the values of all arguments, preceded by the programName */ - std::ostream& writeCommandString (std::ostream& os, Argument *args, const char* programName = nullptr) + inline std::ostream& writeCommandString (std::ostream& os, Argument *args, const char* programName = nullptr) { if (programName != nullptr) os << programName;