pub fn getalias(
_alht: *mut HashTable,
_ht: *mut HashTable,
name: &str,
flags: i32,
) -> Option<Param>Expand description
Direct port of getalias(HashTable alht, UNUSED(HashTable ht), const char *name, int flags) from Src/Modules/parameter.c:1900.
C body (c:1906-1919):
pm.node.nam = name;
assignaliasdefs(pm, flags);
if (al = alht[name]; flags == al->node.flags)
pm->u.str = al->text;
else { pm->u.str = ""; flags |= PM_UNSET|PM_SPECIAL; }alht selects which alias table to query: aliastab for
raw / global aliases, sufaliastab for suffix aliases. Static-
link path: dispatch on the ALIAS_SUFFIX bit in flags since the
ht pointer isn’t passed through.
Port of getalias(HashTable alht, UNUSED(HashTable ht), const char *name, int flags) from Src/Modules/parameter.c:1901.
WARNING: param names don’t match C — Rust=(_alht, _ht, flags) vs C=(alht, ht, name, flags)