19 lines
569 B
C++
19 lines
569 B
C++
#ifndef RESOLVE_HPP
|
|
#define RESOLVE_HPP
|
|
|
|
#include "struc.hpp"
|
|
#include "parse.hpp"
|
|
|
|
extern std::vector<std::string> included;
|
|
|
|
std::vector<std::pair<std::string, std::string>> do_include_raw(condlist_t* cmd, parse_context ctx, std::string* ex_dir=nullptr);
|
|
std::pair<std::string, std::string> do_resolve_raw(condlist_t* cmd, parse_context ctx, std::string* ex_dir=nullptr);
|
|
|
|
bool add_include(std::string const& file);
|
|
|
|
void resolve(_obj* sh, parse_context ctx);
|
|
|
|
std::string _pre_cd(std::string const& filename);
|
|
void _cd(std::string const& dir);
|
|
|
|
#endif //RESOLVE_HPP
|