Lines Matching refs:argtype
676 local argtype = trim(arg:gsub(argname .. "$", ""), nil)
678 if argtype == "" and argname == "void" then
684 changes_abi = changes_abi or (abi_changes("pair_64bit") and is64bittype(argtype))
686 argtype = argtype:gsub("intptr_t", config.abi_intptr_t)
687 argtype = argtype:gsub("semid_t", config.abi_semid_t)
688 if isptrtype(argtype) then
689 argtype = argtype:gsub("size_t", config.abi_size_t)
690 argtype = argtype:gsub("^long", config.abi_long);
691 argtype = argtype:gsub("^u_long", config.abi_u_long);
692 argtype = argtype:gsub("^const u_long", "const " .. config.abi_u_long);
693 elseif argtype:find("^long$") then
694 argtype = config.abi_long
696 if isptrarraytype(argtype) and config.abi_ptr_array_t ~= "" then
698 argtype = argtype:gsub("[*][ ]*const[ ]*[*]", "**")
700 argtype = argtype:gsub("[^*]*[*]", config.abi_ptr_array_t .. " ", 1)
706 argtype = argtype:gsub("(struct [^ ]*)", "%1" ..
708 argtype = argtype:gsub("(union [^ ]*)", "%1" ..
712 if abi_changes("pair_64bit") and is64bittype(argtype) then
729 type = argtype,
770 local argtype, argname, desc, padding
773 argtype = arg.type
776 argtype = trim(argtype:gsub("__restrict$", ""), nil)
777 if argtype == "int" and argname == "_pad" and abi_changes("pair_64bit") then
781 if argtype:find("*") then
782 desc = "userland " .. argtype
784 desc = argtype;
789 if argtype == "int" and argname == "_pad" and abi_changes("pair_64bit") then
794 if isptrtype(argtype) then
798 argname, argtype))
799 elseif argtype == "union l_semun" then
802 argname, argtype))
803 elseif argtype:sub(1,1) == "u" or argtype == "size_t" then
806 argname, argtype))
808 if argtype == "int" and argname == "_pad" and abi_changes("pair_64bit") then
813 argname, argtype))
814 if argtype == "int" and argname == "_pad" and abi_changes("pair_64bit") then
846 local argname, argtype = v.name, v.type
847 if argtype == "int" and argname == "_pad" and abi_changes("pair_64bit") then
852 argname, argtype,
853 argtype, argname,
854 argname, argtype))
855 if argtype == "int" and argname == "_pad" and abi_changes("pair_64bit") then
975 local argname, argtype = v.name, v.type
978 argname, argtype,
979 argtype, argname,
980 argname, argtype))