• R/O
  • SSH

aotus: コミット

Repository for the aotus library is now located at https://github.com/apes-suite/aotus


コミットメタ情報

リビジョンbfb6dafab79adb08968c0846638953421549ef67 (tree)
日時2012-04-26 03:31:49
作者Harald Klimach <harald@klim...>
コミッターHarald Klimach

ログメッセージ

Some more formatting

変更サマリ

差分

diff -r 13732b56eb5b -r bfb6dafab79a source/aot_fun_module.f90
--- a/source/aot_fun_module.f90 Wed Apr 25 20:20:47 2012 +0200
+++ b/source/aot_fun_module.f90 Wed Apr 25 20:31:49 2012 +0200
@@ -1,4 +1,5 @@
11 !> A module providing access to Lua functions
2+!!
23 !! Intended usage:
34 !! First open a function with aot_fun_open
45 !! Then put required parameters inot it with
@@ -21,6 +22,7 @@
2122 end type
2223
2324 !> Open a Lua function for evaluation.
25+ !!
2426 !! After it is opened, arguments might be
2527 !! put into the function, and it might be
2628 !! executed. This might be repeated for
@@ -33,6 +35,7 @@
3335 end interface aot_fun_open
3436
3537 !> Put an argument into the lua function.
38+ !!
3639 !! Arguments have to be in order, first put
3740 !! the first argument then the second and so on.
3841 interface aot_fun_put
@@ -42,6 +45,7 @@
4245 contains
4346
4447 !> Return the stack of the top as a function.
48+ !!
4549 !! If it actually is not a Lua function, its handle
4650 !! will be set to 0.
4751 function aot_fun_top(L) result(fun)
diff -r 13732b56eb5b -r bfb6dafab79a source/aot_out_module.f90
--- a/source/aot_out_module.f90 Wed Apr 25 20:20:47 2012 +0200
+++ b/source/aot_out_module.f90 Wed Apr 25 20:31:49 2012 +0200
@@ -864,6 +864,7 @@
864864
865865 !> Helper function to provide new unit, as long as F2008 newunit argument
866866 !! in open statement is not commonly available.
867+ !!
867868 !! To be used right in front of the open statement like this:
868869 !! myUnit = newunit()
869870 !! open(myUnit, ...)
diff -r 13732b56eb5b -r bfb6dafab79a source/aot_table_module.f90
--- a/source/aot_table_module.f90 Wed Apr 25 20:20:47 2012 +0200
+++ b/source/aot_table_module.f90 Wed Apr 25 20:31:49 2012 +0200
@@ -18,9 +18,11 @@
1818 contains
1919
2020 !> Return the position at the top of the stack as a
21- !! table handle for further operations on that table,
22- !! if it actually exists and is a table. Otherwise
23- !! 0 will be returned.
21+ !! table handle.
22+ !!
23+ !! If it actually exists and is a table, this handle can be used
24+ !! for further operations on that table.
25+ !! Otherwise a 0 will be returned.
2426 function aot_table_top(L) result(thandle)
2527 type(flu_state) :: L
2628 integer :: thandle
@@ -32,8 +34,10 @@
3234 end if
3335 end function aot_table_top
3436
35- !> Load a globally defined table into the top of the stack
36- !! and return its position in the stack as a handle for this
37+
38+ !> Load a globally defined table into the top of the stack.
39+ !!
40+ !! Return its position in the stack as a handle for this
3741 !! table. If it does not exist or the global variable is not
3842 !! a table, the handle will be set to 0.
3943 subroutine aot_table_global(L, thandle, key)
@@ -46,6 +50,7 @@
4650 thandle = aot_table_top(L)
4751 end subroutine aot_table_global
4852
53+
4954 !> This subroutine tries to get a table in a table, and
5055 !! return a handle for it.
5156 subroutine aot_table_table(L, parent, thandle, key, pos)
@@ -59,8 +64,10 @@
5964 thandle = aot_table_top(L)
6065 end subroutine aot_table_table
6166
62- !> Close a table again, by popping all values above and itself
63- !! from the stack.
67+
68+ !> Close a table again.
69+ !!
70+ !! This is done by popping all values above and itself from the stack.
6471 subroutine aot_table_close(L, thandle)
6572 type(flu_state) :: L
6673 integer, intent(in) :: thandle
@@ -68,6 +75,7 @@
6875 if (thandle > 0) call flu_settop(L, thandle-1)
6976 end subroutine aot_table_close
7077
78+
7179 !> This subroutine tries to push the value of table thandle on
7280 !! the lua stack, or if this fails, the entry at position pos
7381 !! of the table. If no corresponding value is found, a nil
@@ -114,8 +122,11 @@
114122
115123 end subroutine aot_table_getval
116124
125+
117126 !> Load the first key-value pair of table thandle on the
118- !! stack. This serves as an entry point, further traversal
127+ !! stack.
128+ !!
129+ !! This serves as an entry point, further traversal
119130 !! can be done by flu_next(L, thandle).
120131 !! If there are no entries in the table the function
121132 !! returns false, otherwise the result will be true.
@@ -132,6 +143,7 @@
132143 end if
133144 end function aot_table_first
134145
146+
135147 !> Count the entries in a lua table.
136148 function aot_table_length(L, thandle) result(length)
137149 type(flu_state) :: L
旧リポジトリブラウザで表示