bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

declaring function pointers with explicit prototypes for the info reader


From: Patrice Dumas
Subject: declaring function pointers with explicit prototypes for the info reader
Date: Sun, 16 Jun 2024 16:29:10 +0200

Hello,

In standalone info reader code in info/ most function pointers are
declared as a generic function pointer VFunction *, defined in info.h as

typedef void VFunction ();

I think that it would be much better to use actual prototypes depending
on the functions to have type checking by the compiler.  I started doing
that and did not find any evident issue with having explicit prototypes,
but I may be missing something.

Would there be any reason not to have explicit prototypes?

-- 
Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]