lua_fif Module

This module provides a direct translation of some Lua 5.3.2 C-Interfaces to Fortran 2003 interfaces using the ISO_C_BINDING facilities.


Uses

  • module~~lua_fif~~UsesGraph module~lua_fif lua_fif iso_c_binding iso_c_binding module~lua_fif->iso_c_binding module~lua_parameters lua_parameters module~lua_fif->module~lua_parameters module~lua_parameters->iso_c_binding

Used by

  • module~~lua_fif~~UsedByGraph module~lua_fif lua_fif module~flu_binding flu_binding module~flu_binding->module~lua_fif module~aot_err_module aot_err_module module~aot_err_module->module~flu_binding module~aot_extdouble_fun_module aot_extdouble_fun_module module~aot_extdouble_fun_module->module~flu_binding module~aot_extdouble_top_module aot_extdouble_top_module module~aot_extdouble_fun_module->module~aot_extdouble_top_module module~aot_table_module aot_table_module module~aot_extdouble_fun_module->module~aot_table_module module~aot_extdouble_table_module aot_extdouble_table_module module~aot_extdouble_table_module->module~flu_binding module~aot_extdouble_table_module->module~aot_err_module module~aot_extdouble_table_module->module~aot_extdouble_top_module module~aot_table_ops_module aot_table_ops_module module~aot_extdouble_table_module->module~aot_table_ops_module module~aot_top_module aot_top_module module~aot_extdouble_table_module->module~aot_top_module module~aot_extdouble_top_module->module~flu_binding module~aot_extdouble_top_module->module~aot_err_module module~aot_extdouble_vector_module aot_extdouble_vector_module module~aot_extdouble_vector_module->module~flu_binding module~aot_extdouble_vector_module->module~aot_extdouble_top_module module~aot_extdouble_vector_module->module~aot_table_ops_module module~aot_extdouble_vector_module->module~aot_top_module module~aot_fun_module aot_fun_module module~aot_fun_module->module~flu_binding module~aot_fun_module->module~aot_extdouble_fun_module module~aot_quadruple_fun_module aot_quadruple_fun_module module~aot_fun_module->module~aot_quadruple_fun_module module~aot_references_module aot_references_module module~aot_fun_module->module~aot_references_module module~aot_fun_module->module~aot_table_module module~aot_fun_module->module~aot_top_module module~aot_path_module aot_path_module module~aot_path_module->module~flu_binding module~aot_path_module->module~aot_fun_module module~aot_path_module->module~aot_table_module module~aotus_module aotus_module module~aot_path_module->module~aotus_module module~aot_quadruple_fun_module->module~flu_binding module~aot_quadruple_top_module aot_quadruple_top_module module~aot_quadruple_fun_module->module~aot_quadruple_top_module module~aot_quadruple_fun_module->module~aot_table_module module~aot_quadruple_table_module aot_quadruple_table_module module~aot_quadruple_table_module->module~flu_binding module~aot_quadruple_table_module->module~aot_err_module module~aot_quadruple_table_module->module~aot_quadruple_top_module module~aot_quadruple_table_module->module~aot_table_ops_module module~aot_quadruple_table_module->module~aot_top_module module~aot_quadruple_top_module->module~flu_binding module~aot_quadruple_top_module->module~aot_err_module module~aot_quadruple_vector_module aot_quadruple_vector_module module~aot_quadruple_vector_module->module~flu_binding module~aot_quadruple_vector_module->module~aot_quadruple_top_module module~aot_quadruple_vector_module->module~aot_table_ops_module module~aot_quadruple_vector_module->module~aot_top_module module~aot_references_module->module~flu_binding module~aot_references_module->module~aot_table_ops_module module~aot_table_module->module~flu_binding module~aot_table_module->module~aot_err_module module~aot_table_module->module~aot_extdouble_table_module module~aot_table_module->module~aot_quadruple_table_module module~aot_table_module->module~aot_table_ops_module module~aot_table_module->module~aot_top_module module~aot_table_ops_module->module~flu_binding module~aot_table_ops_module->module~aot_top_module module~aot_top_module->module~flu_binding module~aot_top_module->module~aot_err_module module~aot_top_module->module~aot_extdouble_top_module module~aot_top_module->module~aot_quadruple_top_module module~aot_vector_module aot_vector_module module~aot_vector_module->module~flu_binding module~aot_vector_module->module~aot_extdouble_vector_module module~aot_vector_module->module~aot_quadruple_vector_module module~aot_vector_module->module~aot_table_ops_module module~aot_vector_module->module~aot_top_module module~aotus_module->module~flu_binding module~aotus_module->module~aot_table_module module~aotus_module->module~aot_top_module module~aotus_module->module~aot_vector_module program~test test program~test->module~flu_binding module~aot_extdouble_out_module aot_extdouble_out_module module~aot_extdouble_out_module->module~aot_extdouble_top_module module~aot_quadruple_out_module aot_quadruple_out_module module~aot_quadruple_out_module->module~aot_quadruple_top_module module~aot_out_module aot_out_module module~aot_out_module->module~aot_extdouble_out_module module~aot_out_module->module~aot_quadruple_out_module

Interfaces

interface

  • public function lua_getglobal(L, k) bind(c, name="lua_getglobal")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: k

    Return Value integer(kind=c_int)

interface

  • public function lua_getfield(L, index, k) bind(c, name="lua_getfield")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index
    character(kind=c_char, len=1), dimension(*) :: k

    Return Value integer(kind=c_int)

