jas43 avatar jas43 committed df1b2f5

Consistent naming scheme. Warning: API change.

Rename open_config to open_config_file.
Rename load_string to open_config_chunk.

Comments (0)

Files changed (3)

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'
     STOP

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

source/aotus_module.f90

   private
 
   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".
 
 contains
 
-  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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.