Lines Matching refs:new_map
81 const char ** new_map; in lv_tabview_add_tab() local
85 new_map = lv_mem_alloc((tab_id + 1) * sizeof(const char *)); in lv_tabview_add_tab()
86 lv_memcpy_small(new_map, old_map, sizeof(const char *) * (tab_id - 1)); in lv_tabview_add_tab()
87 new_map[tab_id - 1] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
88 strcpy((char *)new_map[tab_id - 1], name); in lv_tabview_add_tab()
89 new_map[tab_id] = ""; in lv_tabview_add_tab()
93 new_map = lv_mem_alloc((tab_id * 2) * sizeof(const char *)); in lv_tabview_add_tab()
94 lv_memcpy_small(new_map, old_map, sizeof(const char *) * (tab_id - 1) * 2); in lv_tabview_add_tab()
96 new_map[0] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
97 strcpy((char *)new_map[0], name); in lv_tabview_add_tab()
98 new_map[1] = ""; in lv_tabview_add_tab()
101 new_map[tab_id * 2 - 3] = "\n"; in lv_tabview_add_tab()
102 new_map[tab_id * 2 - 2] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
103 new_map[tab_id * 2 - 1] = ""; in lv_tabview_add_tab()
104 strcpy((char *)new_map[(tab_id * 2) - 2], name); in lv_tabview_add_tab()
107 tabview->map = new_map; in lv_tabview_add_tab()
108 lv_btnmatrix_set_map(btns, (const char **)new_map); in lv_tabview_add_tab()