Lines Matching refs:idx
54 void (*changefunc)(int idx); // function to change this choice
56 void (*installfunc)(int idx); // function to install this choice
160 int idx; in get_choice() local
165 for (idx = 0; idx < entries; ++idx) in get_choice()
167 if (idx) in get_choice()
168 printf("%2d ", idx); in get_choice()
169 puts(table[idx]); in get_choice()
825 install_bat_choice(int idx) in install_bat_choice() argument
827 char *batpath = targets[choices[idx].arg].batpath; in install_bat_choice()
828 char *oldname = targets[choices[idx].arg].oldbat; in install_bat_choice()
829 char *exename = targets[choices[idx].arg].exenamearg; in install_bat_choice()
830 char *vimarg = targets[choices[idx].arg].exearg; in install_bat_choice()
921 alloc_text(int idx, char *fmt, char *arg) in alloc_text() argument
923 if (choices[idx].text != NULL) in alloc_text()
924 free(choices[idx].text); in alloc_text()
926 choices[idx].text = alloc(strlen(fmt) + strlen(arg) - 1); in alloc_text()
927 sprintf(choices[idx].text, fmt, arg); in alloc_text()
934 toggle_bat_choice(int idx) in toggle_bat_choice() argument
936 char *batname = targets[choices[idx].arg].batpath; in toggle_bat_choice()
937 char *oldname = targets[choices[idx].arg].oldbat; in toggle_bat_choice()
941 alloc_text(idx, " Overwrite %s", oldname); in toggle_bat_choice()
946 alloc_text(idx, " Do NOT overwrite %s", oldname); in toggle_bat_choice()
956 set_bat_text(int idx, char *batpath, char *name) in set_bat_text() argument
960 alloc_text(idx, " Create %s", batpath); in set_bat_text()
967 change_bat_choice(int idx) in change_bat_choice() argument
978 int target = choices[idx].arg; in change_bat_choice()
1020 if (choices[idx].arg == 0) in change_bat_choice()
1030 if (choices[idx].arg != 0) in change_bat_choice()
1031 alloc_text(idx, " Do NOT create %s", name); in change_bat_choice()
1039 if (choices[idx].arg != 0) in change_bat_choice()
1040 set_bat_text(idx, batpath, name); in change_bat_choice()
1052 change_main_bat_choice(int idx) in change_main_bat_choice() argument
1057 change_bat_choice(idx); in change_main_bat_choice()
1060 choices[idx].text = bat_text_yes; in change_main_bat_choice()
1062 choices[idx].text = bat_text_no; in change_main_bat_choice()
1070 && choices[idx + i].changefunc != NULL) in change_main_bat_choice()
1072 choices[idx + i].active = 1; in change_main_bat_choice()
1073 if (choices[idx + i].changefunc == change_bat_choice in change_main_bat_choice()
1077 set_bat_text(idx + i, targets[i].batpath, targets[i].batname); in change_main_bat_choice()
1081 choices[idx + i].active = 0; in change_main_bat_choice()
1173 install_vimrc(int idx) in install_vimrc() argument
1296 change_vimrc_choice(int idx) in change_vimrc_choice() argument
1298 if (choices[idx].installfunc != NULL) in change_vimrc_choice()
1302 alloc_text(idx, "Do NOT change startup file %s", oldvimrc); in change_vimrc_choice()
1304 alloc_text(idx, "Do NOT create startup file %s", vimrc); in change_vimrc_choice()
1305 choices[idx].installfunc = NULL; in change_vimrc_choice()
1306 choices[idx + 1].active = 0; in change_vimrc_choice()
1307 choices[idx + 2].active = 0; in change_vimrc_choice()
1308 choices[idx + 3].active = 0; in change_vimrc_choice()
1314 alloc_text(idx, "Overwrite startup file %s with:", oldvimrc); in change_vimrc_choice()
1316 alloc_text(idx, "Create startup file %s with:", vimrc); in change_vimrc_choice()
1317 choices[idx].installfunc = install_vimrc; in change_vimrc_choice()
1318 choices[idx + 1].active = 1; in change_vimrc_choice()
1319 choices[idx + 2].active = 1; in change_vimrc_choice()
1320 choices[idx + 3].active = 1; in change_vimrc_choice()
1328 change_run_choice(int idx) in change_run_choice() argument
1331 alloc_text(idx, compat_text, compat_choices[compat_choice]); in change_run_choice()
1338 change_remap_choice(int idx) in change_remap_choice() argument
1341 alloc_text(idx, remap_text, remap_choices[remap_choice]); in change_remap_choice()
1348 change_mouse_choice(int idx) in change_mouse_choice() argument
1351 alloc_text(idx, mouse_text, mouse_choices[mouse_choice]); in change_mouse_choice()
1673 change_popup_choice(int idx) in change_popup_choice() argument
1677 …choices[idx].text = "Install an entry for Vim in the popup menu for the right\n mouse button so… in change_popup_choice()
1682 …choices[idx].text = "Do NOT install an entry for Vim in the popup menu for the\n right mouse bu… in change_popup_choice()
1711 change_openwith_choice(int idx) in change_openwith_choice() argument
1715 …choices[idx].text = "Add Vim to the \"Open With...\" list in the popup menu for the right\n mou… in change_openwith_choice()
1720 …choices[idx].text = "Do NOT add Vim to the \"Open With...\" list in the popup menu for the\n ri… in change_openwith_choice()
1894 install_start_menu(int idx) in install_start_menu() argument
1958 toggle_startmenu_choice(int idx) in toggle_startmenu_choice() argument
1960 if (choices[idx].installfunc == NULL) in toggle_startmenu_choice()
1962 choices[idx].installfunc = install_start_menu; in toggle_startmenu_choice()
1963 choices[idx].text = "Add Vim to the Start menu"; in toggle_startmenu_choice()
1967 choices[idx].installfunc = NULL; in toggle_startmenu_choice()
1968 choices[idx].text = "Do NOT add Vim to the Start menu"; in toggle_startmenu_choice()
1982 install_shortcut_gvim(int idx) in install_shortcut_gvim() argument
1985 if (choices[idx].arg) in install_shortcut_gvim()
1994 install_shortcut_evim(int idx) in install_shortcut_evim() argument
1996 if (choices[idx].arg) in install_shortcut_evim()
2005 install_shortcut_gview(int idx) in install_shortcut_gview() argument
2007 if (choices[idx].arg) in install_shortcut_gview()
2016 toggle_shortcut_choice(int idx) in toggle_shortcut_choice() argument
2020 if (choices[idx].installfunc == install_shortcut_gvim) in toggle_shortcut_choice()
2022 else if (choices[idx].installfunc == install_shortcut_evim) in toggle_shortcut_choice()
2026 if (choices[idx].arg) in toggle_shortcut_choice()
2028 choices[idx].arg = 0; in toggle_shortcut_choice()
2029 alloc_text(idx, "Do NOT create a desktop icon for %s", arg); in toggle_shortcut_choice()
2033 choices[idx].arg = 1; in toggle_shortcut_choice()
2034 alloc_text(idx, "Create a desktop icon for %s", arg); in toggle_shortcut_choice()
2124 set_directories_text(int idx) in set_directories_text() argument
2126 int vimfiles_dir_choice = choices[idx].arg; in set_directories_text()
2129 alloc_text(idx, "Do NOT create plugin directories%s", ""); in set_directories_text()
2131 alloc_text(idx, "Create plugin directories: %s", in set_directories_text()
2224 change_directories_choice(int idx) in change_directories_choice() argument
2231 choices[idx].arg = get_choice(vimfiles_dir_choices, choice_count); in change_directories_choice()
2232 set_directories_text(idx); in change_directories_choice()
2240 install_vimfilesdir(int idx) in install_vimfilesdir() argument
2243 int vimfiles_dir_choice = choices[idx].arg; in install_vimfilesdir()