| File src/filetype.c changed (mode: 100644) (index e1f92b53e..8e7fe3688) |
| ... |
... |
static void add_assoc(assoc_list_t *assoc_list, assoc_t assoc); |
| 62 |
62 |
static void assoc_viewers(matcher_t *matcher, const assoc_records_t *viewers); |
static void assoc_viewers(matcher_t *matcher, const assoc_records_t *viewers); |
| 63 |
63 |
static assoc_records_t clone_assoc_records(const assoc_records_t *records, |
static assoc_records_t clone_assoc_records(const assoc_records_t *records, |
| 64 |
64 |
const char pattern[], const assoc_list_t *dst); |
const char pattern[], const assoc_list_t *dst); |
| 65 |
|
static void reset_all_list(void); |
|
|
65 |
|
static void reset_all_lists(void); |
| 66 |
66 |
static void add_defaults(int in_x); |
static void add_defaults(int in_x); |
| 67 |
67 |
static void reset_list(assoc_list_t *assoc_list); |
static void reset_list(assoc_list_t *assoc_list); |
| 68 |
68 |
static void reset_list_head(assoc_list_t *assoc_list); |
static void reset_list_head(assoc_list_t *assoc_list); |
| |
| ... |
... |
add_assoc(assoc_list_t *assoc_list, assoc_t assoc) |
| 305 |
305 |
void |
void |
| 306 |
306 |
ft_reset(int in_x) |
ft_reset(int in_x) |
| 307 |
307 |
{ |
{ |
| 308 |
|
reset_all_list(); |
|
|
308 |
|
reset_all_lists(); |
| 309 |
309 |
add_defaults(in_x); |
add_defaults(in_x); |
| 310 |
310 |
} |
} |
| 311 |
311 |
|
|
| 312 |
312 |
static void |
static void |
| 313 |
|
reset_all_list(void) |
|
|
313 |
|
reset_all_lists(void) |
| 314 |
314 |
{ |
{ |
| 315 |
315 |
reset_list(&filetypes); |
reset_list(&filetypes); |
| 316 |
316 |
reset_list(&xfiletypes); |
reset_list(&xfiletypes); |