PIPS
|
Go to the source code of this file.
Functions | |
void | list_to_array (list l, gen_array_t a) |
args.c More... | |
void | update_list_from_array (list l, gen_array_t a) |
Just modify the strings in a list from an array of strings. More... | |
void | sort_list_of_strings (list l) |
Sort a list of strings. More... | |
string | list_to_string (list l) |
Return the malloc()ed version of the concatenation of all the strings in the list. More... | |
void list_to_array | ( | list | l, |
gen_array_t | a | ||
) |
Definition at line 38 of file args.c.
References gen_array_addto(), gen_free_list(), MAP, and STRING.
Referenced by prettyprint_dependence_graph(), prettyprint_dependence_graph_view(), sort_list_of_strings(), and xml_Chain_Graph().
Return the malloc()ed version of the concatenation of all the strings in the list.
Definition at line 74 of file args.c.
References concatenate(), free(), MAP, NIL, strdup(), and STRING.
Referenced by basic_to_string(), c_words_entity(), c_words_simplified_entity(), FindOrCreateCurrentEntity(), flush_statement_comment(), generic_c_words_simplified_entity(), get_symbol_table(), module_loops(), UpdateEntity(), UpdateFunctionEntity(), UpdatePointerEntity(), words_points_to_reference(), and words_type().
void sort_list_of_strings | ( | list | l | ) |
Sort a list of strings.
Definition at line 59 of file args.c.
References gen_array_free(), gen_array_make(), gen_array_nitems(), gen_array_sort(), gen_length(), list_to_array(), pips_assert, and update_list_from_array().
void update_list_from_array | ( | list | l, |
gen_array_t | a | ||
) |
Just modify the strings in a list from an array of strings.
The array of string must have at least as much as strings as in the list. No free is done.
Definition at line 49 of file args.c.
References CAR, gen_array_item(), MAPL, and STRING.
Referenced by sort_list_of_strings().