|
Parallel Make
1.0
My implementation of make utility, which can run in multiple threads according to user request.
|
#include <string>#include <iostream>#include <fstream>#include <sstream>#include <unordered_map>#include <stdexcept>#include <cstdio>#include <cstring>#include <getopt.h>#include <unistd.h>#include <fcntl.h>#include <sys/stat.h>#include "main.hpp"#include "pmake.hpp"#include "pmake_options.hpp"Functions | |
| int | main (int argc, char *argv[]) |
| std::vector< std::string > | split (const std::string &str, char delim) |
| std::string & | replace (std::string &what, const std::string &find, const std::string &replace) |
| std::string & | replace (std::string &what, const std::string &find, const makefile_record::dependencies &replaces) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| 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::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::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. |