Harald Klimach avatar Harald Klimach committed dfe8bd8

Moved fun_type declaration into a module of its own

Comments (0)

Files changed (3)

source/aot_fun_declaration_module.f90

+module aot_fun_declaration_module
+
+  implicit none
+
+  type aot_fun_type
+    integer :: handle = 0
+    integer :: arg_count = 0
+  end type
+
+  public :: aot_fun_type
+
+  private
+
+end module aot_fun_declaration_module

source/aot_fun_module.f90

 module aot_fun_module
   use flu_binding
   use aot_kinds_module, only: double_k, single_k
+  use aot_fun_declaration_module, only: aot_fun_type
   use aot_table_module, only: aot_table_push
   use aot_top_module, only: aot_err_handler
 
 
   public :: aot_fun_type, aot_fun_open, aot_fun_close, aot_fun_put, aot_fun_do
 
-  type aot_fun_type
-    integer :: handle = 0
-    integer :: arg_count = 0
-  end type
-
   !> Open a Lua function for evaluation.
   !!
   !! After it is opened, arguments might be put into the function, and it might
     aotus_sources = ['source/aotus_module.f90',
                      'source/aot_err_module.f90',
                      'source/aot_fun_module.f90',
+                     'source/aot_fun_declaration_module.f90',
                      'source/aot_kinds_module.f90',
                      'source/aot_table_module.f90',
                      'source/aot_table_ops_module.f90',
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.