pub fn getfunction(_ht: *mut HashTable, name: &str, dis: i32) -> Option<Param>Expand description
Direct port of getfunction(UNUSED(HashTable ht), const char *name, int dis) from Src/Modules/parameter.c:389.
C body (c:392-441):
pm.node.nam = name; pm.node.flags = PM_SCALAR;
pm.gsu.s = dis ? &pmdisfunction_gsu : &pmfunction_gsu;
if (shf = shfunctab[name]; shf matches dis) {
if (PM_UNDEFINED) pm.u.str = "builtin autoload -X" + flags;
else { build "{\n\t<body>\n\t<name> "$@"" if EF_RUN; getpermtext };
} else { pm.u.str = ""; flags |= PM_UNSET|PM_SPECIAL; }WARNING: param names don’t match C — Rust=() vs C=(ht, name, dis)