Lines Matching refs:params
187 map_coreop[".define_2"] = function(params, nparams)
188 if not params then return nparams == 1 and "name" or "name, subst" end
189 local name, def = params[1], params[2] or "1"
301 map_coreop[".if_1"] = function(params)
302 if not params then return "condition" end
304 local res = cond_eval(params[1])
310 map_coreop[".elif_1"] = function(params)
311 if not params then return "condition" end
318 res = cond_eval(params[1])
327 map_coreop[".else_0"] = function(params)
338 map_coreop[".endif_0"] = function(params)
367 map_coreop[".include_1"] = function(params)
368 if not params then return "filename" end
369 local name = params[1]
435 map_op[opname] = function(params)
436 if not params then return mparams, lines end
442 for i,mp in ipairs(mparams) do subst[mp] = params[i] end
470 map_coreop[".endmacro_0"] = function(params)
480 local params, lines = map_op[opname]()
481 out:write(format(" %-20s %s\n", name, concat(params, ", ")))
508 map_coreop[".capture_1"] = function(params)
509 if not params then return "name" end
511 local name = params[1]
528 map_coreop[".endcapture_0"] = function(params)
538 map_coreop[".dumpcapture_1"] = function(params)
539 if not params then return "name" end
541 local name = params[1]
591 map_coreop[".section_*"] = function(params)
592 if not params then return "name..." end
595 for sn,name in ipairs(params) do
603 map_op[opname] = function(params) g_arch.section(sn-1) end
695 map_op[".arch_1"] = function(params)
696 if not params then return "name" end
697 local err = loadarch(params[1])
705 map_coreop[".arch_1"] = function(params)
706 if not params then return "name" end
713 map_coreop[".nop_*"] = function(params)
714 if not params then return "[ignored...]" end
718 map_coreop[".error_1"] = function(params)
719 if not params then return "message" end
720 werror(params[1])
723 map_coreop[".fatal_1"] = function(params)
724 if not params then return "message" end
725 wfatal(params[1])
776 local params = {}
778 params[#params+1] = gsub(p, "%s+$", "")
780 if #params > 16 then werror("too many parameters") end
782 params.op = op
783 return op, params
804 local op, params = splitstmt(stmt)
807 local f = map_op[op.."_"..#params] or map_op[op.."_*"]
821 map_op[".template__"](params, f)
823 f(params)