Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: mapfile and unset: Does this actually work?
- X-seq: zsh-workers 52498
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: mapfile and unset: Does this actually work?
- Date: Sun, 21 Jan 2024 19:25:28 -0800
- Archived-at: <https://zsh.org/workers/52498>
- In-reply-to: <CAH+w=7ZQfwdNLPS1=Z4mWpV--Uedft3M-gSwD3Qn-3PxfK3O_A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7ZQfwdNLPS1=Z4mWpV--Uedft3M-gSwD3Qn-3PxfK3O_A@mail.gmail.com>
On Sun, Jan 21, 2024 at 6:05 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> Looking at the code:
>
> static const struct gsu_hash mapfiles_gsu =
> { hashgetfn, setpmmapfiles, stdunsetfn };
>
> There is an unsetpmmapfile function but it doesn't seem to be used
Oops, found the use:
static const struct gsu_scalar mapfile_gsu =
{ strgetfn, setpmmapfile, unsetpmmapfile };
static struct paramdef partab[] = {
SPECIALPMDEF("mapfile", 0, &mapfiles_gsu, getpmmapfile, scanpmmapfile)
};
Naming (singular vs plural) is a bit confusing here.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author