![]() |
Prusa Slicer 2.6.0
|
Include dependency graph for lists.c:Go to the source code of this file.
Classes | |
| struct | LISTNODE |
| struct | NODEPOOL |
| struct | LIST |
Macros | |
| #define | MAGIC 0xb05b05b0 |
| #define | CHECK_MAGIC 0 /* set to 1 to enable memory overwrite detection */ |
| #define | MALLOC(size, x) malloc(size) |
| #define | FREE free |
| #define | DEFAULT_POOLSIZE 512 |
| #define | CKMAGIC(p) |
| #define | CKNPMAGIC(p) |
| #define | CKLNMAGIC(p) |
| #define | CKLMAGIC(p) |
Typedefs | |
| typedef struct LISTNODE | LISTNODE |
| typedef struct NODEPOOL | NODEPOOL |
| typedef struct LIST | LIST |
Functions | |
| static int | insert_ln (LIST *l, LISTNODE *ln, void *data_ptr) |
| static NODEPOOL * | new_nodepool (LIST *l) |
| static LISTNODE * | get_listnode (LIST *l) |
| static int | free_listnode (LIST *l, LISTNODE *ln) |
| LISTID | lcreat (void *liststruct, int elements) |
| void | ldestroy_cb (LISTID lid, void(*ucleanup)(void *data_ptr)) |
| void | ldestroy (LISTID lid) |
| int | ladd (LISTID lid, void *p) |
| int | laddo (LISTID lid, void *p, int(*compare)(const void *p1, const void *p2), LNODEID *firstdup) |
| int | laddu (LISTID lid, void *p, int(*compare)(const void *p1, const void *p2)) |
| LNODEID | lfirst (LISTID lid) |
| LNODEID | llast (LISTID lid) |
| LNODEID | lnext (LNODEID lnid) |
| LNODEID | lprev (LNODEID lnid) |
| void * | ldata (LNODEID lnid) |
| int | lsize (LISTID lid) |
| LISTID | lcat (LISTID lid1, LISTID lid2) |
| void * | lget (LISTID lid) |
| void * | lget_n (LISTID lid, unsigned int n) |
| LNODEID | lget_ln (LISTID lid, unsigned int n) |
| int | lins_n (LISTID lid, void *data_ptr, unsigned int n) |
| int | lins_ln (LISTID lid, LNODEID lnid, void *data_ptr) |
| static void * | remove_ln (LIST *l, LISTNODE *ln) |
| void * | lrmv_d (LISTID lid, void *data_ptr) |
| void * | lrmv_ln (LISTID lid, LNODEID lnid) |
| void * | lrmv_n (LISTID lid, unsigned int n) |
| void * | lrmv (LISTID lid) |
| void * | lsrch (LISTID lid, void *p, int(*compare)(void *p1, void *p2)) |
| void | lsort (LISTID lid, int(*compare)(void *p1, void *p2)) |
| int | lprint (FILE *f, LISTID lid) |
| struct LISTNODE |
| struct NODEPOOL |
| struct LIST |
| #define CHECK_MAGIC 0 /* set to 1 to enable memory overwrite detection */ |
| #define CKLMAGIC | ( | p | ) |
| #define CKLNMAGIC | ( | p | ) |
| #define CKMAGIC | ( | p | ) |
| #define CKNPMAGIC | ( | p | ) |
| #define DEFAULT_POOLSIZE 512 |
| #define FREE free |
| #define MAGIC 0xb05b05b0 |
| #define MALLOC | ( | size, | |
| x | |||
| ) | malloc(size) |
References CKLMAGIC, LISTNODE::data, LISTNODE::next, LIST::next_ln, and LISTNODE::prev.
Referenced by remove_ln().
Here is the caller graph for this function:References NODEPOOL::chain_next, NODEPOOL::chain_prev, CKLMAGIC, CKMAGIC, LISTNODE::data, new_nodepool(), LISTNODE::next, LIST::next_ln, LIST::np_bottom, LIST::np_top, and LISTNODE::prev.
Referenced by insert_ln(), and ladd().
Here is the call graph for this function:
Here is the caller graph for this function:References LIST::bottom, CKLMAGIC, CKMAGIC, LISTNODE::data, get_listnode(), ladd(), LISTNODE::next, LIST::num, LISTNODE::prev, and LIST::top.
Referenced by laddo(), laddu(), lins_ln(), and lins_n().
Here is the call graph for this function:
Here is the caller graph for this function:References LIST::bottom, CKLMAGIC, CKMAGIC, LISTNODE::data, get_listnode(), LISTNODE::next, LIST::num, LISTNODE::prev, and LIST::top.
Referenced by avr_dup_part(), avrdude_main(), insert_ln(), jtag3_open_common(), laddo(), laddu(), lcat(), lins_n(), pgm_dup(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int laddo | ( | LISTID | lid, |
| void * | p, | ||
| int(*)(const void *p1, const void *p2) | compare, | ||
| LNODEID * | firstdup | ||
| ) |
References CKLMAGIC, CKMAGIC, LISTNODE::data, insert_ln(), ladd(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, insert_ln(), ladd(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References LIST::bottom, CKLMAGIC, DEFAULT_POOLSIZE, FREE, LIST::free_on_close, MAGIC, MALLOC, LIST::n_ln_pool, LIST::next_ln, LIST::np_bottom, LIST::np_top, LIST::num, LIST::poolsize, and LIST::top.
Referenced by avr_new_part(), avrdude_main(), init_config(), pgm_dup(), pgm_new(), and yyparse().
Here is the caller graph for this function:References CKMAGIC.
Referenced by avr910_parseextparms(), avr_display(), avr_dup_part(), avr_initmem(), avr_locate_mem(), avrdude_main(), buspirate_parseextparms(), jtag3_initialize(), jtag3_open_common(), jtag3_parseextparms(), jtagmkI_set_devdescr(), jtagmkII_parseextparms(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), locate_part(), locate_part_by_avr910_devcode(), locate_part_by_signature(), locate_programmer(), pgm_dup(), sort_programmer_compare(), stk500_close(), stk500_initialize(), stk500_open(), stk500_paged_load(), stk500_paged_write(), stk500hv_initialize(), stk500v2_initialize(), walk_avrparts(), walk_programmers(), wiring_parseextparms(), and yyparse().
Here is the caller graph for this function:References NODEPOOL::chain_next, CKLMAGIC, FREE, LIST::free_on_close, and LIST::np_top.
Referenced by cleanup_main(), and ldestroy_cb().
Here is the caller graph for this function:References CKLMAGIC, LISTNODE::data, ldestroy(), LISTNODE::next, and LIST::top.
Referenced by avr_free_part(), cleanup_config(), cleanup_main(), pgm_free(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References CKLMAGIC.
Referenced by avr910_parseextparms(), avr_display(), avr_dup_part(), avr_initmem(), avr_locate_mem(), avrdude_main(), buspirate_parseextparms(), jtag3_initialize(), jtag3_open_common(), jtag3_parseextparms(), jtagmkI_set_devdescr(), jtagmkII_parseextparms(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), locate_part(), locate_part_by_avr910_devcode(), locate_part_by_signature(), locate_programmer(), pgm_dup(), sort_programmer_compare(), stk500_close(), stk500_initialize(), stk500_open(), stk500_paged_load(), stk500_paged_write(), stk500hv_initialize(), stk500v2_initialize(), walk_avrparts(), walk_programmers(), wiring_parseextparms(), and yyparse().
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, lsize(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, lsize(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, insert_ln(), LISTNODE::next, and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, insert_ln(), ladd(), LISTNODE::next, LIST::num, and LIST::top.
Here is the call graph for this function:References CKMAGIC.
Referenced by avr910_parseextparms(), avr_display(), avr_dup_part(), avr_initmem(), avr_locate_mem(), avrdude_main(), buspirate_parseextparms(), Slic3r::connect_monotonic_regions(), jtag3_initialize(), jtag3_open_common(), jtag3_parseextparms(), jtagmkI_set_devdescr(), jtagmkII_parseextparms(), jtagmkII_set_devdescr(), jtagmkII_set_xmega_params(), locate_part(), locate_part_by_avr910_devcode(), locate_part_by_signature(), locate_programmer(), lprint(), pgm_dup(), Slic3r::smooth_compensation_banded(), stk500hv_initialize(), stk500v2_initialize(), walk_avrparts(), walk_programmers(), wiring_parseextparms(), and yyparse().
Here is the caller graph for this function:References CKMAGIC.
Referenced by Slic3r::take_ccw_limited(), and Slic3r::take_cw_limited().
Here is the caller graph for this function:| int lprint | ( | FILE * | f, |
| LISTID | lid | ||
| ) |
References LIST::bottom, NODEPOOL::chain_next, NODEPOOL::chain_prev, CHECK_MAGIC, LISTNODE::data, LIST::free_on_close, lnext(), MAGIC, LIST::n_ln_pool, LISTNODE::next, LIST::next_ln, LIST::np_bottom, LIST::np_top, LIST::num, LIST::poolsize, LISTNODE::prev, and LIST::top.
Here is the call graph for this function:References LIST::bottom, CKLMAGIC, and remove_ln().
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, LISTNODE::next, remove_ln(), and LIST::top.
Referenced by yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::next, remove_ln(), and LIST::top.
Here is the call graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::next, LIST::num, remove_ln(), and LIST::top.
Referenced by assign_pin_list(), lcat(), parse_cmdbits(), and yyparse().
Here is the call graph for this function:
Here is the caller graph for this function:| int lsize | ( | LISTID | lid | ) |
References CKLMAGIC.
Referenced by assign_pin_list(), avrdude_main(), lcat(), lget_ln(), lget_n(), parse_cmdbits(), and yyparse().
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, LISTNODE::next, and LIST::top.
Referenced by sort_avrparts(), and sort_programmers().
Here is the caller graph for this function:References CKLMAGIC, CKMAGIC, LISTNODE::data, LISTNODE::next, and LIST::top.
References NODEPOOL::chain_next, NODEPOOL::chain_prev, CKLMAGIC, CKMAGIC, LISTNODE::data, MAGIC, MALLOC, LIST::n_ln_pool, LISTNODE::next, LIST::poolsize, and LISTNODE::prev.
Referenced by get_listnode().
Here is the caller graph for this function:References LIST::bottom, CKLMAGIC, CKMAGIC, LISTNODE::data, free_listnode(), LISTNODE::next, LIST::num, LISTNODE::prev, and LIST::top.
Referenced by lrmv(), lrmv_d(), lrmv_ln(), and lrmv_n().
Here is the call graph for this function:
Here is the caller graph for this function: