模組:沙盒/CS1-output
外观
local p = {}
function p.testidiots()
dumb=require( "Module:Citation/CS1/Configuration")
stupid="<source lang=\"C\">\nstatic void ini_marks()\n{\n\tCS1_args=hashini();\n"
table.sort(dumb.aliases)
for idiot, jackass in pairs(dumb.aliases) do
if(string.find(tostring(idiot),"#")==nil) then
if(type(jackass)=="table") then
for fool, retarded in ipairs(jackass) do
if(string.find(tostring(retarded),"#")==nil) then stupid=stupid.."\tstr_hashadd(CS1_args, \""..string.gsub(tostring(retarded),"_"," ").."\", offset_table+O_"..tostring(idiot)..");\n" end
end
else
if(type(jackass)=="string") then
if(string.find(jackass,"#")==nil) then stupid=stupid.."\tstr_hashadd(CS1_args, \""..string.gsub(jackass,"_"," ").."\", offset_table+O_"..tostring(idiot)..");\n" end
end
end
end
end
table.sort(dumb.id_handlers)
for idiot, jackass in pairs(dumb.id_handlers) do
for fool, retarded in ipairs(jackass.parameters) do
stupid=stupid.."\tstr_hashadd(CS1_args, \""..string.gsub(tostring(retarded),"_"," ").."\", offset_table+O_"..tostring(idiot)..");\n"
end
end
stupid=stupid.."\treturn;\n}\n</source>"
return stupid
end
return p