jas43 committed df1b2f5

Consistent naming scheme. Warning: API change.

Rename open_config to open_config_file.
Rename load_string to open_config_chunk.

  • Participants
  • Parent commits c177c62

Comments (0)

Files changed (3)

File sample/aotus_sample.f90

 program aotus_sample
   use aot_kinds_module, only: double_k
-  use aotus_module, only: flu_State, open_config, close_config, aot_get_val, &
+  use aotus_module, only: flu_State, open_config_file, close_config, aot_get_val, &
     &                     aot_top_get_val, &
     &                     aoterr_Fatal, aoterr_WrongType, aoterr_NonExistent
   use aot_table_module, only: aot_table_open, aot_table_close, aot_table_length
   real(kind=double_k) :: coord(3)
   real(kind=double_k) :: results
-  call open_config(L = conf, filename = 'config.lua', ErrCode = iError)
+  call open_config_file(L = conf, filename = 'config.lua', ErrCode = iError)
   if (iError /= 0) then
     write(*,*) 'FATAL Error when opening the Lua config file'

File source/aot_path_module.f90

 !! and store at in the level, to which you might need to return later.
 module aot_path_module
   use flu_binding, only: flu_State
-  use aotus_module, only: open_config, close_config
+  use aotus_module, only: open_config_file, close_config
   use aot_table_module, only: aot_table_open, aot_table_close
   use aot_fun_module, only: aot_fun_type, aot_fun_open, aot_fun_close
     end if
     if (new_conf) then
-      call open_config(conf, me%LuaFilename)
+      call open_config_file(conf, me%LuaFilename)
     end if
     curNode => me%GlobalNode

File source/aotus_module.f90

   public :: aot_get_val
-  public :: open_config, close_config
-  public :: load_chunk
+  public :: open_config_file, close_config
+  public :: open_config_chunk
   ! Entities inherited from aot_top_module, published here to
   ! allow most functionality by "use aotus_module".
-  subroutine open_config(L, filename, ErrCode, ErrString)
+  subroutine open_config_file(L, filename, ErrCode, ErrString)
     type(flu_State) :: L
     character(len=*), intent(in) :: filename
     integer, intent(out), optional :: ErrCode
     end if
-  end subroutine open_config
+  end subroutine open_config_file
   subroutine close_config(L)
   end subroutine get_config_string
-  subroutine load_chunk(L, chunk, ErrCode, ErrString)
+  subroutine open_config_chunk(L, chunk, ErrCode, ErrString)
     type(flu_State) :: L
     character(len=*), intent(in) :: chunk
     integer, intent(out), optional :: ErrCode
     end if
-  end subroutine load_chunk
+  end subroutine open_config_chunk
 end module aotus_module