-
-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathcwd.h
42 lines (33 loc) · 929 Bytes
/
cwd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright 2002. Vladimir Prus
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.txt or copy at
* https://www.bfgroup.xyz/b2/LICENSE.txt)
*/
/*
* cwd.h - manages the current working folder information
*/
#ifndef CWD_H
#define CWD_H
#include "config.h"
#include "object.h"
#include <string>
/* cwd() - returns the current working folder */
OBJECT * cwd( void );
namespace b2
{
const std::string & cwd_str();
}
/* cwd_init() - initialize the cwd module functionality
*
* The current working folder can not change in Boost Jam so this function
* gets the current working folder information from the OS and stores it
* internally.
*
* Expected to be called at program startup before the program's current
* working folder has been changed
*/
void cwd_init( void );
/* cwd_done() - cleans up the cwd module functionality */
void cwd_done( void );
#endif