diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-02 11:24:02 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-02 11:24:02 -0300 |
commit | cab8cf970c09ea465d30e11eb356e2e5d37dc544 (patch) | |
tree | 5d274c892e4d53f5e976ae8f6f58aba030785e02 /src/nvim/log.c | |
parent | 52a9a5b0b0c53a1481d901f39ed0d1e7e86c3853 (diff) | |
parent | 4aecb71b0e819aa84a430dacdab2146229c410a5 (diff) | |
download | rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.gz rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.tar.bz2 rneovim-cab8cf970c09ea465d30e11eb356e2e5d37dc544.zip |
Merge pull request #710 'Automatically generate declarations'
Diffstat (limited to 'src/nvim/log.c')
-rw-r--r-- | src/nvim/log.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c index a187cc4755..da28a18509 100644 --- a/src/nvim/log.c +++ b/src/nvim/log.c @@ -16,16 +16,12 @@ #define USR_LOG_FILE "$HOME/.nvimlog" -static FILE *open_log_file(void); -static bool do_log_to_file(FILE *log_file, int log_level, - const char *func_name, int line_num, - const char* fmt, ...); -static bool v_do_log_to_file(FILE *log_file, int log_level, - const char *func_name, int line_num, - const char* fmt, va_list args); +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "log.c.generated.h" +#endif bool do_log(int log_level, const char *func_name, int line_num, - const char* fmt, ...) + const char* fmt, ...) FUNC_ATTR_UNUSED { FILE *log_file = open_log_file(); |