Use proper C prototypes

This commit is contained in:
Colomban Wendling 2016-05-04 18:59:02 +02:00
parent 5d9376ea80
commit 2bdc96776c
4 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ typedef struct {
} CallbackUserData;
void tm_ctags_init()
void tm_ctags_init(void)
{
initializeParsing();
installLanguageMapDefaults();
@ -165,7 +165,7 @@ gboolean tm_ctags_is_using_regex_parser(TMParserType lang)
}
guint tm_ctags_get_lang_count()
guint tm_ctags_get_lang_count(void)
{
return LanguageCount;
}

View File

@ -34,7 +34,7 @@ typedef gboolean (*tm_ctags_callback) (const tagEntryInfo *const tag,
gboolean invalidate, void *user_data);
void tm_ctags_init();
void tm_ctags_init(void);
void tm_ctags_parse(guchar *buffer, gsize buffer_size,
const gchar *file_name, TMParserType lang, tm_ctags_callback callback,
@ -52,7 +52,7 @@ gchar tm_ctags_get_kind_from_name(const gchar *name, TMParserType lang);
gboolean tm_ctags_is_using_regex_parser(TMParserType lang);
guint tm_ctags_get_lang_count();
guint tm_ctags_get_lang_count(void);
G_END_DECLS

View File

@ -661,7 +661,7 @@ static gboolean tm_source_file_tags(const tagEntryInfo *const tag,
return TRUE;
}
void tm_source_file_ctags_init()
void tm_source_file_ctags_init(void)
{
tm_ctags_init();
tm_parser_verify_type_mappings();

View File

@ -38,7 +38,7 @@ typedef struct TMSourceFile
GType tm_source_file_get_type(void);
void tm_source_file_ctags_init();
void tm_source_file_ctags_init(void);
TMSourceFile *tm_source_file_new(const char *file_name, const char *name);