mirror of
https://github.com/boostorg/build.git
synced 2026-02-22 03:12:16 +00:00
43 lines
929 B
C++
43 lines
929 B
C++
/*
|
|
* 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
|