interface

  • public function lua_gettable(L, index) bind(c, name="lua_gettable")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public function lua_gettop(L) bind(c, name="lua_gettop")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L

    Return Value integer(kind=c_int)

interface

  • public function lua_isNumber(L, index) result(lua_isnumber) bind(c, name="lua_isnumber")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public function lua_isString(L, index) bind(c, name="lua_isstring")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public function lua_next(L, index) bind(c, name="lua_next")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public function lua_pcallk(L, nargs, nresults, errfunc, ctx, k) bind(c, name="lua_pcallk")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: nargs
    integer(kind=c_int), value :: nresults
    integer(kind=c_int), value :: errfunc
    integer(kind=c_int), value :: ctx
    type(c_ptr), value :: k

    Return Value integer(kind=c_int)

interface

  • public function lua_pushlstring(L, s, len) bind(c, name="lua_pushlstring")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: s
    integer(kind=c_size_t), value :: len

    Return Value type(c_ptr)

interface

  • public function lua_rawgeti(L, index, n) bind(c, name="lua_rawgeti")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index
    integer(kind=c_int), value :: n

    Return Value integer(kind=c_int)

interface

  • public function lua_tolstring(L, index, len) bind(c, name="lua_tolstring")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index
    integer(kind=c_size_t) :: len

    Return Value type(c_ptr)

interface

  • public function lua_tonumberx(L, index, isnum) bind(c, name="lua_tonumberx")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index
    integer(kind=c_int) :: isnum

    Return Value real(kind=lua_num)

interface

  • public function lua_toboolean(L, index) bind(c, name="lua_toboolean")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public function lua_touserdata(L, index) bind(c, name="lua_touserdata")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value type(c_ptr)

interface

  • public function lua_topointer(L, index) bind(c, name="lua_topointer")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_intptr_t)

interface

  • public function lua_type(L, index) bind(c, name="lua_type")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public function lua_getmetatable(L, index) bind(c, name="lua_getmetatable")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

    Return Value integer(kind=c_int)

interface

  • public subroutine lua_close(L) bind(c, name="lua_close")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L

interface

  • public subroutine lua_createtable(L, narr, nrec) bind(c, name="lua_createtable")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: narr
    integer(kind=c_int), value :: nrec

interface

  • public subroutine lua_pushinteger(L, n) bind(c, name="lua_pushinteger")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=lua_int), value :: n

interface

  • public subroutine lua_pushboolean(L, n) bind(c, name="lua_pushboolean")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=lua_int), value :: n

interface

  • public subroutine lua_pushnil(L) bind(c, name="lua_pushnil")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L

interface

  • public subroutine lua_pushnumber(L, n) bind(c, name="lua_pushnumber")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    real(kind=c_double), value :: n

interface

  • public subroutine lua_pushvalue(L, index) bind(c, name="lua_pushvalue")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

interface

  • public subroutine lua_rotate(L, idx, n) bind(c, name="lua_rotate")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: idx
    integer(kind=c_int), value :: n

interface

  • public subroutine lua_setfield(L, index, k) bind(c, name="lua_setfield")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index
    character(kind=c_char, len=1), dimension(*) :: k

interface

  • public subroutine lua_setglobal(L, k) bind(c, name="lua_setglobal")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: k

interface

  • public subroutine lua_settable(L, index) bind(c, name="lua_settable")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

interface

  • public subroutine lua_settop(L, index) bind(c, name="lua_settop")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: index

interface

  • public subroutine lua_pushcclosure(L, c_fn, n) bind(c, name="lua_pushcclosure")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    type(c_funptr), value :: c_fn
    integer(kind=c_int), value :: n

interface

  • public subroutine lua_pushlightuserdata(L, ptr) bind(c, name="lua_pushlightuserdata")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    type(c_ptr), value :: ptr

interface

  • public function luaL_newstate() bind(c, name="luaL_newstate")

    Arguments

    None

    Return Value type(c_ptr)

interface

  • public function luaL_loadfilex(L, filename, mode) bind(c, name="luaL_loadfilex")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: filename
    character(kind=c_char, len=1), dimension(*) :: mode

    Return Value integer(kind=c_int)

interface

  • public function luaL_loadbufferx(L, buff, sz, name, mode) bind(c, name="luaL_loadbufferx")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: buff
    integer(kind=c_size_t), value :: sz
    character(kind=c_char, len=1), dimension(*) :: name
    character(kind=c_char, len=1), dimension(*) :: mode

    Return Value integer(kind=c_int)

interface

  • public function luaL_loadstring(L, string) bind(c, name="luaL_loadstring")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: string

    Return Value integer(kind=c_int)

interface

  • public function luaL_newmetatable(L, tname) bind(c, name="luaL_newmetatable")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: tname

    Return Value integer(kind=c_int)

interface

  • public function luaL_ref(L, t) bind(c, name="luaL_ref")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    integer(kind=c_int), value :: t

    Return Value integer(kind=c_int)

interface

  • public subroutine luaL_openlibs(L) bind(c, name="luaL_openlibs")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L

interface

  • public subroutine luaL_setmetatable(L, tname) bind(c, name="luaL_setmetatable")

    Arguments

    Type IntentOptional Attributes Name
    type(c_ptr), value :: L
    character(kind=c_char, len=1), dimension(*) :: tname