Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mapfile and unset: Does this actually work?



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