Skip to content

Commit

Permalink
Replace filetype_id with GeanyFiletypeID
Browse files Browse the repository at this point in the history
Used only in static functions so no API change.
  • Loading branch information
b4n committed Mar 4, 2016
1 parent f4b270a commit 856ee66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/filetypes.c
Expand Up @@ -24,7 +24,7 @@
* Filetype detection, file extensions and filetype menu items.
*/

/* Note: we use filetype_id for some function arguments, but GeanyFiletype is better; we should
/* Note: we use GeanyFiletypeID for some function arguments, but GeanyFiletype is better; we should
* only use GeanyFiletype for API functions. */

#ifdef HAVE_CONFIG_H
Expand Down Expand Up @@ -110,7 +110,7 @@ static gchar *filetype_make_title(const char *name, enum TitleType type)

/* name argument (ie filetype name) must not be translated as it is used for
* filetype lookup. Use filetypes_get_display_name() instead.*/
static void ft_init(filetype_id ft_id, TMParserType lang, const char *name,
static void ft_init(GeanyFiletypeID ft_id, TMParserType lang, const char *name,
const char *title_name, enum TitleType title_type,
GeanyFiletypeGroupID group_id)
{
Expand Down Expand Up @@ -325,7 +325,7 @@ static void init_custom_filetypes(const gchar *path)
* Warning: GTK isn't necessarily initialized yet. */
void filetypes_init_types(void)
{
filetype_id ft_id;
GeanyFiletypeID ft_id;
gchar *f;

g_return_if_fail(filetypes_array == NULL);
Expand Down Expand Up @@ -616,7 +616,7 @@ static GeanyFiletype *find_shebang(const gchar *utf8_filename, const gchar *line
{
static const struct {
const gchar *name;
filetype_id filetype;
GeanyFiletypeID filetype;
} intepreter_map[] = {
{ "sh", GEANY_FILETYPES_SH },
{ "bash", GEANY_FILETYPES_SH },
Expand Down
8 changes: 4 additions & 4 deletions src/symbols.c
Expand Up @@ -139,7 +139,7 @@ static struct
symbol_menu;

static void html_tags_loaded(void);
static void load_user_tags(filetype_id ft_id);
static void load_user_tags(GeanyFiletypeID ft_id);

/* get the tags_ignore list, exported by tagmanager's options.c */
extern gchar **c_tags_ignore;
Expand Down Expand Up @@ -524,7 +524,7 @@ tag_list_add_groups(GtkTreeStore *tree_store, ...)

static void add_top_level_items(GeanyDocument *doc)
{
filetype_id ft_id = doc->file_type->id;
GeanyFiletypeID ft_id = doc->file_type->id;
GtkTreeStore *tag_store = doc->priv->tag_store;

if (top_level_iter_names == NULL)
Expand Down Expand Up @@ -998,7 +998,7 @@ static gchar *get_symbol_tooltip(GeanyDocument *doc, const TMTag *tag)


/* find the last word in "foo::bar::blah", e.g. "blah" */
static const gchar *get_parent_name(const TMTag *tag, filetype_id ft_id)
static const gchar *get_parent_name(const TMTag *tag, GeanyFiletypeID ft_id)
{
const gchar *scope = tag->scope;
const gchar *separator = symbols_get_context_separator(ft_id);
Expand Down Expand Up @@ -1798,7 +1798,7 @@ static void init_user_tags(void)
}


static void load_user_tags(filetype_id ft_id)
static void load_user_tags(GeanyFiletypeID ft_id)
{
static guchar *tags_loaded = NULL;
static gboolean init_tags = FALSE;
Expand Down

0 comments on commit 856ee66

Please sign in to comment.