|
Parallel Make
1.0
My implementation of make utility, which can run in multiple threads according to user request.
|
Enumerations | |
| enum | ret_values { CODE_SUCCESS = 0, CODE_QUESTION_FAILURE = 1, CODE_FAILURE = 2 } |
| Program return values. C style enum, so these are just int constants. More... | |
| enum | process_states { process_states::MUST_REBUILD, process_states::UP_TO_DATE, process_states::QUESTION_FAILURE, process_states::BUILD_FAILED, process_states::NOT_YET_PROCESSED, process_states::PROCESSING } |
| C++ like enum class. Return values of target processing. More... | |
Functions | |
| void | print_version () |
| Prints version and author. More... | |
| void | print_help (const std::string &exe_name) |
| Prints basic help. More... | |
| int | to_number (const std::string &str) |
| std::string & | replace (std::string &what, const std::string &find, const std::vector< file > &replaces) |
| std::string & | replace (std::string &what, const std::string &find, const std::string &replace) |
| std::vector< std::string > | split (const std::string &str, char delim) |
|
strong |
C++ like enum class. Return values of target processing.
| enum ret_values |
Program return values. C style enum, so these are just int constants.
|
inline |
Prints basic help.
|
inline |
Prints version and author.
| std::string& replace | ( | std::string & | what, |
| const std::string & | find, | ||
| const std::vector< file > & | replaces | ||
| ) |
Replaces occurences of find by space separated replaces in what string.
| what | String to search in. |
| find | Substring to look for. |
| replaces | std::vector to be serialized and replaced for find. |
what. | std::string& replace | ( | std::string & | what, |
| const std::string & | find, | ||
| const std::string & | replace | ||
| ) |
Replaces occurences of find by replace in string what.
| what | String to search in. |
| find | Substring to look for. |
| replace | Substring to be replaced for find. |
what. | std::vector<std::string> split | ( | const std::string & | str, |
| char | delim | ||
| ) |
Splits input string by delimiter.
| str | string to be split. |
| delim | delimiter by which str should be split. |
|
inline |
Converts string to a number with check if all chars of the string are 0-9. This function is only used when converting -j flag, which has to be positive, so 0 is technicaly also error.
| str | string representing a number. |
str, zero othrewise.