This subroutine opens all the tables on the way to the final head node,
which ought to be a function.
The given fun object is then filled by an aot_fun_open
on the head of the given path.
The handle can be either passed in, to be used for the
look up of the path, or, when specifying the optional
openLua argument as true, it will return the handle to
the newly opened Lua script.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
subroutine aot_path_open_fun(me,conf,fun,openLua)!> The path object to open as a functiontype(aot_path_type),intent(inout)::me!> The flu_state handle, which is either opened according to!! the path, or used to open the path in.type(flu_state)::conf!> The opened functiontype(aot_fun_type),intent(out)::fun!> A flag to indicate, wether to open the Lua script, default!! is false, in which case the conf argument has to link to!! an actual Lua state handle.logical,intent(in),optional::openLuainteger::myHandle=0! open the table until it reaches the final head nodecall aot_path_open_table(me,conf,myHandle,openLua)if(me%head%NodeType=='function')then select case(me%head%ID_kind)case('key')if(associated(me%head,me%GlobalNode))then call aot_fun_open(L=conf,fun=fun,key=me%head%key)else call aot_fun_open(L=conf,parent=myHandle,fun=fun,key=me%head%key)end if case('position')call aot_fun_open(L=conf,parent=myHandle,fun=fun,pos=me%head%pos)end select end if end subroutine aot_path_open_fun