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 module~lua_parameters lua_parameters module~lua_fif->module~lua_parameters iso_c_binding iso_c_binding module~lua_fif->iso_c_binding 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_quadruple_top_module aot_quadruple_top_module module~aot_quadruple_top_module->module~flu_binding module~aot_err_module aot_err_module module~aot_quadruple_top_module->module~aot_err_module module~aot_fun_module aot_fun_module module~aot_fun_module->module~flu_binding module~aot_top_module aot_top_module module~aot_fun_module->module~aot_top_module module~aot_extdouble_fun_module aot_extdouble_fun_module module~aot_fun_module->module~aot_extdouble_fun_module module~aot_table_module aot_table_module module~aot_fun_module->module~aot_table_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_quadruple_table_module aot_quadruple_table_module module~aot_quadruple_table_module->module~flu_binding module~aot_quadruple_table_module->module~aot_quadruple_top_module module~aot_quadruple_table_module->module~aot_top_module module~aot_table_ops_module aot_table_ops_module module~aot_quadruple_table_module->module~aot_table_ops_module module~aot_quadruple_table_module->module~aot_err_module module~aot_top_module->module~flu_binding module~aot_top_module->module~aot_quadruple_top_module module~aot_top_module->module~aot_err_module module~aot_extdouble_top_module aot_extdouble_top_module module~aot_top_module->module~aot_extdouble_top_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_top_module module~aot_extdouble_vector_module->module~aot_table_ops_module module~aot_extdouble_vector_module->module~aot_extdouble_top_module module~aot_extdouble_fun_module->module~flu_binding module~aot_extdouble_fun_module->module~aot_table_module module~aot_extdouble_fun_module->module~aot_extdouble_top_module module~aot_table_ops_module->module~flu_binding module~aot_table_ops_module->module~aot_top_module module~aot_vector_module aot_vector_module module~aot_vector_module->module~flu_binding module~aot_vector_module->module~aot_top_module module~aot_vector_module->module~aot_extdouble_vector_module module~aot_vector_module->module~aot_table_ops_module module~aot_quadruple_vector_module aot_quadruple_vector_module module~aot_vector_module->module~aot_quadruple_vector_module module~aot_err_module->module~flu_binding module~aot_table_module->module~flu_binding module~aot_table_module->module~aot_quadruple_table_module module~aot_table_module->module~aot_top_module module~aot_table_module->module~aot_table_ops_module module~aot_table_module->module~aot_err_module module~aot_extdouble_table_module aot_extdouble_table_module module~aot_table_module->module~aot_extdouble_table_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_top_module module~aot_quadruple_vector_module->module~aot_table_ops_module module~aot_quadruple_fun_module->module~flu_binding module~aot_quadruple_fun_module->module~aot_quadruple_top_module module~aot_quadruple_fun_module->module~aot_table_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~aotus_module->module~flu_binding module~aotus_module->module~aot_top_module module~aotus_module->module~aot_vector_module module~aotus_module->module~aot_table_module module~aot_extdouble_top_module->module~flu_binding module~aot_extdouble_top_module->module~aot_err_module module~aot_extdouble_table_module->module~flu_binding module~aot_extdouble_table_module->module~aot_top_module module~aot_extdouble_table_module->module~aot_table_ops_module module~aot_extdouble_table_module->module~aot_err_module module~aot_extdouble_table_module->module~aot_extdouble_top_module module~aot_references_module->module~flu_binding module~aot_references_module->module~aot_table_ops_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

Contents


Interfaces

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: k

    Return Value integer(kind=c_int)

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=c_int), value:: index
    character(kind=c_char), dimension(*):: k

    Return Value integer(kind=c_int)

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), 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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    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="0")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    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="0")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=lua_int), value:: n

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=lua_int), value:: n

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    real(kind=c_double), value:: n

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=c_int), value:: index

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    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="0")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=c_int), value:: index
    character(kind=c_char), dimension(*):: k

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: k

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=c_int), value:: index

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    integer(kind=c_int), value:: index

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    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="0")

    Arguments

    TypeIntentOptionalAttributesName
    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

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: filename
    character(kind=c_char), dimension(*):: mode

    Return Value integer(kind=c_int)

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: buff
    integer(kind=c_size_t), value:: sz
    character(kind=c_char), dimension(*):: name
    character(kind=c_char), dimension(*):: mode

    Return Value integer(kind=c_int)

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: string

    Return Value integer(kind=c_int)

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: tname

    Return Value integer(kind=c_int)

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    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="0")

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L

interface

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

    Arguments

    TypeIntentOptionalAttributesName
    type(c_ptr), value:: L
    character(kind=c_char), dimension(*):: tname