fhl                24 lib/filehighlight.h void mc_fhl_free (mc_fhl_t ** fhl);
fhl                26 lib/filehighlight.h int mc_fhl_get_color (const mc_fhl_t * fhl, const file_entry_t * fe);
fhl                28 lib/filehighlight.h gboolean mc_fhl_read_ini_file (mc_fhl_t * fhl, const gchar * filename);
fhl                29 lib/filehighlight.h gboolean mc_fhl_parse_ini_file (mc_fhl_t * fhl);
fhl                30 lib/filehighlight.h void mc_fhl_clear (mc_fhl_t * fhl);
fhl                66 lib/filehighlight/common.c mc_fhl_array_free (mc_fhl_t *fhl)
fhl                68 lib/filehighlight/common.c     if (fhl->filters != NULL)
fhl                70 lib/filehighlight/common.c         g_ptr_array_free (fhl->filters, TRUE);
fhl                71 lib/filehighlight/common.c         fhl->filters = NULL;
fhl                80 lib/filehighlight/common.c     mc_fhl_t *fhl;
fhl                82 lib/filehighlight/common.c     fhl = g_try_new0 (mc_fhl_t, 1);
fhl                83 lib/filehighlight/common.c     if (fhl == NULL)
fhl                87 lib/filehighlight/common.c         return fhl;
fhl                89 lib/filehighlight/common.c     if (!mc_fhl_init_from_standard_files (fhl))
fhl                91 lib/filehighlight/common.c         g_free (fhl);
fhl                95 lib/filehighlight/common.c     if (!mc_fhl_parse_ini_file (fhl))
fhl                97 lib/filehighlight/common.c         mc_fhl_free (&fhl);
fhl               101 lib/filehighlight/common.c     return fhl;
fhl               107 lib/filehighlight/common.c mc_fhl_free (mc_fhl_t **fhl)
fhl               109 lib/filehighlight/common.c     if (fhl == NULL || *fhl == NULL)
fhl               112 lib/filehighlight/common.c     mc_fhl_clear (*fhl);
fhl               114 lib/filehighlight/common.c     MC_PTR_FREE (*fhl);
fhl               120 lib/filehighlight/common.c mc_fhl_clear (mc_fhl_t *fhl)
fhl               122 lib/filehighlight/common.c     if (fhl != NULL)
fhl               124 lib/filehighlight/common.c         mc_config_deinit (fhl->config);
fhl               125 lib/filehighlight/common.c         mc_fhl_array_free (fhl);
fhl               182 lib/filehighlight/get-color.c mc_fhl_get_color_filetype (const mc_fhl_filter_t *mc_filter, const mc_fhl_t *fhl,
fhl               187 lib/filehighlight/get-color.c     (void) fhl;
fhl               261 lib/filehighlight/get-color.c mc_fhl_get_color_regexp (const mc_fhl_filter_t *mc_filter, const mc_fhl_t *fhl,
fhl               264 lib/filehighlight/get-color.c     (void) fhl;
fhl               280 lib/filehighlight/get-color.c mc_fhl_get_color (const mc_fhl_t *fhl, const file_entry_t *fe)
fhl               285 lib/filehighlight/get-color.c     if (fhl == NULL)
fhl               288 lib/filehighlight/get-color.c     for (i = 0; i < fhl->filters->len; i++)
fhl               292 lib/filehighlight/get-color.c         mc_filter = (mc_fhl_filter_t *) g_ptr_array_index (fhl->filters, i);
fhl               296 lib/filehighlight/get-color.c             ret = mc_fhl_get_color_filetype (mc_filter, fhl, fe);
fhl               302 lib/filehighlight/get-color.c             ret = mc_fhl_get_color_regexp (mc_filter, fhl, fe);
fhl                55 lib/filehighlight/ini-file-read.c mc_fhl_parse_fill_color_info (mc_fhl_filter_t *mc_filter, mc_fhl_t *fhl, const gchar *group_name)
fhl                57 lib/filehighlight/ini-file-read.c     (void) fhl;
fhl                65 lib/filehighlight/ini-file-read.c mc_fhl_parse_get_file_type_id (mc_fhl_t *fhl, const gchar *group_name)
fhl                81 lib/filehighlight/ini-file-read.c     param_type = mc_config_get_string (fhl->config, group_name, "type", "");
fhl               100 lib/filehighlight/ini-file-read.c     mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
fhl               102 lib/filehighlight/ini-file-read.c     g_ptr_array_add (fhl->filters, (gpointer) mc_filter);
fhl               110 lib/filehighlight/ini-file-read.c mc_fhl_parse_get_regexp (mc_fhl_t *fhl, const gchar *group_name)
fhl               115 lib/filehighlight/ini-file-read.c     regexp = mc_config_get_string (fhl->config, group_name, "regexp", "");
fhl               128 lib/filehighlight/ini-file-read.c     mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
fhl               129 lib/filehighlight/ini-file-read.c     g_ptr_array_add (fhl->filters, (gpointer) mc_filter);
fhl               138 lib/filehighlight/ini-file-read.c mc_fhl_parse_get_extensions (mc_fhl_t *fhl, const gchar *group_name)
fhl               144 lib/filehighlight/ini-file-read.c     exts_orig = mc_config_get_string_list (fhl->config, group_name, "extensions", NULL);
fhl               173 lib/filehighlight/ini-file-read.c         mc_config_get_bool (fhl->config, group_name, "extensions_case", FALSE);
fhl               176 lib/filehighlight/ini-file-read.c     mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name);
fhl               177 lib/filehighlight/ini-file-read.c     g_ptr_array_add (fhl->filters, (gpointer) mc_filter);
fhl               188 lib/filehighlight/ini-file-read.c mc_fhl_read_ini_file (mc_fhl_t *fhl, const gchar *filename)
fhl               190 lib/filehighlight/ini-file-read.c     if (fhl == NULL || filename == NULL || !exist_file (filename))
fhl               193 lib/filehighlight/ini-file-read.c     if (fhl->config != NULL)
fhl               194 lib/filehighlight/ini-file-read.c         return mc_config_read_file (fhl->config, filename, TRUE, FALSE);
fhl               196 lib/filehighlight/ini-file-read.c     fhl->config = mc_config_init (filename, TRUE);
fhl               198 lib/filehighlight/ini-file-read.c     return (fhl->config != NULL);
fhl               204 lib/filehighlight/ini-file-read.c mc_fhl_init_from_standard_files (mc_fhl_t *fhl)
fhl               211 lib/filehighlight/ini-file-read.c     ok = mc_fhl_read_ini_file (fhl, name);
fhl               218 lib/filehighlight/ini-file-read.c     ok = mc_fhl_read_ini_file (fhl, name);
fhl               225 lib/filehighlight/ini-file-read.c     ok = mc_fhl_read_ini_file (fhl, name);
fhl               233 lib/filehighlight/ini-file-read.c mc_fhl_parse_ini_file (mc_fhl_t *fhl)
fhl               238 lib/filehighlight/ini-file-read.c     mc_fhl_array_free (fhl);
fhl               239 lib/filehighlight/ini-file-read.c     fhl->filters = g_ptr_array_new_with_free_func (mc_fhl_filter_free);
fhl               241 lib/filehighlight/ini-file-read.c     orig_group_names = mc_config_get_groups (fhl->config, NULL);
fhl               246 lib/filehighlight/ini-file-read.c         if (mc_config_has_param (fhl->config, *group_names, "type"))
fhl               249 lib/filehighlight/ini-file-read.c             mc_fhl_parse_get_file_type_id (fhl, *group_names);
fhl               251 lib/filehighlight/ini-file-read.c         if (mc_config_has_param (fhl->config, *group_names, "regexp"))
fhl               254 lib/filehighlight/ini-file-read.c             mc_fhl_parse_get_regexp (fhl, *group_names);
fhl               256 lib/filehighlight/ini-file-read.c         if (mc_config_has_param (fhl->config, *group_names, "extensions"))
fhl               259 lib/filehighlight/ini-file-read.c             mc_fhl_parse_get_extensions (fhl, *group_names);
fhl                55 lib/filehighlight/internal.h void mc_fhl_array_free (mc_fhl_t * fhl);
fhl                57 lib/filehighlight/internal.h gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl);