ScintillaOrg / lexilla

A library of language lexers for use with Scintilla
https://www.scintilla.org/Lexilla.html
Other
163 stars 59 forks source link

Use proper C prototypes in header used from C #211

Closed b4n closed 7 months ago

b4n commented 8 months ago

Lexilla.h is expected to be usable from C code, so use proper C prototypes for a C compiler to be happy: in C, an empty argument list is written as (void), () alone denotes an unspecified argument list.

GCC and clang emits a warning with -Wstrict-prototypes in C mode.

nyamatongwe commented 8 months ago

C23 will fix this by defining empty argument lists to work like C++.

b4n commented 8 months ago

Indeed it will, but why not make this work with older standards? It has no side effect I know to C++ or C23 but to be a tiny bit more verbose, does it?

nyamatongwe commented 7 months ago

Included in version 5.2.9.