Path: ...!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.lang.awk Subject: (Gawk) What is the function of the (new) third arg to an extension function? Date: Tue, 22 Apr 2025 12:03:27 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: Injection-Date: Tue, 22 Apr 2025 12:03:27 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="2238330"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack) Bytes: 1587 Lines: 21 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? -- b w r w g y b r y b