def generate(folder, macros_dict): methods( base_name=BASE_NAME, module_prefix=PREFIX, macros_dict=macros_dict, functions=( chr_print, sch_print, uch_print, chp_print, sht_print, ush_print, int_print, uin_print, lon_print, ulo_print, llo_print, ull_print, flo_print, dbl_print, ldb_print, bol_print, vpt_print, ), )
def generate(folder, macros_dict): methods(base_name=BASE_NAME, module_prefix=PREFIX, macros_dict=macros_dict, functions=(chr_print, sch_print, uch_print, chp_print, sht_print, ush_print, int_print, uin_print, lon_print, ulo_print, llo_print, ull_print, flo_print, dbl_print, ldb_print, bol_print, vpt_print))
def generate(folder, macros_dict): methods(base_name=ARRAY, base_type=PROTO, module_prefix=PREFIX, sub_types=C_TYPES, guard=GUARD, base_header='dynamic_array.h', base_source='dynamic_array.c', output_header=os.path.join(folder, 'cdar.h'), output_source=os.path.join(folder, 'cdar.c'), macros_dict=macros_dict, includes_header=INCLUDES_H, includes_source=INCLUDES_C, functions=(new_, del_, data_, len_, size_, raw_, resize_, truncate_, clear_, swap_, reverse_, append_, push_, pull_, set_, pop_, get_, sub_, map_, find_, findall_, print_, format_, compare_))
def generate(folder, macros_dict): methods(base_name=HASHM, base_type=PROTO, module_prefix=PREFIX, sub_types=C_TYPES, combine_sub_types=lambda t: itertools.product(t, repeat=2), support_types=SUPPORTS, guard=GUARD, base_header='static_hash_map.h', base_source='static_hash_map.c', output_header=os.path.join(folder, 'cshm.h'), output_source=os.path.join(folder, 'cshm.c'), macros_dict=macros_dict, includes_header=INCLUDES_H, includes_source=INCLUDES_C, functions=(new_, del_, add_, get_, iter_, iter_del_, iter_next_, iter_values_, iter_items_, compare_))
def generate(folder, macros_dict): methods(base_name=LLIST, base_type=PROTO, module_prefix=PREFIX, sub_types=C_TYPES, support_types=SUPPORTS, guard=GUARD, base_header='singly_linked_list.h', base_source='singly_linked_list.c', output_header=os.path.join(folder, 'csll.h'), output_source=os.path.join(folder, 'csll.c'), macros_dict=macros_dict, includes_header=INCLUDES_H, includes_source=INCLUDES_C, functions=(new_, del_, len_, truncate_, clear_, iter_, iter_del_, iter_next_, iter_pull_, swap_, reverse_, append_, push_, pull_, set_, pop_, get_, sub_, map_, find_, findall_, print_, format_, compare_))
def generate(folder, macros_dict): methods(base_name=NAME, module_prefix=PREFIX, macros_dict=macros_dict, functions=(new_, del_))