Re: freefunc - name clash with Python.h

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

 



> On 21 Jun 2020, at 1:20 pm, Dan Kegel <dank@xxxxxxxxx> wrote:
> 
> Openssl should probably stop using generic identifiers like freefunc
> in its header files, out of sheer self-defense.

I'd long held an apparently minority opinion among OpenSSL team members
that prototypes in header files MUST NOT name any variables, and should
only mention their types, precisely to avoid this sort of issue.  Thus,
e.g.:

	int foo(char *, int);

rather than:

	int foo(char *buf, int len);

Variable names in header files are no substitute for documentation, and
are all too prone to precisely this sort of conflict.

-- 
	Viktor.




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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux