From 69b4b8bdde76b5aee6befa2b66957db22b3f6353 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 7 Dec 2004 16:54:58 +0000 Subject: 20605: Use separate structure with get/set/unset methods fro parameters. Separate justification width of parameters from base/precision. --- Src/Modules/system.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/Modules/system.c') diff --git a/Src/Modules/system.c b/Src/Modules/system.c index f292c1924..3f932c9fa 100644 --- a/Src/Modules/system.c +++ b/Src/Modules/system.c @@ -358,6 +358,8 @@ static struct builtin bintab[] = { BUILTIN("syswrite", 0, bin_syswrite, 1, 1, 0, "c:o:", NULL), }; +static const struct gsu_array errnos_gsu = +{ errnosgetfn, arrsetfn, stdunsetfn }; /* The load/unload routines required by the zsh library interface */ @@ -390,9 +392,7 @@ boot_(Module m) if (!(pm_nos = createparam("errnos", PM_ARRAY|PM_SPECIAL|PM_READONLY| PM_HIDE|PM_HIDEVAL|PM_REMOVABLE))) return 1; - pm_nos->gets.afn = errnosgetfn; - pm_nos->sets.afn = arrsetfn; - pm_nos->unsetfn = stdunsetfn; + pm_nos->gsu.a = &errnos_gsu; if (!addbuiltins(m->nam, bintab, sizeof(bintab)/sizeof(*bintab))) { tidyparam(pm_nos); -- cgit v1.2.3