mirror of
https://github.com/NixOS/nix.git
synced 2025-12-23 01:11:07 +01:00
* Refactorings.
This commit is contained in:
parent
ab350eafd2
commit
6f1a0f948d
14 changed files with 635 additions and 605 deletions
18
src/exec.hh
Normal file
18
src/exec.hh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef __EXEC_H
|
||||
#define __EXEC_H
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
/* A Unix environment is a mapping from strings to strings. */
|
||||
typedef map<string, string> Environment;
|
||||
|
||||
|
||||
/* Run a program. */
|
||||
void runProgram(const string & program, Environment env);
|
||||
|
||||
|
||||
#endif /* !__EXEC_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue