aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2014-07-04 03:21:16 +0200
committerColomban Wendling <ban@herbesfolles.org>2014-07-04 03:21:16 +0200
commit010bd1520052c41148677d401f7c97701716caa5 (patch)
treeb51b62c6d82a1ed9551e0fbf5a3b60f238245279
parent0949d4e82feae6b7fe799cf35f145c91c19b6e02 (diff)
downloadscintilla-mirror-010bd1520052c41148677d401f7c97701716caa5.tar.gz
Provide complete C prototypes for C-exported functions
A C function declaration with an empty parameter list does not declare a function taking no parameters, but simply does not declares what parameters it takes (hence, it's not a complete prototype). To denote an empty parameter list, C uses the special `void` value. This avoids warnings when building C sources including Scintilla.h if using e.g. GCC's `-Wstrict-prototypes` option, as well as actually disallowing passing parameters to those functions.
-rw-r--r--include/Scintilla.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 93992e28f..21d5a07a9 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -18,9 +18,9 @@ extern "C" {
#if defined(_WIN32)
/* Return false on failure: */
int Scintilla_RegisterClasses(void *hInstance);
-int Scintilla_ReleaseResources();
+int Scintilla_ReleaseResources(void);
#endif
-int Scintilla_LinkLexers();
+int Scintilla_LinkLexers(void);
#ifdef __cplusplus
}