namespace PT renamed to pt

This commit is contained in:
2021-05-20 20:59:12 +02:00
parent d66a36cf21
commit e48a28a5c8
100 changed files with 597 additions and 597 deletions

View File

@@ -73,13 +73,13 @@ void copy_space(const std::vector<Ezc::Var> & params, std::vector<std::wstring>
}
PT::Space * find_space(const std::vector<Ezc::Var> & params, PT::Space & space, size_t level = 0)
pt::Space * find_space(const std::vector<Ezc::Var> & params, pt::Space & space, size_t level = 0)
{
if( level + 1 < params.size() && space.child_spaces )
{
for(size_t i=0 ; i<space.child_spaces->size() ; ++i)
{
PT::Space & child = *(*space.child_spaces)[i];
pt::Space & child = *(*space.child_spaces)[i];
if( child.name && *child.name == params[level].str )
return find_space(params, child, level+1);
@@ -107,7 +107,7 @@ PT::Space * find_space(const std::vector<Ezc::Var> & params, PT::Space & space,
struct SpaceInfo
{
bool inited;
PT::Space * last_space;
pt::Space * last_space;
std::vector<std::wstring> spaces;
SpaceInfo()
@@ -117,14 +117,14 @@ struct SpaceInfo
}
};
static std::map<PT::Space*, SpaceInfo> spaces_map;
static std::map<pt::Space*, SpaceInfo> spaces_map;
static size_t space_reqid = 0;
void space_init(const std::vector<Ezc::Var> & params, PT::Space & space, SpaceInfo & space_info)
void space_init(const std::vector<Ezc::Var> & params, pt::Space & space, SpaceInfo & space_info)
{
if( !space_info.inited || !are_spaces_the_same(params, space_info.spaces) )
{
@@ -145,7 +145,7 @@ void space_check_reqid()
}
void space_value(Info & i, PT::Space & space, bool escape)
void space_value(Info & i, pt::Space & space, bool escape)
{
space_check_reqid();
@@ -183,7 +183,7 @@ struct SpaceTabStackItem : public Ezc::FunData
void space_list_tab(Info & i, PT::Space & space)
void space_list_tab(Info & i, pt::Space & space)
{
if( !i.stack.fun_data )
{
@@ -192,7 +192,7 @@ void space_list_tab(Info & i, PT::Space & space)
SpaceTabStackItem * stack_item = new SpaceTabStackItem();
i.stack.fun_data = stack_item;
PT::Space * dst_space = find_space(i.params, space);
pt::Space * dst_space = find_space(i.params, space);
if( dst_space )
dst_space->to_list(i.params.back().str, stack_item->values);
@@ -209,7 +209,7 @@ void space_list_tab(Info & i, PT::Space & space)
void space_list_tab_value(Info & i, PT::Space & space, const std::wstring & function_name)
void space_list_tab_value(Info & i, pt::Space & space, const std::wstring & function_name)
{
Ezc::Stack * stack;
auto user_object = i.FindUserObject<SpaceTabStackItem>(function_name, &stack);
@@ -219,7 +219,7 @@ void space_list_tab_value(Info & i, PT::Space & space, const std::wstring & func
}
void space_list_tab_has_next(Info & i, PT::Space & space, const std::wstring & function_name)
void space_list_tab_has_next(Info & i, pt::Space & space, const std::wstring & function_name)
{
Ezc::Stack * stack;
auto user_object = i.FindUserObject<SpaceTabStackItem>(function_name, &stack);