#1112132 cproto: fails to recognise some functions as functions in some contexts?

Package:
cproto
Source:
cproto
Description:
utilities to generate C function prototypes from C source code
Submitter:
наб
Date:
2025-09-02 15:31:03 UTC
Severity:
normal
Tags:
#1112132#5
Date:
2025-08-26 19:06:17 UTC
From:
To:
Dear Maintainer,

(This is not like #1112128 which is about unbalanced { from #if.)

If you dget src:tgif 1:4.2.5-2 and run
  cproto -a -{P,F,C}"int f(a, b)" tangram2.c
most functions will be transformed, but not all:
  struct ObjRec *createStartSimulatorButton( runs, event, trans, time, mode )
  char *runs;
  char *event;
  char *trans;
  char *time;
  char *mode;
  {


  struct ObjRec *createSimulationStepButton( time, anim, delay, step )
  char *time;
  char *anim;
  char *delay;
  char *step;
  {
are unaffected.

I have /not/ been able to reduce a reproducer by just copying out
the affected functions and their surroundings. In that context they do
get transformed as well.

Best,

#1112132#10
Date:
2025-08-26 19:41:19 UTC
From:
To:
The same appears to happen to tgcwdl.c's ValidateNumber().
#1112132#15
Date:
2025-09-01 19:58:31 UTC
From:
To:
           ^^ the "-a" option is probably the reason, still
#1112132#18
Date:
2025-09-01 19:58:31 UTC
From:
To:
           ^^ the "-a" option is probably the reason, still
#1112132#23
Date:
2025-09-02 15:28:56 UTC
From:
To:
Version: 4.7y-1
I've reviewed the 4.7y-1 manual, and I think if I had it while doing the
tgif conversion I would not have felt the need to have opened the bugs,
which is equivalent to being fixed. Thus, closing; thanks.
Nor do I think this would be a good use of anyone's time, frankly.

Best,