Lines Matching refs:i
246 int i; in pathcmp() local
252 for (i = 0; ; ++i) in pathcmp()
255 if (i == plen) in pathcmp()
257 if (i == qlen) // match in pathcmp()
259 if (i == qlen - 1 && (q[i] == '\\' || q[i] == '/')) in pathcmp()
265 if (i == qlen) in pathcmp()
267 if (i == plen) // match in pathcmp()
269 if (i == plen - 1 && (p[i] == '\\' || p[i] == '/')) in pathcmp()
274 if (!(mytoupper(p[i]) == mytoupper(q[i]) in pathcmp()
275 || ((p[i] == '/' || p[i] == '\\') in pathcmp()
276 && (q[i] == '/' || q[i] == '\\')))) in pathcmp()
348 int i; in find_bat_exe() local
354 for (i = 1; i < TARGET_COUNT; ++i) in find_bat_exe()
356 targets[i].oldbat = searchpath_save(targets[i].batname); in find_bat_exe()
358 targets[i].oldexe = searchpath_save(targets[i].exename); in find_bat_exe()
360 if (default_bat_dir == NULL && targets[i].oldbat != NULL) in find_bat_exe()
362 default_bat_dir = alloc(strlen(targets[i].oldbat) + 1); in find_bat_exe()
363 strcpy(default_bat_dir, targets[i].oldbat); in find_bat_exe()
366 if (check_bat_only && targets[i].oldbat != NULL) in find_bat_exe()
368 free(targets[i].oldbat); in find_bat_exe()
369 targets[i].oldbat = NULL; in find_bat_exe()
463 int i; in run_silent_uninstall() local
474 for (i = 0; ; i++) in run_silent_uninstall()
477 (unsigned int)((i + tick) & 0xFFFF)); in run_silent_uninstall()
482 if (i == 65535) in run_silent_uninstall()
706 int i; in inspect_system() local
765 for (i = 1; i < TARGET_COUNT; ++i) in inspect_system()
767 findoldfile(&(targets[i].oldexe)); in inspect_system()
768 if (targets[i].oldexe != NULL) in inspect_system()
775 for (i = 1; i < TARGET_COUNT; ++i) in inspect_system()
776 if (targets[i].oldexe != NULL) in inspect_system()
777 printf("%s\n", targets[i].oldexe); in inspect_system()
977 int i; in change_bat_choice() local
1043 for (i = 0; i <= count; ++i) in change_bat_choice()
1044 free(names[i]); in change_bat_choice()
1054 int i; in change_main_bat_choice() local
1065 for (i = 1; i < TARGET_COUNT; ++i) 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()
1074 && targets[i].batpath[0] != NUL) in change_main_bat_choice()
1076 strcpy(targets[i].batpath, targets[0].batpath); 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()
1094 int i; in init_bat_choice() local
1126 i = 0; in init_bat_choice()
1128 batpath[i++] = *p++; in init_bat_choice()
1129 batpath[i] = NUL; in init_bat_choice()
1148 int i; in init_bat_choices() local
1161 for (i = 1; i < TARGET_COUNT; ++i) in init_bat_choices()
1162 if (targets[i].oldexe == NULL in init_bat_choices()
1163 && (targets[i].exenamearg[0] == 'g' ? has_gvim : has_vim)) in init_bat_choices()
1164 init_bat_choice(i); in init_bat_choices()
1523 int i; in register_openwith() local
1530 for (i = 0; ERROR_SUCCESS == lRet && i < ARRAYSIZE(openwith); i++) in register_openwith()
1531 lRet = reg_create_key_and_value(hRootKey, openwith[i], NULL, "", flag); in register_openwith()
1584 int i; in install_registry() local
1596 for (i = 0; i < loop_count; i++) in install_registry()
1598 if (i == 0) in install_registry()
1626 for (i = 0; i < loop_count; i++) in install_registry()
1628 if (i == 0) in install_registry()
2242 int i; in install_vimfilesdir() local
2291 for (i = 0; i < TABLE_SIZE(vimfiles_subdirs); i++) in install_vimfilesdir()
2293 sprintf(tmp_dirname, "%s\\%s", vimfiles_path, vimfiles_subdirs[i]); in install_vimfilesdir()
2294 printf(" %s", vimfiles_subdirs[i]); in install_vimfilesdir()
2409 int i, j; in command_line_setup_choices() local
2411 for (i = 1; i < argc; i++) in command_line_setup_choices()
2413 if (strcmp(argv[i], "-create-batfiles") == 0) in command_line_setup_choices()
2415 if (i + 1 == argc) in command_line_setup_choices()
2417 while (argv[i + 1][0] != '-' && i < argc) in command_line_setup_choices()
2419 i++; in command_line_setup_choices()
2422 && strcmp(argv[i], targets[j].name) == 0) in command_line_setup_choices()
2429 argv[i]); in command_line_setup_choices()
2431 if (i + 1 == argc) in command_line_setup_choices()
2435 else if (strcmp(argv[i], "-create-vimrc") == 0) in command_line_setup_choices()
2441 else if (strcmp(argv[i], "-vimrc-remap") == 0) in command_line_setup_choices()
2443 if (i + 1 == argc) in command_line_setup_choices()
2445 i++; in command_line_setup_choices()
2446 if (strcmp(argv[i], "no") == 0) in command_line_setup_choices()
2448 else if (strcmp(argv[i], "win") == 0) in command_line_setup_choices()
2451 else if (strcmp(argv[i], "-vimrc-behave") == 0) in command_line_setup_choices()
2453 if (i + 1 == argc) in command_line_setup_choices()
2455 i++; in command_line_setup_choices()
2456 if (strcmp(argv[i], "unix") == 0) in command_line_setup_choices()
2458 else if (strcmp(argv[i], "mswin") == 0) in command_line_setup_choices()
2460 else if (strcmp(argv[i], "default") == 0) in command_line_setup_choices()
2463 else if (strcmp(argv[i], "-vimrc-compat") == 0) in command_line_setup_choices()
2465 if (i + 1 == argc) in command_line_setup_choices()
2467 i++; in command_line_setup_choices()
2468 if (strcmp(argv[i], "vi") == 0) in command_line_setup_choices()
2470 else if (strcmp(argv[i], "vim") == 0) in command_line_setup_choices()
2472 else if (strcmp(argv[i], "defaults") == 0) in command_line_setup_choices()
2474 else if (strcmp(argv[i], "all") == 0) in command_line_setup_choices()
2477 else if (strcmp(argv[i], "-install-popup") == 0) in command_line_setup_choices()
2481 else if (strcmp(argv[i], "-install-openwith") == 0) in command_line_setup_choices()
2485 else if (strcmp(argv[i], "-add-start-menu") == 0) in command_line_setup_choices()
2489 else if (strcmp(argv[i], "-install-icons") == 0) in command_line_setup_choices()
2493 else if (strcmp(argv[i], "-create-directories") == 0) in command_line_setup_choices()
2498 if (argv[i + 1][0] != '-') in command_line_setup_choices()
2500 i++; in command_line_setup_choices()
2501 if (strcmp(argv[i], "vim") == 0) in command_line_setup_choices()
2503 else if (strcmp(argv[i], "home") == 0) in command_line_setup_choices()
2513 argv[i]); in command_line_setup_choices()
2521 else if (strcmp(argv[i], "-register-OLE") == 0) in command_line_setup_choices()
2527 printf("Got unknown argument argv[%d] = %s\n", i, argv[i]); in command_line_setup_choices()
2638 int i; in show_help() local
2643 for (i = 0; items[i] != NULL; ++i) in show_help()
2645 puts(items[i]); in show_help()
2651 if (i == 0) in show_help()
2652 --i; in show_help()
2654 i -= 2; in show_help()
2668 int i; in install() local
2671 for (i = 0; i < choice_count; ++i) in install()
2672 if (choices[i].installfunc != NULL && choices[i].active) in install()
2673 (choices[i].installfunc)(i); in install()
2693 int i; in request_choice() local
2696 for (i = 0; i < choice_count; ++i) in request_choice()
2697 if (choices[i].active) in request_choice()
2698 printf("%2d %s\n", i + 1, choices[i].text); in request_choice()
2706 int i; in main() local
2724 i = uninstall_check(1); in main()
2732 if (i && _isatty(1)) in main()
2765 i = atoi(buf); in main()
2766 if (i > 0 && i <= choice_count && choices[i - 1].active) in main()
2767 (choices[i - 1].changefunc)(i - 1); in main()