Parallel Make  1.0
My implementation of make utility, which can run in multiple threads according to user request.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
main.cpp File Reference
#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)
 

Function Documentation

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.

Parameters
whatString to search in.
findSubstring to look for.
replaceSubstring to be replaced for find.
Returns
reference to 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.

See also
replace(std::string&, const std::string&, const std::string&)
Parameters
whatString to search in.
findSubstring to look for.
replacesstd::vector to be serialized and replaced for find.
Returns
reference to what.
std::vector<std::string> split ( const std::string &  str,
char  delim 
)

Splits input string by delimiter.

Parameters
strstring to be split.
delimdelimiter by which str should be split.
Returns
new std::vector of strings.