mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
20605: Use separate structure with get/set/unset methods fro parameters.
Separate justification width of parameters from base/precision.
This commit is contained in:
parent
ddc186f3f6
commit
69b4b8bdde
22 changed files with 1042 additions and 819 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue