Re: (Gawk) What is the function of the (new) third arg to an extension function?

Liste des GroupesRevenir à cl awk 
Sujet : Re: (Gawk) What is the function of the (new) third arg to an extension function?
De : mcollado2011 (at) *nospam* gmail.com (Manuel Collado)
Groupes : comp.lang.awk
Date : 23. Apr 2025, 10:38:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vuace5$2ngck$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
El 22/4/25 a las 14:03, Kenny McCormack escribió:
In the process of porting one of my extension functions to the latest GAWK
(5.3.2), I noticed that extension functions now take a third arg, whose
purpose is unknown (to me, anyway).
 What used to be: do_something(nargs, result)
is now: do_something(nargs, result, unused)
 But nobody knows what unused is used for.  Note that if you compile (as I
do) with -W -Wall -Werror, then you need to add:
      (void) unused;
 somewhere in the function in order to silence the "unused parameter" warning.
 In awk.h and gawkapi.h, this third parameter is referred to as "finfo", but
I can find no other reference to finfo anywhere else.
 So, can anyone shed any light on what this third parameter is for, and why
it is called "unused" in some places, and "finfo" in others?
 
I think this is documented in the manual:
https://www.gnu.org/software/gawk/manual/html_node/Extension-Functions.html
HTH.

Date Sujet#  Auteur
22 Apr 25 * (Gawk) What is the function of the (new) third arg to an extension function?2Kenny McCormack
23 Apr 25 `- Re: (Gawk) What is the function of the (new) third arg to an extension function?1Manuel Collado

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal