i 143 lib/charsets.c unsigned int i; i 147 lib/charsets.c for (i = 0; i < (*list)->len; i++) i 151 lib/charsets.c desc = (codepage_desc *) g_ptr_array_index (*list, i); i 163 lib/charsets.c if (i == (*list)->len) i 249 lib/charsets.c size_t i; i 255 lib/charsets.c for (i = 0; i < codepages->len; i++) i 256 lib/charsets.c if (strcmp (id, ((codepage_desc *) g_ptr_array_index (codepages, i))->id) == 0) i 257 lib/charsets.c return i; i 288 lib/charsets.c int i; i 295 lib/charsets.c for (i = 0; i <= 255; ++i) i 297 lib/charsets.c conv_displ[i] = i; i 298 lib/charsets.c conv_input[i] = i; i 304 lib/charsets.c for (i = 0; i <= 127; ++i) i 306 lib/charsets.c conv_displ[i] = i; i 307 lib/charsets.c conv_input[i] = i; i 318 lib/charsets.c for (i = 128; i <= 255; ++i) i 319 lib/charsets.c conv_displ[i] = translate_character (cd, i); i 329 lib/charsets.c for (i = 128; i <= 255; ++i) i 332 lib/charsets.c ch = translate_character (cd, i); i 333 lib/charsets.c conv_input[i] = (ch == UNKNCHAR) ? i : ch; i 63 lib/event-types.h int i; i 282 lib/filehighlight/get-color.c guint i; i 288 lib/filehighlight/get-color.c for (i = 0; i < fhl->filters->len; i++) i 292 lib/filehighlight/get-color.c mc_filter = (mc_fhl_filter_t *) g_ptr_array_index (fhl->filters, i); i 78 lib/filehighlight/ini-file-read.c int i; i 88 lib/filehighlight/ini-file-read.c for (i = 0; types[i] != NULL; i++) i 89 lib/filehighlight/ini-file-read.c if (strcmp (types[i], param_type) == 0) i 94 lib/filehighlight/ini-file-read.c if (types[i] == NULL) i 99 lib/filehighlight/ini-file-read.c mc_filter->file_type = (mc_flhgh_ftype_type) i; i 83 lib/glibcompat.c guint i; i 90 lib/glibcompat.c for (i = 0; i < haystack->len; i++) i 91 lib/glibcompat.c if (equal_func (g_ptr_array_index (haystack, i), needle)) i 94 lib/glibcompat.c *index_ = i; i 467 lib/keybind.c size_t i; i 469 lib/keybind.c for (i = 0; command_names[i].name != NULL; i++) i 470 lib/keybind.c if (command_names[i].val == action) i 471 lib/keybind.c return command_names[i].name; i 483 lib/keybind.c size_t i; i 485 lib/keybind.c for (i = 0; keymap[i].key != 0; i++) i 486 lib/keybind.c if (keymap[i].command == action) i 487 lib/keybind.c return (keymap[i].caption[0] != '\0') ? keymap[i].caption : NULL; i 499 lib/keybind.c size_t i; i 501 lib/keybind.c for (i = 0; keymap[i].key != 0; i++) i 502 lib/keybind.c if (keymap[i].key == key) i 503 lib/keybind.c return keymap[i].command; i 28 lib/keybind.h #define CK_PipeBlock(i) (10000+(i)) i 29 lib/keybind.h #define CK_Macro(i) (20000+(i)) i 144 lib/lock.c size_t i, len; i 155 lib/lock.c for (i = 0, s = str; i < sizeof (who) && s < p; i++, s++) i 156 lib/lock.c who[i] = *s; i 157 lib/lock.c if (i == sizeof (who)) i 158 lib/lock.c i--; i 159 lib/lock.c who[i] = '\0'; i 162 lib/lock.c for (i = 0, p++, s = str + len; i < sizeof (pid) && p < s && *p != ':'; i++, p++) i 163 lib/lock.c pid[i] = *p; i 164 lib/lock.c if (i == sizeof (pid)) i 165 lib/lock.c i--; i 166 lib/lock.c pid[i] = '\0'; i 130 lib/mcconfig/history.c size_t i; i 151 lib/mcconfig/history.c for (i = 0; i < keys_num; i++) i 156 lib/mcconfig/history.c g_snprintf (key, sizeof (key), "%lu", (unsigned long) i); i 195 lib/mcconfig/history.c int i; i 204 lib/mcconfig/history.c for (i = 0; (i < num_history_items_recorded - 1) && (h->prev != NULL); i++) i 217 lib/mcconfig/history.c for (i = 0; h != NULL; h = g_list_next (h)) i 226 lib/mcconfig/history.c g_snprintf (key, sizeof (key), "%d", i++); i 689 lib/search/regex.c gsize i = 0; i 698 lib/search/regex.c if (from[i] == '{') i 699 lib/search/regex.c i++; i 700 lib/search/regex.c if (i >= len) i 703 lib/search/regex.c if (from[i] == 'x') i 705 lib/search/regex.c i++; i 706 lib/search/regex.c if (i < len && from[i] == '{') i 707 lib/search/regex.c i++; i 708 lib/search/regex.c for (; i < len; i++) i 710 lib/search/regex.c if (from[i] >= '0' && from[i] <= '9') i 711 lib/search/regex.c c = c * 16 + from[i] - '0'; i 712 lib/search/regex.c else if (from[i] >= 'a' && from[i] <= 'f') i 713 lib/search/regex.c c = c * 16 + 10 + from[i] - 'a'; i 714 lib/search/regex.c else if (from[i] >= 'A' && from[i] <= 'F') i 715 lib/search/regex.c c = c * 16 + 10 + from[i] - 'A'; i 720 lib/search/regex.c else if (from[i] >= '0' && from[i] <= '7') i 721 lib/search/regex.c for (; i < len && from[i] >= '0' && from[i] <= '7'; i++) i 722 lib/search/regex.c c = c * 8 + from[i] - '0'; i 725 lib/search/regex.c switch (from[i]) i 69 lib/skin/ini-file.c unsigned int i; i 77 lib/skin/ini-file.c for (i = 0; i < list->len; i++) i 78 lib/skin/ini-file.c if (strcmp (sname, g_ptr_array_index (list, i)) == 0) i 81 lib/skin/ini-file.c if (i < list->len) i 54 lib/strutil/filevercmp.c size_t i = 0; i 62 lib/strutil/filevercmp.c done = s[i] == '\0'; i 64 lib/strutil/filevercmp.c done = i == n; i 68 lib/strutil/filevercmp.c *len = (ssize_t) i; i 72 lib/strutil/filevercmp.c i++; i 73 lib/strutil/filevercmp.c prefixlen = i; i 75 lib/strutil/filevercmp.c while (i + 1 < n && s[i] == '.' && (g_ascii_isalpha (s[i + 1]) || s[i + 1] == '~')) i 76 lib/strutil/filevercmp.c for (i += 2; i < n && (g_ascii_isalnum (s[i]) || s[i] == '~'); i++) i 70 lib/strutil/tokenize.c int i = start; i 75 lib/strutil/tokenize.c if (member (string[i], "()\n")) /* XXX - included \n, but why? been here forever */ i 76 lib/strutil/tokenize.c return (i + 1); i 78 lib/strutil/tokenize.c if (g_ascii_isdigit (string[i])) i 82 lib/strutil/tokenize.c for (j = i; string[j] != '\0' && g_ascii_isdigit (string[j]); j++) i 89 lib/strutil/tokenize.c i = j; /* digit sequence is a file descriptor */ i 92 lib/strutil/tokenize.c i = j; /* digit sequence is part of a word */ i 97 lib/strutil/tokenize.c if (member (string[i], "<>;&|")) i 99 lib/strutil/tokenize.c char peek = string[i + 1]; i 101 lib/strutil/tokenize.c if (peek == string[i]) i 103 lib/strutil/tokenize.c if (peek == '<' && (string[i + 2] == '-' || string[i + 2] == '<')) i 104 lib/strutil/tokenize.c i++; i 105 lib/strutil/tokenize.c return (i + 2); i 108 lib/strutil/tokenize.c if (peek == '&' && (string[i] == '>' || string[i] == '<')) i 113 lib/strutil/tokenize.c for (j = i + 2; string[j] != '\0' && g_ascii_isdigit (string[j]); j++) i 120 lib/strutil/tokenize.c if ((peek == '>' && string[i] == '&') || (peek == '|' && string[i] == '>')) i 121 lib/strutil/tokenize.c return (i + 2); i 124 lib/strutil/tokenize.c if (peek == '(' && (string[i] == '>' || string[i] == '<')) i 127 lib/strutil/tokenize.c i += 2; i 134 lib/strutil/tokenize.c return (i + 1); i 140 lib/strutil/tokenize.c if (delimiter == '\0' && member (string[i], QUOTE_CHARACTERS)) i 142 lib/strutil/tokenize.c delimiter = string[i]; i 143 lib/strutil/tokenize.c i++; i 146 lib/strutil/tokenize.c for (; string[i] != '\0'; i++) i 148 lib/strutil/tokenize.c if (string[i] == '\\' && string[i + 1] == '\n') i 150 lib/strutil/tokenize.c i++; i 154 lib/strutil/tokenize.c if (string[i] == '\\' && delimiter != '\'' && i 155 lib/strutil/tokenize.c (delimiter != '"' || member (string[i], slashify_in_quotes))) i 157 lib/strutil/tokenize.c i++; i 163 lib/strutil/tokenize.c if (nestdelim != 0 && string[i] == delimopen) i 168 lib/strutil/tokenize.c if (nestdelim != 0 && string[i] == delimiter) i 176 lib/strutil/tokenize.c if (delimiter != '\0' && string[i] == delimiter) i 183 lib/strutil/tokenize.c if (nestdelim == 0 && delimiter == '\0' && member (string[i], "<>$!@?+*") i 184 lib/strutil/tokenize.c && string[i + 1] == '(') i 187 lib/strutil/tokenize.c i += 2; i 194 lib/strutil/tokenize.c if (delimiter == '\0' && member (string[i], WORD_DELIMITERS)) i 197 lib/strutil/tokenize.c if (delimiter == '\0' && member (string[i], QUOTE_CHARACTERS)) i 198 lib/strutil/tokenize.c delimiter = string[i]; i 201 lib/strutil/tokenize.c return i; i 216 lib/strutil/tokenize.c int i = 0; i 220 lib/strutil/tokenize.c while (string[i] != '\0') i 225 lib/strutil/tokenize.c for (; string[i] != '\0' && whiteness (string[i]); i++) i 228 lib/strutil/tokenize.c if (string[i] == '\0') i 231 lib/strutil/tokenize.c start = i; i 232 lib/strutil/tokenize.c i = str_tokenize_word (string, start); i 238 lib/strutil/tokenize.c if (i == start) i 239 lib/strutil/tokenize.c for (i++; string[i] != '\0' && member (string[i], WORD_DELIMITERS); i++) i 245 lib/strutil/tokenize.c g_ptr_array_add (result, g_strndup (string + start, i - start)); i 118 lib/tty/color-internal.c int i; i 122 lib/tty/color-internal.c if (sscanf (color_name, "color%d%c", &i, &dummy) == 1 && i >= 0 && i < 256) i 124 lib/tty/color-internal.c return i; i 127 lib/tty/color-internal.c if (sscanf (color_name, "gray%d%c", &i, &dummy) == 1 && i >= 0 && i < 24) i 129 lib/tty/color-internal.c return 232 + i; i 148 lib/tty/color-internal.c for (i = 0; i < len; i++) i 150 lib/tty/color-internal.c h[i] = parse_hex_digit (color_name[i]); i 151 lib/tty/color-internal.c if (h[i] == -1) i 155 lib/tty/color-internal.c if (i == 3) i 156 lib/tty/color-internal.c i = (h[0] << 20) | (h[0] << 16) | (h[1] << 12) | (h[1] << 8) | (h[2] << 4) | h[2]; i 158 lib/tty/color-internal.c i = (h[0] << 20) | (h[1] << 16) | (h[2] << 12) | (h[3] << 8) | (h[4] << 4) | h[5]; i 159 lib/tty/color-internal.c return (1 << 24) | i; i 173 lib/tty/color-internal.c int i; i 177 lib/tty/color-internal.c for (i = 0; color_table[i].name != NULL; i++) i 178 lib/tty/color-internal.c if (idx == color_table[i].value) i 179 lib/tty/color-internal.c return color_table[i].name; i 202 lib/tty/color-internal.c size_t i; i 204 lib/tty/color-internal.c for (i = 0; color_table[i].name != NULL; i++) i 205 lib/tty/color-internal.c if (strcmp (color_name, color_table[i].name) == 0) i 206 lib/tty/color-internal.c return color_table[i].value; i 222 lib/tty/color-internal.c int i; i 226 lib/tty/color-internal.c for (i = 0; attr_list[i] != NULL; i++) i 232 lib/tty/color-internal.c if (strcmp (attr_list[i], attributes_table[j].name) == 0) i 77 lib/tty/color-slang.c size_t i = 0; i 86 lib/tty/color-slang.c i++; i 89 lib/tty/color-slang.c if ((i != 0) && (i == len) && (strncmp (s, terminal, i) == 0)) i 695 lib/tty/key.c int i; i 697 lib/tty/key.c for (i = 0; kd[i].code != 0; i++) i 698 lib/tty/key.c define_sequence (kd[i].code, kd[i].seq, kd[i].action); i 1233 lib/tty/key.c size_t i; i 1235 lib/tty/key.c for (i = 0; i < key_conv_tab_size; i++) i 1236 lib/tty/key.c key_conv_tab_sorted[i] = &key_name_conv_tab[i]; i 543 lib/tty/tty-ncurses.c int i; i 548 lib/tty/tty-ncurses.c for (i = 0; i < rows; i++) i 550 lib/tty/tty-ncurses.c move (y + i, x); i 217 lib/tty/tty-slang.c int i; i 219 lib/tty/tty-slang.c for (i = 0; key_table[i].key_code; i++) i 220 lib/tty/tty-slang.c do_define_key (key_table[i].key_code, key_table[i].key_name); i 107 lib/tty/win.c int bytes, i, j, cols = 0; i 139 lib/tty/win.c for (i = 0; i < j; i++) i 141 lib/tty/win.c if ((i % cols) == 0) i 142 lib/tty/win.c tty_gotoyx (starty + (i / cols), 0); i 143 lib/tty/win.c tty_print_char (is_printable (k[i]) ? k[i] : ' '); i 1055 lib/util.c int i; i 1080 lib/util.c for (i = 0; (p = strchr (p + 1, PATH_SEP)) != NULL; i++) i 1082 lib/util.c currlen = (i + 1) * 3 + strlen (q) + 1; i 1092 lib/util.c for (; i >= 0; i--, p += 3) i 1213 lib/util.c size_t i; i 1217 lib/util.c for (i = 0; i < MAX_SAVED_BOOKMARKS && pos_tokens[3 + i] != NULL; i++) i 1221 lib/util.c val = strtoul (pos_tokens[3 + i], NULL, 10); i 1247 lib/util.c size_t i; i 1282 lib/util.c for (i = 0; i < bookmarks->len && i < MAX_SAVED_BOOKMARKS; i++) i 1283 lib/util.c if (fprintf (f, ";%zu", g_array_index (bookmarks, size_t, i)) < 0) i 1290 lib/util.c i = 1; i 1298 lib/util.c if (++i > filepos_max_saved_entries) i 1436 lib/util.c size_t i; i 1439 lib/util.c for (i = 0; var[i] != NULL; i++) i 1441 lib/util.c locale = getenv (var[i]); i 118 lib/utilunix.c int i; i 120 lib/utilunix.c for (i = 0; i < size; i++) i 121 lib/utilunix.c if (cache[i].index == id) i 122 lib/utilunix.c return cache[i].string; i 685 lib/utilunix.c size_t size, i; i 704 lib/utilunix.c for (i = 0; i < size && !(s[i] == '\0' || (s[i] == '\n' && !escape)); i++) i 705 lib/utilunix.c escape = s[i] == '\\' ? !escape : FALSE; i 707 lib/utilunix.c if (i != size && s[i] == '\n') i 708 lib/utilunix.c i++; i 710 lib/utilunix.c ps->pos += i; i 712 lib/utilunix.c return g_string_new_len (s, i); i 1247 lib/utilunix.c int i; i 1278 lib/utilunix.c for (i = 0; i < ngroups; i++) i 1279 lib/utilunix.c if (st->st_gid == groups[i]) i 1137 lib/vfs/direntry.c int i; i 1142 lib/vfs/direntry.c i = subclass->archive_same (path_element, super, vpath_archive, cookie); i 1143 lib/vfs/direntry.c if (i == 1) i 1145 lib/vfs/direntry.c if (i != 0) i 1614 lib/vfs/direntry.c int i; i 1617 lib/vfs/direntry.c for (i = 0; i < buf_len - 1; i++, buf++) i 1665 lib/vfs/direntry.c int i; i 1672 lib/vfs/direntry.c for (i = 0; i < size - 1; i++) i 1676 lib/vfs/direntry.c n = read (fd, &buffer[i], 1); i 1679 lib/vfs/direntry.c buffer[i] = '\0'; i 1685 lib/vfs/direntry.c buffer[i] = '\0'; i 1688 lib/vfs/direntry.c if (buffer[i] == '\n') i 1690 lib/vfs/direntry.c buffer[i] = '\0'; i 87 lib/vfs/interface.c ssize_t i; i 99 lib/vfs/interface.c while ((i = mc_read (fdin, buffer, sizeof (buffer))) > 0) i 101 lib/vfs/interface.c if (write (fdout, buffer, i) != i) i 104 lib/vfs/interface.c if (i == -1) i 106 lib/vfs/interface.c i = mc_close (fdin); i 108 lib/vfs/interface.c if (i == -1) i 111 lib/vfs/interface.c i = close (fdout); i 113 lib/vfs/interface.c if (i == -1) i 144 lib/vfs/interface.c ssize_t i; i 155 lib/vfs/interface.c while ((i = read (fdin, buffer, sizeof (buffer))) > 0) i 156 lib/vfs/interface.c if (mc_write (fdout, buffer, (size_t) i) != i) i 158 lib/vfs/interface.c if (i == -1) i 130 lib/vfs/parse_ls_vga.c int i; i 135 lib/vfs/parse_ls_vga.c for (i = 0; i 136 lib/vfs/parse_ls_vga.c i < 3 && *month != '\0' && !isdigit ((unsigned char) *month) i 137 lib/vfs/parse_ls_vga.c && !iscntrl ((unsigned char) *month) && !ispunct ((unsigned char) *month); i++, month++) i 140 lib/vfs/parse_ls_vga.c return (i == 3 && *month == '\0'); i 686 lib/vfs/parse_ls_vga.c int i; i 821 lib/vfs/parse_ls_vga.c for (i = idx + 1, idx2 = 0; i < num_cols; i++) i 822 lib/vfs/parse_ls_vga.c if (strcmp (columns[i], "->") == 0) i 824 lib/vfs/parse_ls_vga.c idx2 = i; i 303 lib/vfs/path.c guint i; i 308 lib/vfs/path.c for (i = 0; i < vfs__classes_list->len; i++) i 310 lib/vfs/path.c struct vfs_class *vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); i 1012 lib/vfs/path.c guint i; i 1015 lib/vfs/path.c for (i = 1; i < vfs__classes_list->len; i++) i 1019 lib/vfs/path.c vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); i 496 lib/vfs/vfs.c guint i; i 502 lib/vfs/vfs.c for (i = 0; i < vfs__classes_list->len; i++) i 504 lib/vfs/vfs.c struct vfs_class *vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); i 592 lib/vfs/vfs.c guint i; i 594 lib/vfs/vfs.c for (i = 0; i < vfs__classes_list->len; i++) i 596 lib/vfs/vfs.c struct vfs_class *vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); i 67 lib/widget/buttonbar.c int i; i 72 lib/widget/buttonbar.c for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) i 77 lib/widget/buttonbar.c bb->labels[i].end_coord = pos; i 90 lib/widget/buttonbar.c for (i = 0; i < BUTTONBAR_LABELS_NUM / 2; i++) i 93 lib/widget/buttonbar.c if (BUTTONBAR_LABELS_NUM / 2 - 1 - i < md / 2) i 96 lib/widget/buttonbar.c bb->labels[i].end_coord = pos; i 99 lib/widget/buttonbar.c for (; i < BUTTONBAR_LABELS_NUM; i++) i 102 lib/widget/buttonbar.c if (BUTTONBAR_LABELS_NUM - 1 - i < (md + 1) / 2) i 105 lib/widget/buttonbar.c bb->labels[i].end_coord = pos; i 114 lib/widget/buttonbar.c buttonbar_get_button_width (const WButtonBar *bb, int i) i 116 lib/widget/buttonbar.c if (i == 0) i 118 lib/widget/buttonbar.c return bb->labels[i].end_coord - bb->labels[i - 1].end_coord; i 126 lib/widget/buttonbar.c int i; i 128 lib/widget/buttonbar.c for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) i 129 lib/widget/buttonbar.c if (bb->labels[i].end_coord > x) i 130 lib/widget/buttonbar.c return i; i 148 lib/widget/buttonbar.c buttonbar_call (WButtonBar *bb, int i) i 154 lib/widget/buttonbar.c if ((bb != NULL) && (bb->labels[i].command != CK_IgnoreKey)) i 156 lib/widget/buttonbar.c target = (bb->labels[i].receiver != NULL) ? bb->labels[i].receiver : WIDGET (w->owner); i 157 lib/widget/buttonbar.c ret = send_message (target, w, MSG_ACTION, bb->labels[i].command, NULL); i 168 lib/widget/buttonbar.c int i; i 173 lib/widget/buttonbar.c for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) i 174 lib/widget/buttonbar.c if (parm == KEY_F (i + 1) && buttonbar_call (bb, i)) i 187 lib/widget/buttonbar.c for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) i 192 lib/widget/buttonbar.c width = buttonbar_get_button_width (bb, i); i 197 lib/widget/buttonbar.c tty_printf ("%2d", i + 1); i 200 lib/widget/buttonbar.c text = (bb->labels[i].text != NULL) ? bb->labels[i].text : ""; i 207 lib/widget/buttonbar.c for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) i 208 lib/widget/buttonbar.c g_free (bb->labels[i].text); i 235 lib/widget/dialog-switch.c int i = 0; i 255 lib/widget/dialog-switch.c listbox_add_item_take (listbox->list, LISTBOX_APPEND_BEFORE, get_hotkey (i++), title, h, i 587 lib/widget/dialog.c int i; i 593 lib/widget/dialog.c i = open (profile, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); i 594 lib/widget/dialog.c if (i != -1) i 595 lib/widget/dialog.c close (i); i 79 lib/widget/dialog.h int i; i 1270 lib/widget/input.c int i; i 1274 lib/widget/input.c for (i = 0; i < w->cols - has_history; i++) i 1276 lib/widget/input.c if (i < (buf_len - in->term_first_shown) && cp[0] != '\0') i 721 lib/widget/input_complete.c size_t i, j; i 729 lib/widget/input_complete.c for (i = 0, j = 1; j < match_list->len;) i 733 lib/widget/input_complete.c si = g_ptr_array_index (match_list, i); i 760 lib/widget/input_complete.c i++; i 1027 lib/widget/input_complete.c int i; i 1032 lib/widget/input_complete.c for (i = 0, e = listbox_get_first_link (LISTBOX (g->current->data)); i 1033 lib/widget/input_complete.c e != NULL; i++, e = g_list_next (e)) i 1039 lib/widget/input_complete.c listbox_set_current (LISTBOX (g->current->data), i); i 1067 lib/widget/input_complete.c int i; i 1086 lib/widget/input_complete.c for (i = 0, e = listbox_get_first_link (LISTBOX (g->current->data)); i 1087 lib/widget/input_complete.c e != NULL; i++, e = g_list_next (e)) i 1097 lib/widget/input_complete.c listbox_set_current (LISTBOX (g->current->data), i); i 1196 lib/widget/input_complete.c int i; i 1208 lib/widget/input_complete.c i = str_term_width1 (q); i 1209 lib/widget/input_complete.c maxlen = MAX (maxlen, i); i 1254 lib/widget/input_complete.c i = dlg_run (complete_dlg); i 1256 lib/widget/input_complete.c if (i == B_ENTER) i 1267 lib/widget/input_complete.c return (i == B_USER); i 1360 lib/widget/input_complete.c size_t i; i 1362 lib/widget/input_complete.c for (i = 0; i < matches->len; i++) i 1366 lib/widget/input_complete.c p = g_ptr_array_index (matches, i); i 1369 lib/widget/input_complete.c g_ptr_array_index (matches, i) = str_escape (p, -1, "?*&", TRUE); i 1393 lib/widget/input_complete.c size_t i; i 1395 lib/widget/input_complete.c for (i = in->point - 1; i > 0; i--) i 98 lib/widget/listbox.c int i; i 121 lib/widget/listbox.c for (i = 1; i < max_line; i++) i 123 lib/widget/listbox.c widget_gotoyx (l, i, w->cols); i 124 lib/widget/listbox.c if (i != line) i 144 lib/widget/listbox.c int i; i 162 lib/widget/listbox.c for (i = 0; i < w->lines; i++) i 169 lib/widget/listbox.c sel_line = i; i 175 lib/widget/listbox.c widget_gotoyx (l, i, 1); i 177 lib/widget/listbox.c if (l->list != NULL && le != NULL && (i == 0 || pos < length)) i 205 lib/widget/listbox.c int i; i 208 lib/widget/listbox.c for (i = 0, le = g_queue_peek_head_link (l->list); le != NULL; i++, le = g_list_next (le)) i 213 lib/widget/listbox.c return i; i 586 lib/widget/listbox.c int i; i 589 lib/widget/listbox.c for (i = 0, le = g_queue_peek_head_link (l->list); le != NULL; i++, le = g_list_next (le)) i 594 lib/widget/listbox.c return i; i 611 lib/widget/listbox.c int i; i 614 lib/widget/listbox.c for (i = 0, le = g_queue_peek_head_link (l->list); le != NULL; i++, le = g_list_next (le)) i 619 lib/widget/listbox.c return i; i 89 lib/widget/menu.c GList *i; i 95 lib/widget/menu.c for (i = menu->entries; i != NULL; i = g_list_next (i)) i 97 lib/widget/menu.c menu_entry_t *entry = MENUENTRY (i->data); i 188 lib/widget/menu.c unsigned int i; i 200 lib/widget/menu.c for (i = 0; i < count; i++) i 201 lib/widget/menu.c menubar_paint_idx (menubar, i, i == menu->current ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR); i 223 lib/widget/menu.c GList *i; i 231 lib/widget/menu.c for (i = menubar->menu; i != NULL; i = g_list_next (i)) i 233 lib/widget/menu.c menu_t *menu = MENU (i->data); i 234 lib/widget/menu.c gboolean is_selected = (menubar->current == (gsize) g_list_position (menubar->menu, i)); i 489 lib/widget/menu.c GList *i; i 491 lib/widget/menu.c for (i = menubar->menu; i != NULL; i = g_list_next (i)) i 493 lib/widget/menu.c menu_t *menu = MENU (i->data); i 497 lib/widget/menu.c menubar_drop (menubar, g_list_position (menubar->menu, i)); i 511 lib/widget/menu.c GList *i; i 515 lib/widget/menu.c for (i = menu->entries; i != NULL; i = g_list_next (i)) i 517 lib/widget/menu.c const menu_entry_t *entry = MENUENTRY (i->data); i 522 lib/widget/menu.c menu->current = g_list_position (menu->entries, i); i 713 lib/widget/menu.c unsigned int i; i 716 lib/widget/menu.c for (i = 0, menu = menubar->menu; i 717 lib/widget/menu.c menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu)) i 721 lib/widget/menu.c if (i != 0) i 722 lib/widget/menu.c i--; i 724 lib/widget/menu.c return i; i 1016 lib/widget/menu.c GList *i; i 1025 lib/widget/menu.c for (i = menubar->menu; i != NULL; i = g_list_next (i)) i 1027 lib/widget/menu.c menu_t *menu = MENU (i->data); i 1048 lib/widget/menu.c for (i = menubar->menu; i != NULL; i = g_list_next (i)) i 1050 lib/widget/menu.c menu_t *menu = MENU (i->data); i 183 lib/widget/quick.c size_t i; i 280 lib/widget/quick.c for (i = 0; i < (size_t) quick_widget->u.radio.count; i++) i 281 lib/widget/quick.c items[i] = g_strdup (_(quick_widget->u.radio.items[i])); i 282 lib/widget/quick.c items[i] = NULL; i 425 lib/widget/quick.c for (i = 0; i < widgets->len; i++) i 431 lib/widget/quick.c item = &g_array_index (widgets, quick_widget_item_t, i); i 589 lib/widget/quick.c for (i = 0; i < widgets->len; i++) i 593 lib/widget/quick.c item = &g_array_index (widgets, quick_widget_item_t, i); i 126 lib/widget/radio.c int i; i 131 lib/widget/radio.c for (i = 0; i < r->count; i++) i 133 lib/widget/radio.c if (r->texts[i].hotkey != NULL) i 137 lib/widget/radio.c c = g_ascii_tolower ((gchar) r->texts[i].hotkey[0]); i 140 lib/widget/radio.c r->pos = i; i 165 lib/widget/radio.c for (i = 0; i < r->count; i++) i 167 lib/widget/radio.c widget_selectcolor (w, i == r->pos && focused, FALSE); i 168 lib/widget/radio.c widget_gotoyx (w, i, 0); i 169 lib/widget/radio.c tty_draw_hline (w->rect.y + i, w->rect.x, ' ', w->rect.cols); i 170 lib/widget/radio.c tty_print_string ((r->sel == i) ? "(*) " : "( ) "); i 171 lib/widget/radio.c hotkey_draw (w, r->texts[i], i == r->pos && focused); i 178 lib/widget/radio.c for (i = 0; i < r->count; i++) i 179 lib/widget/radio.c hotkey_free (r->texts[i]); i 221 lib/widget/radio.c int i, wmax = 0; i 229 lib/widget/radio.c for (i = 0; i < count; i++) i 233 lib/widget/radio.c r->texts[i] = hotkey_new (texts[i]); i 234 lib/widget/radio.c width = hotkey_width (r->texts[i]); i 20 lib/widget/widget-common.h #define widget_want_cursor(w,i) widget_set_options(w, WOP_WANT_CURSOR, i) i 21 lib/widget/widget-common.h #define widget_want_hotkey(w,i) widget_set_options(w, WOP_WANT_HOTKEY, i) i 22 lib/widget/widget-common.h #define widget_want_tab(w,i) widget_set_options(w, WOP_WANT_TAB, i) i 23 lib/widget/widget-common.h #define widget_idle(w,i) widget_set_state(w, WST_IDLE, i) i 24 lib/widget/widget-common.h #define widget_disable(w,i) widget_set_state(w, WST_DISABLED, i) i 255 lib/widget/wtools.c return event_data.ret.i; i 287 lib/widget/wtools.c int i; i 300 lib/widget/wtools.c for (i = 0; i < count; i++) i 332 lib/widget/wtools.c for (i = 0; i < count; i++) i 342 lib/widget/wtools.c button = button_new (lines - 3, cols, B_USER + i, NORMAL_BUTTON, cur_name, NULL); i 345 lib/widget/wtools.c if (i == sel_pos) i 492 src/args.c int i; i 495 src/args.c for (i = 0; i < argc; i++) i 501 src/args.c tmp = argv[i]; i 177 src/background.c reading_failed (int i, char **data) i 179 src/background.c while (i >= 0) i 180 src/background.c g_free (data[i--]); i 215 src/background.c int argc, i, status; i 260 src/background.c for (i = 0; i < argc; i++) i 265 src/background.c return reading_failed (i - 1, data); i 267 src/background.c data[i] = g_malloc (size + 1); i 269 src/background.c if (read (fd, data[i], size) != size) i 270 src/background.c return reading_failed (i, data); i 272 src/background.c data[i][size] = '\0'; /* NULL terminate the blocks (they could be strings) */ i 385 src/background.c for (i = 0; i < argc; i++) i 386 src/background.c g_free (data[i]); i 428 src/background.c int i; i 433 src/background.c for (i = 0; i < argc; i++) i 444 src/background.c ret = read (from_parent_fd, &i, sizeof (i)); i 450 src/background.c return i; i 459 src/background.c int i; i 462 src/background.c for (i = 0; i < argc; i++) i 474 src/background.c if (read (from_parent_fd, &i, sizeof (i)) != sizeof (i) || i == 0) i 477 src/background.c str = g_malloc (i + 1); i 478 src/background.c if (read (from_parent_fd, str, i) != i) i 483 src/background.c str[i] = '\0'; i 636 src/background.c event_data->ret.i = i 95 src/cons.handler.c int i; i 124 src/cons.handler.c for (i = 0; i < bytes; i++) i 126 src/cons.handler.c if ((i % COLS) == 0) i 127 src/cons.handler.c tty_gotoyx (starty + (i / COLS), 0); i 325 src/cons.handler.c int i, last; i 334 src/cons.handler.c for (i = 0; i < last; ++i) i 336 src/cons.handler.c set_attr ((screen_shot.buf[i] >> 8) & 0xFF); i 337 src/cons.handler.c putc (screen_shot.buf[i] & 0xFF, stdout); i 364 src/cons.handler.c int i; i 397 src/cons.handler.c for (i = 0; i < 256; i++) i 399 src/cons.handler.c char *p = memchr (map.scrmap, i, 256); i 400 src/cons.handler.c revmap.scrmap[i] = p ? p - map.scrmap : i; i 403 src/cons.handler.c for (i = 0; i < screen_shot.xsize * screen_shot.ysize; i++) i 406 src/cons.handler.c screen_shot.buf[i] = (screen_shot.buf[i] & 0xff00) i 407 src/cons.handler.c | (unsigned char) revmap.scrmap[screen_shot.buf[i] & 0xff]; i 335 src/diffviewer/ydiff.c int i; i 338 src/diffviewer/ydiff.c for (i = fs->pos; j < size && i < fs->len && !stop; i++, j++) i 340 src/diffviewer/ydiff.c buf[j] = fs->buf[i]; i 344 src/diffviewer/ydiff.c fs->pos = i; i 895 src/diffviewer/ydiff.c size_t i; i 925 src/diffviewer/ydiff.c for (i = 0; i < ops->len; i++) i 929 src/diffviewer/ydiff.c op = &g_array_index (ops, DIFFCMD, i); i 1004 src/diffviewer/ydiff.c int i, j; i 1025 src/diffviewer/ydiff.c for (i = 0; i < m; i++) i 1040 src/diffviewer/ydiff.c if (s[i] == t[j]) i 1056 src/diffviewer/ydiff.c off0 = i - z + 1; i 1179 src/diffviewer/ydiff.c int i; i 1183 src/diffviewer/ydiff.c for (i = 0; i < m && i < n && s[i] == t[i]; i++) i 1185 src/diffviewer/ydiff.c for (; m > i && n > i && s[m - 1] == t[n - 1]; m--, n--) i 1188 src/diffviewer/ydiff.c b[DIFF_LEFT].off = i; i 1189 src/diffviewer/ydiff.c b[DIFF_LEFT].len = m - i; i 1190 src/diffviewer/ydiff.c b[DIFF_RIGHT].off = i; i 1191 src/diffviewer/ydiff.c b[DIFF_RIGHT].len = n - i; i 1214 src/diffviewer/ydiff.c size_t i; i 1217 src/diffviewer/ydiff.c for (i = 0; i < hdiff->len; i++) i 1221 src/diffviewer/ydiff.c b = &g_array_index (hdiff, BRACKET, i); i 1248 src/diffviewer/ydiff.c int i; i 1250 src/diffviewer/ydiff.c for (i = 0; srcsize != 0; i++, src++, dst++, srcsize--) i 1257 src/diffviewer/ydiff.c j = TAB_SKIP (ts, i + base); i 1258 src/diffviewer/ydiff.c i += j - 1; i 1263 src/diffviewer/ydiff.c return i + base; i 1288 src/diffviewer/ydiff.c int i; i 1291 src/diffviewer/ydiff.c for (i = 0; i < dstsize && srcsize != 0; i++, src++, dst++, srcsize--) i 1298 src/diffviewer/ydiff.c j = TAB_SKIP (ts, i + base); i 1299 src/diffviewer/ydiff.c if (j > dstsize - i) i 1300 src/diffviewer/ydiff.c j = dstsize - i; i 1301 src/diffviewer/ydiff.c i += j - 1; i 1307 src/diffviewer/ydiff.c return i + base; i 1334 src/diffviewer/ydiff.c int i; i 1338 src/diffviewer/ydiff.c for (i = 0; dstsize != 0 && srcsize != 0 && *src != '\n'; i++, src++, srcsize--) i 1344 src/diffviewer/ydiff.c j = TAB_SKIP (ts, i + base); i 1345 src/diffviewer/ydiff.c i += j - 1; i 1430 src/diffviewer/ydiff.c int i, k; i 1434 src/diffviewer/ydiff.c for (i = 0, k = 0; dstsize != 0 && srcsize != 0 && *src != '\n'; i++, k++, src++, srcsize--) i 1440 src/diffviewer/ydiff.c j = TAB_SKIP (ts, i + base); i 1441 src/diffviewer/ydiff.c i += j - 1; i 1527 src/diffviewer/ydiff.c size_t i; i 1595 src/diffviewer/ydiff.c for (i = 0; i < sz && dst[i] != '\n'; i++) i 1596 src/diffviewer/ydiff.c if (dst[i] == '\r' && dst[i + 1] == '\n') i 1600 src/diffviewer/ydiff.c if (i + 1 < dstsize) i 1602 src/diffviewer/ydiff.c dst[i++] = '^'; i 1603 src/diffviewer/ydiff.c dst[i++] = 'M'; i 1606 src/diffviewer/ydiff.c dst[i++] = '*'; i 1747 src/diffviewer/ydiff.c size_t i; i 1751 src/diffviewer/ydiff.c for (i = 0; i < dview->a[DIFF_LEFT]->len; i++) i 1757 src/diffviewer/ydiff.c p = &g_array_index (dview->a[DIFF_LEFT], DIFFLN, i); i 1758 src/diffviewer/ydiff.c q = &g_array_index (dview->a[DIFF_RIGHT], DIFFLN, i); i 1787 src/diffviewer/ydiff.c int i; i 1792 src/diffviewer/ydiff.c for (i = 0; i < len; i++) i 1796 src/diffviewer/ydiff.c h = (GArray *) g_ptr_array_index (dview->hdiff, i); i 2198 src/diffviewer/ydiff.c dview_compute_split (WDiff *dview, int i) i 2200 src/diffviewer/ydiff.c dview->bias += i; i 2501 src/diffviewer/ydiff.c size_t i, k; i 2546 src/diffviewer/ydiff.c for (i = dview->skip_rows, j = 0; i < dview->a[ord]->len && j < height; j++, i++) i 2553 src/diffviewer/ydiff.c p = (DIFFLN *) & g_array_index (dview->a[ord], DIFFLN, i); i 2575 src/diffviewer/ydiff.c if (i == (size_t) dview->search.last_found_line) i 2577 src/diffviewer/ydiff.c else if (dview->hdiff != NULL && g_ptr_array_index (dview->hdiff, i) != NULL) i 2589 src/diffviewer/ydiff.c g_ptr_array_index (dview->hdiff, i), ord, att); i 2923 src/diffviewer/ydiff.c size_t i = 0; i 2926 src/diffviewer/ydiff.c for (; i < dview->a[ord]->len; i++) i 2930 src/diffviewer/ydiff.c p = &g_array_index (dview->a[ord], DIFFLN, i); i 2935 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = (ssize_t) i; i 3226 src/diffviewer/ydiff.c cb_ret_t i; i 3241 src/diffviewer/ydiff.c i = dview_handle_key (dview, parm); i 3246 src/diffviewer/ydiff.c return i; i 3249 src/diffviewer/ydiff.c i = dview_execute_cmd (dview, parm); i 3254 src/diffviewer/ydiff.c return i; i 342 src/editor/bookmark.c size_t i; i 344 src/editor/bookmark.c for (i = 0; i < edit->serialized_bookmarks->len; i++) i 345 src/editor/bookmark.c book_mark_insert (edit, g_array_index (edit->serialized_bookmarks, size_t, i), color); i 144 src/editor/edit-impl.h void edit_scroll_upward (WEdit * edit, long i); i 145 src/editor/edit-impl.h void edit_scroll_downward (WEdit * edit, long i); i 146 src/editor/edit-impl.h void edit_scroll_right (WEdit * edit, long i); i 147 src/editor/edit-impl.h void edit_scroll_left (WEdit * edit, long i); i 148 src/editor/edit-impl.h void edit_move_up (WEdit * edit, long i, gboolean do_scroll); i 149 src/editor/edit-impl.h void edit_move_down (WEdit * edit, long i, gboolean do_scroll); i 247 src/editor/edit.c size_t i; i 251 src/editor/edit.c for (i = 0; i < G_N_ELEMENTS (all_filters); i++) i 252 src/editor/edit.c if (g_str_has_suffix (s, all_filters[i].extension)) i 253 src/editor/edit.c return i; i 264 src/editor/edit.c int i; i 268 src/editor/edit.c i = edit_find_filter (filename_vpath); i 269 src/editor/edit.c if (i < 0) i 275 src/editor/edit.c p = g_strdup_printf (all_filters[i].read, quoted_name); i 288 src/editor/edit.c off_t i; i 290 src/editor/edit.c for (i = 0; (c = fgetc (f)) >= 0; i++) i 293 src/editor/edit.c return i; i 707 src/editor/edit.c long i; i 727 src/editor/edit.c for (i = 0; i < N_LINE_CACHES; i++) i 731 src/editor/edit.c n = labs (edit->line_numbers[i] - line); i 735 src/editor/edit.c j = i; i 741 src/editor/edit.c i = j; /* one line different - caller might be looping, so stay in this cache */ i 743 src/editor/edit.c i = 3 + (rand () % (N_LINE_CACHES - 3)); i 745 src/editor/edit.c edit->line_offsets[i] = i 749 src/editor/edit.c edit->line_offsets[i] = i 752 src/editor/edit.c edit->line_numbers[i] = line; i 753 src/editor/edit.c return edit->line_offsets[i]; i 763 src/editor/edit.c long i = 0; i 769 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) i 770 src/editor/edit.c if (edit_line_is_blank (edit, i)) i 775 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) i 776 src/editor/edit.c if (!edit_line_is_blank (edit, i)) i 778 src/editor/edit.c i++; i 784 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) i 785 src/editor/edit.c if (edit_line_is_blank (edit, i)) i 790 src/editor/edit.c edit_move_up (edit, edit->buffer.curs_line - i, do_scroll); i 800 src/editor/edit.c long i; i 803 src/editor/edit.c i = edit->buffer.lines; i 806 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) i 807 src/editor/edit.c if (edit_line_is_blank (edit, i) || i >= edit->buffer.lines) i 812 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) i 813 src/editor/edit.c if (!edit_line_is_blank (edit, i) || i > edit->buffer.lines) i 815 src/editor/edit.c i--; i 821 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) i 822 src/editor/edit.c if (edit_line_is_blank (edit, i) || i >= edit->buffer.lines) i 825 src/editor/edit.c edit_move_down (edit, i - edit->buffer.curs_line, do_scroll); i 1407 src/editor/edit.c int i; i 1410 src/editor/edit.c for (i = 1; i <= HALF_TAB_SIZE; i++) i 1411 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - i); i 1421 src/editor/edit.c int i, ch = 0; i 1423 src/editor/edit.c for (i = 0; i < HALF_TAB_SIZE; i++) i 1424 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 + i); i 1469 src/editor/edit.c long i; i 1472 src/editor/edit.c i = TAB_SIZE * space_width; i 1474 src/editor/edit.c i /= 2; i 1475 src/editor/edit.c if (i != 0) i 1476 src/editor/edit.c for (i = ((edit->curs_col / i) + 1) * i - edit->curs_col; i > 0; i -= space_width) i 1494 src/editor/edit.c int i; i 1496 src/editor/edit.c for (i = 1; i <= HALF_TAB_SIZE; i++) i 1556 src/editor/edit.c int i = 1, inc = -1, c, d, n = 0; i 1596 src/editor/edit.c i += (a == c) - (a == d); i 1598 src/editor/edit.c if (i == 0) i 1689 src/editor/edit.c int i; i 1691 src/editor/edit.c for (i = 0; i < del_tab_width; i++) i 1718 src/editor/edit.c size_t i; i 1720 src/editor/edit.c for (i = 0; s[i] != '\0'; i++) i 1721 src/editor/edit.c edit_execute_cmd (e, CK_InsertChar, (unsigned char) s[i]); i 1724 src/editor/edit.c return i; i 1744 src/editor/edit.c off_t i; i 1750 src/editor/edit.c for (i = 0; i < blocklen; i++) i 1752 src/editor/edit.c if (data[i] != '\n') i 1753 src/editor/edit.c edit_insert (edit, data[i]); i 1856 src/editor/edit.c int i; i 1861 src/editor/edit.c i = edit_find_filter (filename_vpath); i 1862 src/editor/edit.c if (i < 0) i 1869 src/editor/edit.c p = g_strdup_printf (all_filters[i].write, write_name_quoted); i 1885 src/editor/edit.c long i; i 1889 src/editor/edit.c for (i = 0; i < edit->buffer.size; i++) i 1890 src/editor/edit.c if (fputc (edit_buffer_get_byte (&edit->buffer, i), f) < 0) i 1892 src/editor/edit.c return i; i 1896 src/editor/edit.c for (i = 0; i < edit->buffer.size; i++) i 1900 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, i); i 1905 src/editor/edit.c return i; i 1911 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, i + 1); /* next char */ i 1918 src/editor/edit.c return i; i 1920 src/editor/edit.c i++; /* 2 chars are processed */ i 1930 src/editor/edit.c return i; i 1935 src/editor/edit.c return i; i 1941 src/editor/edit.c return i; i 1945 src/editor/edit.c i++; i 1951 src/editor/edit.c return i; i 1953 src/editor/edit.c i++; /* 2 chars are processed */ i 1963 src/editor/edit.c return i; i 1968 src/editor/edit.c return i; i 2077 src/editor/edit.c off_t i; i 2081 src/editor/edit.c for (i = 0; i < blocklen; i++) i 2082 src/editor/edit.c edit_insert (edit, buf[i]); i 2640 src/editor/edit.c long i; i 2642 src/editor/edit.c for (i = 0; i < edit->over_col; i++) i 2655 src/editor/edit.c int i; i 2675 src/editor/edit.c for (i = 1; i <= char_length; i++) i 2716 src/editor/edit.c int i; i 2735 src/editor/edit.c for (i = 1; i <= char_length; i++) i 2939 src/editor/edit.c edit_scroll_upward (WEdit *edit, long i) i 2943 src/editor/edit.c if (i > lines_above) i 2944 src/editor/edit.c i = lines_above; i 2945 src/editor/edit.c if (i != 0) i 2947 src/editor/edit.c edit->start_line -= i; i 2949 src/editor/edit.c edit_buffer_get_backward_offset (&edit->buffer, edit->start_display, i); i 2959 src/editor/edit.c edit_scroll_downward (WEdit *edit, long i) i 2966 src/editor/edit.c if (i > lines_below) i 2967 src/editor/edit.c i = lines_below; i 2968 src/editor/edit.c edit->start_line += i; i 2970 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, edit->start_display, i, 0); i 2980 src/editor/edit.c edit_scroll_right (WEdit *edit, long i) i 2984 src/editor/edit.c edit->start_col -= i; i 2990 src/editor/edit.c edit_scroll_left (WEdit *edit, long i) i 2994 src/editor/edit.c edit->start_col += i; i 3501 src/editor/edit.c size_t i; i 3513 src/editor/edit.c for (i = 0; i <= UTF8_CHAR_LEN && str[i] != '\0'; i++) i 3515 src/editor/edit.c char_for_insertion = str[i]; i 3611 src/editor/edit.c int i; i 3613 src/editor/edit.c for (i = 0; i < HALF_TAB_SIZE; i++) i 3631 src/editor/edit.c int i; i 3633 src/editor/edit.c for (i = 1; i <= HALF_TAB_SIZE; i++) i 4168 src/editor/edit.c edit_move_up (WEdit *edit, long i, gboolean do_scroll) i 4170 src/editor/edit.c edit_move_updown (edit, i, do_scroll, TRUE); i 4177 src/editor/edit.c edit_move_down (WEdit *edit, long i, gboolean do_scroll) i 4179 src/editor/edit.c edit_move_updown (edit, i, do_scroll, FALSE); i 236 src/editor/editbuffer.c size_t i; i 239 src/editor/editbuffer.c for (i = 0; i < UTF8_CHAR_LEN; i++) i 240 src/editor/editbuffer.c utf8_buf[i] = edit_buffer_get_byte (buf, byte_index + i); i 241 src/editor/editbuffer.c utf8_buf[i] = '\0'; i 277 src/editor/editbuffer.c size_t i; i 289 src/editor/editbuffer.c for (i = 0; i < (3 * UTF8_CHAR_LEN); i++) i 290 src/editor/editbuffer.c utf8_buf[i] = edit_buffer_get_byte (buf, byte_index + i - (2 * UTF8_CHAR_LEN)); i 291 src/editor/editbuffer.c utf8_buf[i] = '\0'; i 445 src/editor/editbuffer.c off_t i; i 457 src/editor/editbuffer.c for (i = 1;; i++) i 462 src/editor/editbuffer.c c = edit_buffer_get_byte (buf, buf->curs1 - i - 1); i 475 src/editor/editbuffer.c *word_start = buf->curs1 - i; /* start found */ i 476 src/editor/editbuffer.c *word_len = (gsize) i; i 494 src/editor/editbuffer.c off_t i; i 496 src/editor/editbuffer.c i = buf->curs1 & M_EDIT_BUF_SIZE; i 499 src/editor/editbuffer.c if (i == 0) i 504 src/editor/editbuffer.c *((unsigned char *) b + i) = (unsigned char) c; i 526 src/editor/editbuffer.c off_t i; i 528 src/editor/editbuffer.c i = buf->curs2 & M_EDIT_BUF_SIZE; i 531 src/editor/editbuffer.c if (i == 0) i 536 src/editor/editbuffer.c *((unsigned char *) b + EDIT_BUF_SIZE - 1 - i) = (unsigned char) c; i 560 src/editor/editbuffer.c off_t i; i 565 src/editor/editbuffer.c i = prev & M_EDIT_BUF_SIZE; i 566 src/editor/editbuffer.c c = *((unsigned char *) b + EDIT_BUF_SIZE - 1 - i); i 568 src/editor/editbuffer.c if (i == 0) i 600 src/editor/editbuffer.c off_t i; i 605 src/editor/editbuffer.c i = prev & M_EDIT_BUF_SIZE; i 606 src/editor/editbuffer.c c = *((unsigned char *) b + i); i 608 src/editor/editbuffer.c if (i == 0) i 699 src/editor/editbuffer.c off_t i, j; i 709 src/editor/editbuffer.c i = buf->curs2 >> S_EDIT_BUF_SIZE; i 731 src/editor/editbuffer.c for (--i; i >= 0; i--) i 769 src/editor/editbuffer.c for (i = 0; i < (off_t) buf->b2->len / 2; i++) i 773 src/editor/editbuffer.c b1 = &g_ptr_array_index (buf->b2, i); i 774 src/editor/editbuffer.c b2 = &g_ptr_array_index (buf->b2, buf->b2->len - 1 - i); i 812 src/editor/editbuffer.c off_t i; i 820 src/editor/editbuffer.c for (i = 0; i < (off_t) buf->b1->len - 1; i++) i 822 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, i); i 826 src/editor/editbuffer.c else if (i == 0) i 834 src/editor/editbuffer.c b = g_ptr_array_index (buf->b1, i); i 846 src/editor/editbuffer.c i = buf->b2->len - 1; i 847 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, i); i 857 src/editor/editbuffer.c while (--i >= 0) i 859 src/editor/editbuffer.c b = g_ptr_array_index (buf->b2, i); i 668 src/editor/editcmd.c off_t i; i 670 src/editor/editcmd.c for (i = 0; i < buf->size; i++) i 671 src/editor/editcmd.c if (fputc (edit_buffer_get_byte (buf, i), p) < 0) i 683 src/editor/editcmd.c off_t i, cursor; i 689 src/editor/editcmd.c for (i = 0; i < size; i++) i 691 src/editor/editcmd.c if (data[i] != '\n') i 692 src/editor/editcmd.c edit_insert (edit, data[i]); i 858 src/editor/editcmd.c size_t i; i 860 src/editor/editcmd.c for (i = 0; i < 3; i++) i 861 src/editor/editcmd.c str[i] = _(str[i]); i 1562 src/editor/editcmd.c off_t i = start; i 1571 src/editor/editcmd.c for (; i < end; i++) i 1572 src/editor/editcmd.c buf[i - start] = edit_buffer_get_byte (&edit->buffer, i); i 82 src/editor/editcomplete.c off_t i; i 84 src/editor/editcomplete.c for (i = 0; i < (off_t) len; i++) i 88 src/editor/editcomplete.c chr = edit_buffer_get_byte (&edit->buffer, word_start + i); i 119 src/editor/editcomplete.c gsize i; i 130 src/editor/editcomplete.c for (i = 0; i < len; i++) i 134 src/editor/editcomplete.c ch = edit_buffer_get_byte (&esm->edit->buffer, start + i); i 139 src/editor/editcomplete.c if (start + (off_t) i == word_start) i 366 src/editor/editcomplete.c GList *i; i 400 src/editor/editcomplete.c for (i = g_queue_peek_tail_link (compl); i != NULL; i = g_list_previous (i)) i 401 src/editor/editcomplete.c listbox_add_item (compl_list, LISTBOX_APPEND_AT_END, 0, ((GString *) i->data)->str, NULL, i 432 src/editor/editcomplete.c gsize i; i 443 src/editor/editcomplete.c for (i = 0; i < word_len; i++) i 444 src/editor/editcomplete.c g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i)); i 386 src/editor/editdraw.c int i; i 435 src/editor/editdraw.c for (i = 0; i < LINE_STATE_WIDTH; i++) i 437 src/editor/editdraw.c edit_move (x1 + i - edit_options.line_state_width, y); i 438 src/editor/editdraw.c if (status[i] == '\0') i 439 src/editor/editdraw.c status[i] = ' '; i 440 src/editor/editdraw.c tty_print_char (status[i]); i 446 src/editor/editdraw.c i = 1; i 482 src/editor/editdraw.c if (i > edit_options.word_wrap_line_length + edit->start_col) i 484 src/editor/editdraw.c i++; i 632 src/editor/editdraw.c int i; i 634 src/editor/editdraw.c i = TAB_SIZE - ((int) col % TAB_SIZE); i 635 src/editor/editdraw.c tab_over = (end_col - edit->start_col) - (col + i - 1); i 637 src/editor/editdraw.c i += tab_over; i 638 src/editor/editdraw.c col += i; i 648 src/editor/editdraw.c if (i > 2) i 653 src/editor/editdraw.c while (--i > 1) i 663 src/editor/editdraw.c else if (i > 1) i 686 src/editor/editdraw.c while (--i != 0) i 698 src/editor/editdraw.c while (--i != 0) i 142 src/editor/editmacros.c int i; i 176 src/editor/editmacros.c for (i = 0; i < macro_index; i++) i 181 src/editor/editmacros.c action_name = keybind_lookup_actionname (record_macro_buf[i].action); i 191 src/editor/editmacros.c m_act.action = record_macro_buf[i].action; i 192 src/editor/editmacros.c m_act.ch = record_macro_buf[i].ch; i 194 src/editor/editmacros.c g_string_append_printf (macros_string, "%s:%i;", action_name, (int) record_macro_buf[i].ch); i 355 src/editor/editmacros.c int i, j; i 361 src/editor/editmacros.c for (i = 0; i < macro_index; i++) i 362 src/editor/editmacros.c edit_execute_cmd (edit, record_macro_buf[i].action, record_macro_buf[i].ch); i 390 src/editor/editmacros.c guint i; i 394 src/editor/editmacros.c for (i = 0; i < macros->macro->len; i++) i 398 src/editor/editmacros.c m_act = &g_array_index (macros->macro, struct macro_action_t, i); i 309 src/editor/editsearch.c off_t i; i 311 src/editor/editsearch.c for (i = current_pos; i < max_pos; i++) i 314 src/editor/editsearch.c if (edit_buffer_get_byte (buf, i) == end_string_symbol) i 335 src/editor/editsearch.c off_t i; i 337 src/editor/editsearch.c for (i = current_pos - 1; i >= 0; i--) i 338 src/editor/editsearch.c if (edit_buffer_get_byte (buf, i) == end_string_symbol) i 341 src/editor/editsearch.c return i; i 895 src/editor/editsearch.c gsize i; i 956 src/editor/editsearch.c for (i = 0; i < len; i++) i 959 src/editor/editsearch.c for (i = 0; i < repl_str->len; i++) i 960 src/editor/editsearch.c edit_insert (edit, repl_str->str[i]); i 319 src/editor/editwidget.c int i = 0; i 339 src/editor/editwidget.c listbox_add_item (listbox->list, LISTBOX_APPEND_AT_END, get_hotkey (i++), i 412 src/editor/etags.c gsize i; i 426 src/editor/etags.c for (i = 0; i < word_len; i++) i 427 src/editor/etags.c g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i)); i 125 src/editor/format.c long i; i 127 src/editor/format.c for (i = edit->buffer.curs_line - 1; i >= 0; i--) i 128 src/editor/format.c if (edit_line_is_blank (edit, i) || i 129 src/editor/format.c (force && bad_line_start (&edit->buffer, line_start (&edit->buffer, i)))) i 131 src/editor/format.c i++; i 135 src/editor/format.c *lines = edit->buffer.curs_line - i; i 150 src/editor/format.c long i; i 152 src/editor/format.c for (i = edit->buffer.curs_line + 1; i <= edit->buffer.lines; i++) i 153 src/editor/format.c if (edit_line_is_blank (edit, i) || i 154 src/editor/format.c (force && bad_line_start (&edit->buffer, line_start (&edit->buffer, i)))) i 156 src/editor/format.c i--; i 164 src/editor/format.c i - edit->buffer.curs_line, 0)); i 275 src/editor/format.c off_t i; i 278 src/editor/format.c for (i = q; i < size; i++) i 280 src/editor/format.c switch (t[i]) i 290 src/editor/format.c return i; i 303 src/editor/format.c off_t i; i 308 src/editor/format.c for (i = q;; i--) i 312 src/editor/format.c if (i == 0) i 314 src/editor/format.c c = t[i - 1]; i 318 src/editor/format.c return i; i 406 src/editor/format.c off_t i; i 413 src/editor/format.c for (i = 0; i < size; i++, p++) i 415 src/editor/format.c if (i != 0 && indent != 0) i 417 src/editor/format.c if (t[i - 1] == '\n' && c == '\n') i 422 src/editor/format.c else if (t[i - 1] == '\n') i 447 src/editor/format.c if (c != t[i]) i 448 src/editor/format.c replace_at (edit, p, t[i]); i 500 src/editor/format.c off_t i; i 515 src/editor/format.c for (i = 0; i < size - 1; i++) i 516 src/editor/format.c if (t->str[i] == '\n' && strchr (stop_format_chars, t->str[i + 1]) != NULL) i 151 src/editor/spell.c size_t i; i 153 src/editor/spell.c for (i = 0; spell_codes_map[i].code != NULL; i++) i 155 src/editor/spell.c if (strcmp (spell_codes_map[i].code, code) == 0) i 156 src/editor/spell.c return _(spell_codes_map[i].name); i 242 src/editor/spell.c unsigned int i = 0; i 255 src/editor/spell.c i++; i 260 src/editor/spell.c return i; i 331 src/editor/spell.c unsigned int i; i 382 src/editor/spell.c for (i = 0; i < suggest->len; i++) i 383 src/editor/spell.c listbox_add_item (sug_list, LISTBOX_APPEND_AT_END, 0, g_ptr_array_index (suggest, i), NULL, i 461 src/editor/spell.c unsigned int i; i 466 src/editor/spell.c for (i = 0; i < size; i++) i 617 src/editor/spell.c guint i; i 650 src/editor/spell.c for (i = 0; i < word_len; i++) i 654 src/editor/spell.c for (i = 0; new_word[i] != '\0'; i++) i 655 src/editor/spell.c edit_insert (edit, new_word[i]); i 740 src/editor/spell.c unsigned int i; i 748 src/editor/spell.c for (i = 0; i < languages->len; i++) i 749 src/editor/spell.c LISTBOX_APPEND_TEXT (lang_list, 0, g_ptr_array_index (languages, i), NULL, FALSE); i 245 src/editor/syntax.c compare_word_to_right (const WEdit *edit, off_t i, const GString *text, i 251 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i - 1); i 256 src/editor/syntax.c for (p = (const unsigned char *) text->str, q = p + text->len; p < q; p++, i++) i 265 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 273 src/editor/syntax.c i++; i 282 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 286 src/editor/syntax.c j = i; i 296 src/editor/syntax.c i--; i 301 src/editor/syntax.c i = j; i 304 src/editor/syntax.c i++; i 314 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 321 src/editor/syntax.c i++; i 323 src/editor/syntax.c i--; i 329 src/editor/syntax.c i--; i 334 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 345 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 352 src/editor/syntax.c return i; i 354 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 356 src/editor/syntax.c return strchr (whole_right, c) != NULL ? -1 : i; i 373 src/editor/syntax.c apply_rules_going_right (WEdit *edit, off_t i) i 384 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); i 389 src/editor/syntax.c is_end = (edit->rule.end == i); i 394 src/editor/syntax.c if (edit_buffer_get_byte (&edit->buffer, i - 1) == '\n') i 411 src/editor/syntax.c compare_word_to_right (edit, i, r->right, i 456 src/editor/syntax.c e = compare_word_to_right (edit, i, k->keyword, k->whole_word_chars_left, i 462 src/editor/syntax.c if (e > i + 1 && _rule._context != 0 i 508 src/editor/syntax.c e = compare_word_to_right (edit, i, r->right, r->whole_word_chars_left, i 535 src/editor/syntax.c e = compare_word_to_right (edit, i, r->left, r->whole_word_chars_left, i 572 src/editor/syntax.c e = compare_word_to_right (edit, i, k->keyword, k->whole_word_chars_left, i 591 src/editor/syntax.c off_t i; i 595 src/editor/syntax.c for (i = edit->last_get_rule + 1; i <= byte_index; i++) i 599 src/editor/syntax.c apply_rules_going_right (edit, i); i 604 src/editor/syntax.c if (i > d) i 609 src/editor/syntax.c s->offset = i; i 624 src/editor/syntax.c for (i = -1; i <= byte_index; i++) i 625 src/editor/syntax.c apply_rules_going_right (edit, i); i 634 src/editor/syntax.c for (i = s->offset + 1; i <= byte_index; i++) i 635 src/editor/syntax.c apply_rules_going_right (edit, i); i 924 src/editor/syntax.c size_t i; i 926 src/editor/syntax.c for (i = 0; i < len; ++i) i 927 src/editor/syntax.c line[i] = tolower (line[i]); i 1230 src/editor/syntax.c size_t i; i 1239 src/editor/syntax.c for (i = 0; i < edit->rules->len; i++) i 1244 src/editor/syntax.c c = CONTEXT_RULE (g_ptr_array_index (edit->rules, i)); i 1405 src/editor/syntax.c size_t i; i 1407 src/editor/syntax.c for (i = 0; i < sizeof (s) - 1; i++) i 1409 src/editor/syntax.c s[i] = edit_buffer_get_byte (&edit->buffer, i); i 1410 src/editor/syntax.c if (s[i] == '\n') i 1412 src/editor/syntax.c s[i] = '\0'; i 1436 src/editor/syntax.c size_t i; i 1444 src/editor/syntax.c for (i = 0; i < names->len; i++) i 1448 src/editor/syntax.c name = g_ptr_array_index (names, i); i 1451 src/editor/syntax.c listbox_set_current (syntaxlist->list, i + N_DFLT_ENTRIES); i 115 src/filemanager/achown.c int i; i 122 src/filemanager/achown.c for (i = BUTTONS_PERM; i < BUTTONS; i++) i 125 src/filemanager/achown.c advanced_chown_but[i].text = _(advanced_chown_but[i].text); i 128 src/filemanager/achown.c advanced_chown_but[i].len = str_term_width1 (advanced_chown_but[i].text) + 3; i 129 src/filemanager/achown.c if (advanced_chown_but[i].flags == DEFPUSH_BUTTON) i 130 src/filemanager/achown.c advanced_chown_but[i].len += 2; /* "<>" */ i 172 src/filemanager/achown.c int i; i 174 src/filemanager/achown.c for (i = 0; i < 3; i++) i 176 src/filemanager/achown.c if (ch_flags[f_p + i] == '+') i 177 src/filemanager/achown.c s[i] = ch_perm[i]; i 178 src/filemanager/achown.c else if (ch_flags[f_p + i] == '-') i 179 src/filemanager/achown.c s[i] = '-'; i 181 src/filemanager/achown.c s[i] = (ch_cmode & (1 << (8 - f_p - i))) != 0 ? ch_perm[i] : '-'; i 242 src/filemanager/achown.c int i; i 246 src/filemanager/achown.c for (i = 0; i < 3; i++) i 248 src/filemanager/achown.c widget_gotoyx (h, BY + 1, advanced_chown_but[0].x + 6 + i); i 249 src/filemanager/achown.c tty_print_char (ch_flags[i]); i 252 src/filemanager/achown.c for (i = 0; i < 3; i++) i 254 src/filemanager/achown.c widget_gotoyx (h, BY + 1, advanced_chown_but[1].x + 6 + i); i 255 src/filemanager/achown.c tty_print_char (ch_flags[i + 3]); i 258 src/filemanager/achown.c for (i = 0; i < 3; i++) i 260 src/filemanager/achown.c widget_gotoyx (h, BY + 1, advanced_chown_but[2].x + 6 + i); i 261 src/filemanager/achown.c tty_print_char (ch_flags[i + 6]); i 266 src/filemanager/achown.c for (i = 0; i < 15; i++) i 268 src/filemanager/achown.c widget_gotoyx (h, BY + 1, advanced_chown_but[3].x + 6 + i); i 271 src/filemanager/achown.c for (i = 0; i < 15; i++) i 273 src/filemanager/achown.c widget_gotoyx (h, BY + 1, advanced_chown_but[4].x + 6 + i); i 331 src/filemanager/achown.c int i = 0; i 390 src/filemanager/achown.c i++; i 394 src/filemanager/achown.c i++; i 398 src/filemanager/achown.c b->hotpos = i; i 402 src/filemanager/achown.c i = b->hotpos; i 404 src/filemanager/achown.c flag_pos = f_pos * 3 + i; i 413 src/filemanager/achown.c i++; i 417 src/filemanager/achown.c i++; i 421 src/filemanager/achown.c b->hotpos = i; i 422 src/filemanager/achown.c flag_pos = f_pos * 3 + i; i 677 src/filemanager/achown.c int i = 0; i 685 src/filemanager/achown.c i++; i 689 src/filemanager/achown.c i++; i 693 src/filemanager/achown.c parm = i + 3; i 694 src/filemanager/achown.c for (i = 0; i < 3; i++) i 695 src/filemanager/achown.c ch_flags[i * 3 + parm - 3] = (x_toggle & (1 << parm)) ? '-' : '+'; i 702 src/filemanager/achown.c i++; i 706 src/filemanager/achown.c i++; i 710 src/filemanager/achown.c parm = i; i 711 src/filemanager/achown.c for (i = 0; i < 3; i++) i 712 src/filemanager/achown.c ch_flags[i * 3 + parm] = (x_toggle & (1 << parm)) ? '-' : '+'; i 738 src/filemanager/achown.c int i; i 762 src/filemanager/achown.c #define XTRACT(i,y,cb) y, BX+advanced_chown_but[i].x, \ i 763 src/filemanager/achown.c advanced_chown_but[i].ret_cmd, advanced_chown_but[i].flags, \ i 764 src/filemanager/achown.c (advanced_chown_but[i].text), cb i 782 src/filemanager/achown.c i = BUTTONS_PERM; i 784 src/filemanager/achown.c advanced_chown_but[i].id = group_add_widget (ch_grp, i 787 src/filemanager/achown.c advanced_chown_but[i].len, i 788 src/filemanager/achown.c advanced_chown_but[i].ret_cmd, i 789 src/filemanager/achown.c advanced_chown_but[i].flags, i 790 src/filemanager/achown.c advanced_chown_but[i].text, NULL)); i 791 src/filemanager/achown.c i++; i 792 src/filemanager/achown.c advanced_chown_but[i].id = group_add_widget (ch_grp, i 795 src/filemanager/achown.c advanced_chown_but[i].ret_cmd, i 796 src/filemanager/achown.c advanced_chown_but[i].flags, i 797 src/filemanager/achown.c advanced_chown_but[i].text, NULL)); i 801 src/filemanager/achown.c i = BUTTONS_PERM + 2; i 803 src/filemanager/achown.c advanced_chown_but[i].id = group_add_widget (ch_grp, i 806 src/filemanager/achown.c advanced_chown_but[i].len, i 807 src/filemanager/achown.c advanced_chown_but[i].ret_cmd, i 808 src/filemanager/achown.c advanced_chown_but[i].flags, i 809 src/filemanager/achown.c advanced_chown_but[i].text, NULL)); i 810 src/filemanager/achown.c i++; i 811 src/filemanager/achown.c advanced_chown_but[i].id = group_add_widget (ch_grp, i 813 src/filemanager/achown.c advanced_chown_but[i].ret_cmd, i 814 src/filemanager/achown.c advanced_chown_but[i].flags, i 815 src/filemanager/achown.c advanced_chown_but[i].text, NULL)); i 217 src/filemanager/boxes.c unsigned int i; i 239 src/filemanager/boxes.c for (i = 0; i < skin_names->len; i++) i 241 src/filemanager/boxes.c skin_name = g_ptr_array_index (skin_names, i); i 855 src/filemanager/boxes.c int i; i 858 src/filemanager/boxes.c for (i = 0; i < LIST_FORMATS; i++) i 859 src/filemanager/boxes.c g_free (panel->user_status_format[i]); i 872 src/filemanager/boxes.c gsize i; i 879 src/filemanager/boxes.c for (i = 0; i < sort_names_num; i++) i 880 src/filemanager/boxes.c if (strcmp (sort_orders_names[i], _(sort_field->title_hotkey)) == 0) i 882 src/filemanager/boxes.c sort_idx = i; i 1296 src/filemanager/boxes.c size_t i; i 1305 src/filemanager/boxes.c for (i = 0; i < n_but; i++) i 1308 src/filemanager/boxes.c job_but[i].name = _(job_but[i].name); i 1311 src/filemanager/boxes.c job_but[i].len = str_term_width1 (job_but[i].name) + 3; i 1312 src/filemanager/boxes.c if (job_but[i].flags == DEFPUSH_BUTTON) i 1313 src/filemanager/boxes.c job_but[i].len += 2; i 1314 src/filemanager/boxes.c x += job_but[i].len; i 1331 src/filemanager/boxes.c for (i = 0; i < n_but; i++) i 1333 src/filemanager/boxes.c group_add_widget (g, button_new (lines - 3, x, job_but[i].value, job_but[i].flags, i 1334 src/filemanager/boxes.c job_but[i].name, job_but[i].callback)); i 1335 src/filemanager/boxes.c x += job_but[i].len + 1; i 253 src/filemanager/chattr.c chattr_is_modifiable (size_t i) i 255 src/filemanager/chattr.c return ((check_attr[i].flags & EXT2_FL_USER_MODIFIABLE) != 0); i 263 src/filemanager/chattr.c size_t i; i 265 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 266 src/filemanager/chattr.c str[i] = (attr & check_attr[i].flags) != 0 ? check_attr[i].attr : '-'; i 292 src/filemanager/chattr.c size_t i; i 309 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 312 src/filemanager/chattr.c if (chattr_is_modifiable (i)) i 329 src/filemanager/chattr.c tty_print_char (fat->attrs[i]); i 413 src/filemanager/chattr.c int i; i 434 src/filemanager/chattr.c for (i = 1; i < max_line; i++) i 436 src/filemanager/chattr.c widget_gotoyx (w, i, w->rect.cols); i 437 src/filemanager/chattr.c if (i != line) i 450 src/filemanager/chattr.c int i; i 467 src/filemanager/chattr.c for (i = cb->top, l = GROUP (cb)->widgets; l != NULL; i++, l = g_list_next (l)) i 468 src/filemanager/chattr.c chattr_draw_select (WIDGET (l->data), check_attr[i].selected); i 478 src/filemanager/chattr.c int i; i 487 src/filemanager/chattr.c for (i = cb->top, l = GROUP (cb)->widgets; l != NULL; i++, l = g_list_next (l)) i 490 src/filemanager/chattr.c int m = check_attr_mod[i]; i 510 src/filemanager/chattr.c int i; i 513 src/filemanager/chattr.c for (i = cb->top, l = CONST_GROUP (cb)->widgets; l != NULL; i++, l = g_list_next (l)) i 515 src/filemanager/chattr.c int m = check_attr_mod[i]; i 571 src/filemanager/chattr.c int i = WIDGET (cb)->rect.lines; i 575 src/filemanager/chattr.c if (cb->top > check_attr_mod_num - 2 * i) i 576 src/filemanager/chattr.c i = check_attr_mod_num - i - cb->top; i 577 src/filemanager/chattr.c if (cb->top + i < 0) i 578 src/filemanager/chattr.c i = -cb->top; i 579 src/filemanager/chattr.c if (i == 0) i 582 src/filemanager/chattr.c cb->top += i; i 587 src/filemanager/chattr.c cb->pos += i; i 588 src/filemanager/chattr.c cb->top += i; i 667 src/filemanager/chattr.c int i = WIDGET (cb)->rect.lines; i 671 src/filemanager/chattr.c if (cb->top < i) i 672 src/filemanager/chattr.c i = cb->top; i 673 src/filemanager/chattr.c if (i == 0) i 676 src/filemanager/chattr.c cb->top -= i; i 681 src/filemanager/chattr.c cb->pos -= i; i 682 src/filemanager/chattr.c cb->top -= i; i 781 src/filemanager/chattr.c int i; i 783 src/filemanager/chattr.c i = g_list_index (g->widgets, sender); i 784 src/filemanager/chattr.c if (i >= 0) i 788 src/filemanager/chattr.c i += cb->top; i 789 src/filemanager/chattr.c m = check_attr_mod[i]; i 792 src/filemanager/chattr.c chattr_toggle_select (cb, i); i 803 src/filemanager/chattr.c int i; i 805 src/filemanager/chattr.c i = g_list_index (g->widgets, sender); i 806 src/filemanager/chattr.c cb->pos = cb->top + i; i 882 src/filemanager/chattr.c int i; i 893 src/filemanager/chattr.c for (i = 0; i < r->lines; i++) i 895 src/filemanager/chattr.c int m = check_attr_mod[i]; i 898 src/filemanager/chattr.c check = check_new (i, 0, check_attr[m].state, NULL); i 916 src/filemanager/chattr.c size_t i; i 918 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 919 src/filemanager/chattr.c check_attr[i].selected = FALSE; i 926 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 927 src/filemanager/chattr.c if (chattr_is_modifiable (i)) i 932 src/filemanager/chattr.c check_attr[i].text = _(check_attr[i].text); i 935 src/filemanager/chattr.c check_attr_mod[check_attr_mod_num++] = i; i 937 src/filemanager/chattr.c width = 4 + str_term_width1 (check_attr[i].text); /* "(Q) text " */ i 943 src/filemanager/chattr.c for (i = 0; i < BUTTONS; i++) i 946 src/filemanager/chattr.c chattr_but[i].text = _(chattr_but[i].text); i 949 src/filemanager/chattr.c chattr_but[i].width = str_term_width1 (chattr_but[i].text) + 3; /* [], spaces and w/o & */ i 950 src/filemanager/chattr.c if (chattr_but[i].flags == DEFPUSH_BUTTON) i 951 src/filemanager/chattr.c chattr_but[i].width += 2; /* <> */ i 965 src/filemanager/chattr.c size_t i; i 974 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 975 src/filemanager/chattr.c check_attr[i].state = chattr_is_modifiable (i) && (attr & check_attr[i].flags) != 0; i 1024 src/filemanager/chattr.c for (i = single_set ? (BUTTONS - 2) : 0; i < BUTTONS; i++) i 1026 src/filemanager/chattr.c if (i == 0 || i == BUTTONS - 2) i 1029 src/filemanager/chattr.c chattr_but[i].button = WIDGET (button_new (y, dw->rect.cols / 2 + 1 - chattr_but[i].width, i 1030 src/filemanager/chattr.c chattr_but[i].ret_cmd, chattr_but[i].flags, i 1031 src/filemanager/chattr.c chattr_but[i].text, NULL)); i 1032 src/filemanager/chattr.c group_add_widget (dg, chattr_but[i].button); i 1034 src/filemanager/chattr.c i++; i 1035 src/filemanager/chattr.c chattr_but[i].button = i 1036 src/filemanager/chattr.c WIDGET (button_new (y++, dw->rect.cols / 2 + 2, chattr_but[i].ret_cmd, i 1037 src/filemanager/chattr.c chattr_but[i].flags, chattr_but[i].text, NULL)); i 1038 src/filemanager/chattr.c group_add_widget (dg, chattr_but[i].button); i 1042 src/filemanager/chattr.c MAX (cols, chattr_but[i - 1].button->rect.cols + 1 + chattr_but[i].button->rect.cols); i 1057 src/filemanager/chattr.c for (i = single_set ? (BUTTONS - 2) : 0; i < BUTTONS; i++) i 1061 src/filemanager/chattr.c b = chattr_but[i++].button; i 1066 src/filemanager/chattr.c b = chattr_but[i].button; i 1208 src/filemanager/chattr.c size_t i; i 1269 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 1270 src/filemanager/chattr.c if (chattr_is_modifiable (i) && (check_attr[i].selected || result == B_SETALL)) i 1272 src/filemanager/chattr.c if (check_attr[i].state) i 1273 src/filemanager/chattr.c or_mask |= check_attr[i].flags; i 1275 src/filemanager/chattr.c and_mask &= ~check_attr[i].flags; i 1287 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 1288 src/filemanager/chattr.c if (chattr_is_modifiable (i) && check_attr[i].selected) i 1289 src/filemanager/chattr.c or_mask |= check_attr[i].flags; i 1300 src/filemanager/chattr.c for (i = 0; i < check_attr_num; i++) i 1301 src/filemanager/chattr.c if (chattr_is_modifiable (i) && check_attr[i].selected) i 1302 src/filemanager/chattr.c and_mask &= ~check_attr[i].flags; i 136 src/filemanager/chmod.c int i, len; i 138 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 139 src/filemanager/chmod.c check_perm[i].selected = FALSE; i 147 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 148 src/filemanager/chmod.c check_perm[i].text = _(check_perm[i].text); i 150 src/filemanager/chmod.c for (i = 0; i < LABELS; i++) i 151 src/filemanager/chmod.c file_info_labels[i] = _(file_info_labels[i]); i 153 src/filemanager/chmod.c for (i = 0; i < BUTTONS; i++) i 154 src/filemanager/chmod.c chmod_but[i].text = _(chmod_but[i].text); i 157 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 159 src/filemanager/chmod.c len = str_term_width1 (check_perm[i].text); i 165 src/filemanager/chmod.c for (i = 0; i < LABELS; i++) i 167 src/filemanager/chmod.c len = str_term_width1 (file_info_labels[i]) + 2; /* spaces around */ i 171 src/filemanager/chmod.c for (i = 0; i < BUTTONS; i++) i 173 src/filemanager/chmod.c chmod_but[i].len = str_term_width1 (chmod_but[i].text) + 3; /* [], spaces and w/o & */ i 174 src/filemanager/chmod.c if (chmod_but[i].flags == DEFPUSH_BUTTON) i 175 src/filemanager/chmod.c chmod_but[i].len += 2; /* <> */ i 204 src/filemanager/chmod.c int i; i 209 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 210 src/filemanager/chmod.c chmod_draw_select (h, i); i 255 src/filemanager/chmod.c int i; i 258 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 259 src/filemanager/chmod.c if (sender == WIDGET (check_perm[i].check)) i 262 src/filemanager/chmod.c if (i < BUTTONS_PERM) i 264 src/filemanager/chmod.c ch_mode ^= check_perm[i].mode; i 266 src/filemanager/chmod.c chmod_toggle_select (h, i); i 277 src/filemanager/chmod.c int i; i 281 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 282 src/filemanager/chmod.c if (id == WIDGET (check_perm[i].check)->id) i 285 src/filemanager/chmod.c if (i < BUTTONS_PERM) i 287 src/filemanager/chmod.c chmod_toggle_select (h, i); i 309 src/filemanager/chmod.c int i, y; i 343 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 345 src/filemanager/chmod.c check_perm[i].check = check_new (PY + i + 1, PX + 2, (ch_mode & check_perm[i].mode) != 0, i 346 src/filemanager/chmod.c check_perm[i].text); i 347 src/filemanager/chmod.c group_add_widget (g, check_perm[i].check); i 368 src/filemanager/chmod.c i = 0; i 370 src/filemanager/chmod.c group_add_widget (g, hline_new (lines - chmod_but[i].y - 1, -1, -1)); i 372 src/filemanager/chmod.c for (; i < BUTTONS - 2; i++) i 374 src/filemanager/chmod.c y = lines - chmod_but[i].y; i 375 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, i 376 src/filemanager/chmod.c chmod_but[i].ret_cmd, chmod_but[i].flags, i 377 src/filemanager/chmod.c chmod_but[i].text, NULL)); i 378 src/filemanager/chmod.c i++; i 380 src/filemanager/chmod.c chmod_but[i].ret_cmd, chmod_but[i].flags, i 381 src/filemanager/chmod.c chmod_but[i].text, NULL)); i 385 src/filemanager/chmod.c i = BUTTONS - 2; i 386 src/filemanager/chmod.c y = lines - chmod_but[i].y; i 388 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chmod_but[i].len, i 389 src/filemanager/chmod.c chmod_but[i].ret_cmd, chmod_but[i].flags, chmod_but[i].text, i 391 src/filemanager/chmod.c i++; i 392 src/filemanager/chmod.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chmod_but[i].ret_cmd, i 393 src/filemanager/chmod.c chmod_but[i].flags, chmod_but[i].text, NULL)); i 534 src/filemanager/chmod.c int i, result; i 591 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 592 src/filemanager/chmod.c if (check_perm[i].selected || result == B_SETALL) i 594 src/filemanager/chmod.c if (check_perm[i].check->state) i 595 src/filemanager/chmod.c or_mask |= check_perm[i].mode; i 597 src/filemanager/chmod.c and_mask &= ~check_perm[i].mode; i 609 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 610 src/filemanager/chmod.c if (check_perm[i].selected) i 611 src/filemanager/chmod.c or_mask |= check_perm[i].mode; i 622 src/filemanager/chmod.c for (i = 0; i < BUTTONS_PERM; i++) i 623 src/filemanager/chmod.c if (check_perm[i].selected) i 624 src/filemanager/chmod.c and_mask &= ~check_perm[i].mode; i 121 src/filemanager/chown.c int i; i 129 src/filemanager/chown.c for (i = 0; i < BUTTONS; i++) i 130 src/filemanager/chown.c chown_but[i].text = _(chown_but[i].text); i 133 src/filemanager/chown.c for (i = 0; i < BUTTONS; i++) i 135 src/filemanager/chown.c chown_but[i].len = str_term_width1 (chown_but[i].text) + 3; /* [], spaces and w/o & */ i 136 src/filemanager/chown.c if (chown_but[i].flags == DEFPUSH_BUTTON) i 137 src/filemanager/chown.c chown_but[i].len += 2; /* <> */ i 139 src/filemanager/chown.c if (i < BUTTONS - 2) i 140 src/filemanager/chown.c blen += chown_but[i].len; i 194 src/filemanager/chown.c int i, y; i 234 src/filemanager/chown.c for (i = 0; i < LABELS; i++) i 236 src/filemanager/chown.c chown_label[i].l = label_new (chown_label[i].y, 7 + GW * 2, NULL); i 237 src/filemanager/chown.c group_add_widget (g, chown_label[i].l); i 249 src/filemanager/chown.c for (i = 0; i < BUTTONS - 2; i++) i 251 src/filemanager/chown.c group_add_widget (g, button_new (y, x, chown_but[i].ret_cmd, chown_but[i].flags, i 252 src/filemanager/chown.c chown_but[i].text, NULL)); i 253 src/filemanager/chown.c x += chown_but[i].len + 1; i 257 src/filemanager/chown.c i = BUTTONS - 2; i 258 src/filemanager/chown.c y = lines - chown_but[i].y; i 260 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 - chown_but[i].len, i 261 src/filemanager/chown.c chown_but[i].ret_cmd, chown_but[i].flags, chown_but[i].text, i 263 src/filemanager/chown.c i++; i 264 src/filemanager/chown.c group_add_widget (g, button_new (y, WIDGET (ch_dlg)->rect.cols / 2 + 1, chown_but[i].ret_cmd, i 265 src/filemanager/chown.c chown_but[i].flags, chown_but[i].text, NULL)); i 213 src/filemanager/cmd.c int i, j; i 221 src/filemanager/cmd.c for (i = 0; i < panel->dir.len; i++) i 223 src/filemanager/cmd.c file_entry_t *source = &panel->dir.list[i]; i 227 src/filemanager/cmd.c file_mark (panel, i, 0); i 252 src/filemanager/cmd.c do_file_mark (panel, i, 1); i 266 src/filemanager/cmd.c do_file_mark (panel, i, 1); i 278 src/filemanager/cmd.c do_file_mark (panel, i, 1); i 292 src/filemanager/cmd.c do_file_mark (panel, i, 1); i 1110 src/filemanager/cmd.c int i; i 1112 src/filemanager/cmd.c i = readlink (p, buffer, sizeof (buffer) - 1); i 1113 src/filemanager/cmd.c if (i > 0) i 1117 src/filemanager/cmd.c buffer[i] = '\0'; i 1307 src/filemanager/cmd.c int i; i 1314 src/filemanager/cmd.c for (i = 0; i < panel->dir.len; i++) i 1315 src/filemanager/cmd.c if (S_ISDIR (panel->dir.list[i].st.st_mode) i 1316 src/filemanager/cmd.c && ((panel->dirs_marked != 0 && panel->dir.list[i].f.marked != 0) i 1317 src/filemanager/cmd.c || panel->dirs_marked == 0) && !DIR_IS_DOTDOT (panel->dir.list[i].fname->str)) i 1325 src/filemanager/cmd.c p = vfs_path_from_str (panel->dir.list[i].fname->str); i 1331 src/filemanager/cmd.c panel->dir.list[i].st.st_size = (off_t) total; i 1332 src/filemanager/cmd.c panel->dir.list[i].f.dir_size_computed = 1; i 115 src/filemanager/command.c size_t i; i 133 src/filemanager/command.c for (i = 0; cmd[i] != '\0'; i++) i 135 src/filemanager/command.c if (cmd[i] != '%') i 136 src/filemanager/command.c g_string_append_c (command, cmd[i]); i 141 src/filemanager/command.c s = expand_format (NULL, cmd[++i], TRUE); i 131 src/filemanager/dir.c int i; i 133 src/filemanager/dir.c for (i = 0; i < count; i++) i 137 src/filemanager/dir.c fentry = &list->list[i + start]; i 523 src/filemanager/dir.c int i; i 525 src/filemanager/dir.c for (i = 0; i < list->len; i++) i 529 src/filemanager/dir.c fentry = &list->list[i]; i 544 src/filemanager/dir.c int i; i 546 src/filemanager/dir.c for (i = 0; i < list->len; i++) i 550 src/filemanager/dir.c fentry = &list->list[i]; i 712 src/filemanager/dir.c int i; i 733 src/filemanager/dir.c for (marked_cnt = i = 0; i < list->len; i++) i 737 src/filemanager/dir.c fentry = &list->list[i]; i 738 src/filemanager/dir.c dfentry = &dir_copy.list[i]; i 194 src/filemanager/ext.c size_t i; i 219 src/filemanager/ext.c for (i = 0; export_variables[i].name != NULL; i++) i 222 src/filemanager/ext.c exec_expand_format (export_variables[i].symbol, export_variables[i].is_result_quoted); i 226 src/filemanager/ext.c "%s=%s\nexport %s\n", export_variables[i].name, text, i 227 src/filemanager/ext.c export_variables[i].name); i 288 src/filemanager/ext.c int i; i 290 src/filemanager/ext.c i = check_format_view (lc_data); i 291 src/filemanager/ext.c if (i != 0) i 293 src/filemanager/ext.c lc_data += i - 1; i 298 src/filemanager/ext.c i = check_format_cd (lc_data); i 299 src/filemanager/ext.c if (i > 0) i 305 src/filemanager/ext.c lc_data += i - 1; i 311 src/filemanager/ext.c i = check_format_var (lc_data, &v); i 312 src/filemanager/ext.c if (i > 0) i 316 src/filemanager/ext.c lc_data += i; i 708 src/filemanager/file.c int i; i 712 src/filemanager/file.c for (i = 0; i < panel->dir.len; i++) i 714 src/filemanager/file.c const file_entry_t *fe = &panel->dir.list[i]; i 1519 src/filemanager/file.c int i = 1; i 1528 src/filemanager/file.c i = 0; i 1533 src/filemanager/file.c return i; i 1778 src/filemanager/file.c int i; i 1780 src/filemanager/file.c for (i = 0; i < panel->dir.len; i++) i 1781 src/filemanager/file.c if (panel->dir.list[i].f.marked != 0) i 1782 src/filemanager/file.c return panel->dir.list[i].fname->str; i 1864 src/filemanager/file.c size_t i; i 1866 src/filemanager/file.c for (i = G_N_ELEMENTS (op_names1); i-- != 0;) i 1867 src/filemanager/file.c op_names1[i] = Q_ (op_names1[i]); i 1870 src/filemanager/file.c for (i = G_N_ELEMENTS (prompt_parts); i-- != 0;) i 1871 src/filemanager/file.c prompt_parts[i] = _(prompt_parts[i]); i 1992 src/filemanager/file.c int i; i 2008 src/filemanager/file.c i = fmd_xlen - str_term_width1 (format) - 4; i 2009 src/filemanager/file.c g_snprintf (fmd_buf, sizeof (fmd_buf), format, str_trunc (source, i)); i 2017 src/filemanager/file.c i = query_dialog (op_names[OP_DELETE], fmd_buf, D_ERROR, 2, _("&Yes"), _("&No")); i 2019 src/filemanager/file.c return (i == 0); i 3503 src/filemanager/file.c int i; i 3513 src/filemanager/file.c for (i = G_N_ELEMENTS (op_names); i-- != 0;) i 3514 src/filemanager/file.c op_names[i] = Q_ (op_names[i]); i 3662 src/filemanager/file.c for (i = 0; i < panel->dir.len; i++) i 3666 src/filemanager/file.c if (panel->dir.list[i].f.marked == 0) i 3669 src/filemanager/file.c source2 = panel->dir.list[i].fname->str; i 3670 src/filemanager/file.c src_stat = panel->dir.list[i].st; i 3677 src/filemanager/file.c do_file_mark (panel, i, 0); i 435 src/filemanager/filegui.c #define W(i) dlg_widgets[i].widget i 436 src/filemanager/filegui.c #define WX(i) W(i)->rect.x i 437 src/filemanager/filegui.c #define WY(i) W(i)->rect.y i 438 src/filemanager/filegui.c #define WCOLS(i) W(i)->rect.cols i 440 src/filemanager/filegui.c #define NEW_LABEL(i, text) \ i 441 src/filemanager/filegui.c W(i) = WIDGET (label_new (dlg_widgets[i].y, dlg_widgets[i].x, text)) i 443 src/filemanager/filegui.c #define ADD_LABEL(i) \ i 444 src/filemanager/filegui.c group_add_widget_autopos (g, W(i), dlg_widgets[i].pos_flags, \ i 447 src/filemanager/filegui.c #define NEW_BUTTON(i) \ i 448 src/filemanager/filegui.c W(i) = WIDGET (button_new (dlg_widgets[i].y, dlg_widgets[i].x, \ i 449 src/filemanager/filegui.c dlg_widgets[i].value, NORMAL_BUTTON, dlg_widgets[i].text, NULL)) i 451 src/filemanager/filegui.c #define ADD_BUTTON(i) \ i 452 src/filemanager/filegui.c group_add_widget_autopos (g, W(i), dlg_widgets[i].pos_flags, g->current->data) i 528 src/filemanager/filegui.c unsigned short i; i 545 src/filemanager/filegui.c for (i = 0; i < num; i++) i 546 src/filemanager/filegui.c if (dlg_widgets[i].text != NULL) i 547 src/filemanager/filegui.c dlg_widgets[i].text = _(dlg_widgets[i].text); i 598 src/filemanager/filegui.c for (i = 15; i <= 20; i++) i 599 src/filemanager/filegui.c NEW_BUTTON (i); i 613 src/filemanager/filegui.c for (i = 16; i <= 19; i++) i 614 src/filemanager/filegui.c bw2 += gap + WCOLS (i); i 665 src/filemanager/filegui.c for (i = 16; i <= 19; i++) i 666 src/filemanager/filegui.c WX (i) = WX (i - 1) + WCOLS (i - 1) + gap; i 676 src/filemanager/filegui.c for (i = 0; i <= 7; i++) i 677 src/filemanager/filegui.c ADD_LABEL (i); i 693 src/filemanager/filegui.c for (i = 15; i <= 19; i++) i 694 src/filemanager/filegui.c ADD_BUTTON (i); i 751 src/filemanager/filegui.c const size_t i = suspended ? 2 : 1; i 756 src/filemanager/filegui.c buttons_width += progress_buttons[i].len; i 757 src/filemanager/filegui.c button_set_text (BUTTON (progress_buttons[i].w), progress_buttons[i].text); i 760 src/filemanager/filegui.c progress_buttons[i].w->rect.x = progress_buttons[0].w->rect.x + progress_buttons[0].len + 1; i 761 src/filemanager/filegui.c progress_buttons[3].w->rect.x = progress_buttons[i].w->rect.x + progress_buttons[i].len + 1; i 898 src/filemanager/filegui.c size_t i; i 900 src/filemanager/filegui.c for (i = 0; i < G_N_ELEMENTS (progress_buttons); i++) i 901 src/filemanager/filegui.c progress_buttons[i].text = _(progress_buttons[i].text); i 730 src/filemanager/filemanager.c int i; i 733 src/filemanager/filemanager.c i = mc_readlink (vpath, buffer, sizeof (buffer) - 1); i 736 src/filemanager/filemanager.c if (i > 0) i 738 src/filemanager/filemanager.c buffer[i] = '\0'; i 809 src/filemanager/filemanager.c int i; i 811 src/filemanager/filemanager.c for (i = 0; i < panel->dir.len; i++) i 812 src/filemanager/filemanager.c if (panel->dir.list[i].f.marked != 0) i 813 src/filemanager/filemanager.c command_insert (cmdline, panel->dir.list[i].fname->str, TRUE); i 623 src/filemanager/find.c size_t i; i 646 src/filemanager/find.c for (i = 0; i < G_N_ELEMENTS (buts); i++) i 647 src/filemanager/find.c buts[i] = _(buts[i]); i 1059 src/filemanager/find.c int i = -1; /* compensate for a newline we'll add when we first enter the loop */ i 1068 src/filemanager/find.c i = last_i; i 1076 src/filemanager/find.c off += i + 1; /* the previous line, plus a newline character */ i 1077 src/filemanager/find.c i = 0; i 1094 src/filemanager/find.c if (i == 0) i 1102 src/filemanager/find.c if (i >= strbuf_size - 1) i 1112 src/filemanager/find.c strbuf[i++] = ch; i 1115 src/filemanager/find.c if (i == 0) i 1124 src/filemanager/find.c strbuf[i] = '\0'; i 1127 src/filemanager/find.c && mc_search_run (search_content_handle, (const void *) strbuf, 0, i, &found_len)) i 1175 src/filemanager/find.c last_i = i; i 1557 src/filemanager/find.c size_t i; i 1561 src/filemanager/find.c for (i = 0; i < fbuts_num; i++) i 1562 src/filemanager/find.c fbuts[i].button->rect.x = CONST_WIDGET (h)->rect.x + fbuts[i].x; i 1674 src/filemanager/find.c size_t i; i 1682 src/filemanager/find.c for (i = 0; i < fbuts_num; i++) i 1685 src/filemanager/find.c fbuts[i].text = _(fbuts[i].text); i 1687 src/filemanager/find.c fbuts[i].len = str_term_width1 (fbuts[i].text) + 3; i 1688 src/filemanager/find.c if (fbuts[i].flags == DEFPUSH_BUTTON) i 1689 src/filemanager/find.c fbuts[i].len += 2; i 1720 src/filemanager/find.c for (i = 0; i < fbuts_num; i++) i 1722 src/filemanager/find.c if (i == 3) i 1726 src/filemanager/find.c fbuts[i].button = i 1728 src/filemanager/find.c (y, fbuts[i].x, fbuts[i].ret_cmd, fbuts[i].flags, fbuts[i].text, i 1729 src/filemanager/find.c fbuts[i].callback)); i 1730 src/filemanager/find.c group_add_widget_autopos (g, fbuts[i].button, WPOS_KEEP_BOTTOM, NULL); i 1733 src/filemanager/find.c if (i == quit_button) i 676 src/filemanager/hotlist.c size_t i; i 682 src/filemanager/hotlist.c for (i = 0; i < hotlist_but_num; i++) i 685 src/filemanager/hotlist.c hotlist_but[i].text = _(hotlist_but[i].text); i 687 src/filemanager/hotlist.c hotlist_but[i].len = str_term_width1 (hotlist_but[i].text) + 3; i 688 src/filemanager/hotlist.c if (hotlist_but[i].flags == DEFPUSH_BUTTON) i 689 src/filemanager/hotlist.c hotlist_but[i].len += 2; i 705 src/filemanager/hotlist.c for (i = 0; i < hotlist_but_num; i++) i 706 src/filemanager/hotlist.c if ((hotlist_but[i].type & list_type) != 0) i 710 src/filemanager/hotlist.c row = hotlist_but[i].y; i 712 src/filemanager/hotlist.c len[row] += hotlist_but[i].len + 1; i 721 src/filemanager/hotlist.c for (i = 0; i < hotlist_but_num; i++) i 722 src/filemanager/hotlist.c if ((hotlist_but[i].type & list_type) != 0) i 726 src/filemanager/hotlist.c row = hotlist_but[i].y; i 728 src/filemanager/hotlist.c if (hotlist_but[i].x != 0) i 731 src/filemanager/hotlist.c if (hotlist_but[i].ret_cmd == B_CANCEL) i 732 src/filemanager/hotlist.c hotlist_but[i].x = cols - hotlist_but[i].len - 6; i 734 src/filemanager/hotlist.c hotlist_but[i].x = cur_x[row]; i 737 src/filemanager/hotlist.c cur_x[row] += hotlist_but[i].len + 1; i 749 src/filemanager/hotlist.c size_t i; i 817 src/filemanager/hotlist.c for (i = 0; i < hotlist_but_num; i++) i 818 src/filemanager/hotlist.c if ((hotlist_but[i].type & list_type) != 0) i 820 src/filemanager/hotlist.c button_new (y + hotlist_but[i].y, UX + hotlist_but[i].x, i 821 src/filemanager/hotlist.c hotlist_but[i].ret_cmd, hotlist_but[i].flags, i 822 src/filemanager/hotlist.c hotlist_but[i].text, hotlist_button_callback), i 823 src/filemanager/hotlist.c hotlist_but[i].pos_flags, NULL); i 833 src/filemanager/hotlist.c size_t i; i 870 src/filemanager/hotlist.c for (i = 0; i < hotlist_but_num; i++) i 871 src/filemanager/hotlist.c if ((hotlist_but[i].type & LIST_MOVELIST) != 0) i 873 src/filemanager/hotlist.c button_new (y + hotlist_but[i].y, UX + hotlist_but[i].x, i 874 src/filemanager/hotlist.c hotlist_but[i].ret_cmd, hotlist_but[i].flags, i 875 src/filemanager/hotlist.c hotlist_but[i].text, hotlist_button_callback), i 876 src/filemanager/hotlist.c hotlist_but[i].pos_flags, NULL); i 1524 src/filemanager/hotlist.c int i; i 1529 src/filemanager/hotlist.c for (i = 0; i < n; i++) \ i 498 src/filemanager/layout.c size_t i; i 522 src/filemanager/layout.c i = G_N_ELEMENTS (s_split_direction); i 523 src/filemanager/layout.c while (i-- != 0) i 524 src/filemanager/layout.c s_split_direction[i] = _(s_split_direction[i]); i 528 src/filemanager/layout.c for (i = 0; i < (size_t) LAYOUT_OPTIONS_COUNT; i++) i 529 src/filemanager/layout.c check_options[i].text = _(check_options[i].text); i 539 src/filemanager/layout.c i = G_N_ELEMENTS (s_split_direction); i 540 src/filemanager/layout.c while (i-- != 0) i 541 src/filemanager/layout.c l1 = max (l1, str_term_width1 (s_split_direction[i]) + 7); i 543 src/filemanager/layout.c for (i = 0; i < (size_t) LAYOUT_OPTIONS_COUNT; i++) i 544 src/filemanager/layout.c l1 = max (l1, str_term_width1 (check_options[i].text) + 7); i 567 src/filemanager/layout.c #define XTRACT(i) (*check_options[i].variable != 0), check_options[i].text i 615 src/filemanager/layout.c for (i = 1; i < (size_t) LAYOUT_OPTIONS_COUNT; i++) i 617 src/filemanager/layout.c check_options[i].widget = check_new (i + 2, 6 + l1, XTRACT (i)); i 618 src/filemanager/layout.c group_add_widget (g, check_options[i].widget); i 733 src/filemanager/layout.c size_t i; i 735 src/filemanager/layout.c for (i = 0; i < (size_t) LAYOUT_OPTIONS_COUNT; i++) i 736 src/filemanager/layout.c if (check_options[i].widget != NULL) i 737 src/filemanager/layout.c *check_options[i].variable = check_options[i].widget->state; i 1467 src/filemanager/layout.c int i; i 1469 src/filemanager/layout.c for (i = 0; i < MAX_VIEWS; i++) i 1470 src/filemanager/layout.c if (PANEL (get_panel_widget (i)) == widget) i 1473 src/filemanager/layout.c if (i >= MAX_VIEWS) i 1476 src/filemanager/layout.c if (get_panel_type (i) == view_listing) i 1480 src/filemanager/layout.c cwd_vpath = PANEL (get_panel_widget (i))->cwd_vpath; i 1484 src/filemanager/layout.c return g_strdup (panels[i].last_saved_dir); i 118 src/filemanager/listmode.c int i; i 124 src/filemanager/listmode.c for (i = 0; possible_items[i]; i++) i 126 src/filemanager/listmode.c listbox_add_item (mylistbox->list, LISTBOX_APPEND_AT_END, 0, possible_items[i], NULL, i 130 src/filemanager/listmode.c i = listbox_run (mylistbox); i 131 src/filemanager/listmode.c if (i >= 0) i 132 src/filemanager/listmode.c ret = g_strdup (possible_items[i]); i 182 src/filemanager/listmode.c int i; i 211 src/filemanager/listmode.c for (i = 0; i < sizeof (listmode_but) / sizeof (struct listmode_button); i++) i 213 src/filemanager/listmode.c button_new (listmode_but[i].y, listmode_but[i].x, i 214 src/filemanager/listmode.c listmode_but[i].ret_cmd, i 215 src/filemanager/listmode.c listmode_but[i].flags, i 216 src/filemanager/listmode.c listmode_but[i].text, listmode_but[i].callback)); i 219 src/filemanager/listmode.c for (i = 0; i < sizeof (listmode_labels) / sizeof (struct listmode_label); i++) i 221 src/filemanager/listmode.c pname = label_new (listmode_labels[i].y, listmode_labels[i].x, listmode_labels[i].text); i 291 src/filemanager/listmode.c int i; i 303 src/filemanager/listmode.c for (i = 0;; i++) i 305 src/filemanager/listmode.c listbox_set_current (l_listmode, i); i 591 src/filemanager/mountlist.c size_t i, j = 0; i 596 src/filemanager/mountlist.c for (i = 0; i < len; i++) i 598 src/filemanager/mountlist.c if (str[i] == '\\' && (i + 4 < len) i 599 src/filemanager/mountlist.c && str[i + 1] >= '0' && str[i + 1] <= '3' i 600 src/filemanager/mountlist.c && str[i + 2] >= '0' && str[i + 2] <= '7' && str[i + 3] >= '0' && str[i + 3] <= '7') i 602 src/filemanager/mountlist.c str[j++] = (str[i + 1] - '0') * 64 + (str[i + 2] - '0') * 8 + (str[i + 3] - '0'); i 603 src/filemanager/mountlist.c i += 3; i 606 src/filemanager/mountlist.c str[j++] = str[i]; i 1119 src/filemanager/mountlist.c int i; i 1138 src/filemanager/mountlist.c for (i = 0, thisent = entries; i < n_entries; i++, thisent += vmp->vmt_length) i 1245 src/filemanager/mountlist.c int i, fd; i 1272 src/filemanager/mountlist.c i = disk_get_entry (fd, &de); i 1276 src/filemanager/mountlist.c if (i == -1) i 1505 src/filemanager/mountlist.c size_t i; i 1508 src/filemanager/mountlist.c i = strlen (me->me_mountdir); i 1509 src/filemanager/mountlist.c if (i > len && (strncmp (path, me->me_mountdir, i) == 0) && i 1510 src/filemanager/mountlist.c (entry == NULL || IS_PATH_SEP (path[i]) || path[i] == '\0')) i 1512 src/filemanager/mountlist.c len = i; i 454 src/filemanager/panel.c int i, r, l; i 471 src/filemanager/panel.c for (i = 0; i < width; i++) i 473 src/filemanager/panel.c if (i >= l && i < r) i 485 src/filemanager/panel.c tty_print_char (dest[i]); i 871 src/filemanager/panel.c int i; i 876 src/filemanager/panel.c i = MAX (0, str_len - len); i 877 src/filemanager/panel.c panel->max_shift = MAX (panel->max_shift, i); i 878 src/filemanager/panel.c i = MIN (panel->content_shift, i); i 880 src/filemanager/panel.c if (i > -1) i 882 src/filemanager/panel.c name_offset = str_offset_to_pos (txt, i); i 1100 src/filemanager/panel.c int i; i 1107 src/filemanager/panel.c for (i = 0; i < items; i++) i 1113 src/filemanager/panel.c n = i + panel->top; i 1424 src/filemanager/panel.c int i; i 1438 src/filemanager/panel.c i = panel->current - items + 1; i 1439 src/filemanager/panel.c if (panel->top < i) i 1440 src/filemanager/panel.c panel->top = i; i 1442 src/filemanager/panel.c i = panel->dir.len - items; i 1443 src/filemanager/panel.c if (panel->top > i) i 1444 src/filemanager/panel.c panel->top = i; i 1533 src/filemanager/panel.c size_t i; i 1561 src/filemanager/panel.c for (i = 0; i < LIST_FORMATS; i++) i 1562 src/filemanager/panel.c g_free (p->user_status_format[i]); i 1624 src/filemanager/panel.c int i; i 1634 src/filemanager/panel.c for (i = 0; i < panel->list_cols; i++) i 1670 src/filemanager/panel.c if (i < panel->list_cols - 1) i 1755 src/filemanager/panel.c size_t i; i 1765 src/filemanager/panel.c for (i = 0; panel_fields[i].id != NULL; i++) i 1766 src/filemanager/panel.c if (strcmp ("time", panel_fields[i].id + 1) == 0) i 1767 src/filemanager/panel.c panel_fields[i].min_size = i18n_timelength; i 1809 src/filemanager/panel.c for (i = 0; !found && panel_fields[i].id != NULL; i++) i 1811 src/filemanager/panel.c klen = strlen (panel_fields[i].id); i 1812 src/filemanager/panel.c found = strncmp (format, panel_fields[i].id, klen) == 0; i 1817 src/filemanager/panel.c i--; i 1820 src/filemanager/panel.c darr->requested_field_len = panel_fields[i].min_size; i 1821 src/filemanager/panel.c darr->string_fn = panel_fields[i].string_fn; i 1822 src/filemanager/panel.c darr->title = g_strdup (panel_get_title_without_hotkey (panel_fields[i].title_hotkey)); i 1823 src/filemanager/panel.c darr->id = panel_fields[i].id; i 1824 src/filemanager/panel.c darr->expand = panel_fields[i].expands; i 1825 src/filemanager/panel.c darr->just_mode = panel_fields[i].default_just; i 1955 src/filemanager/panel.c int i; i 1960 src/filemanager/panel.c for (i = 0, darr = home; darr != NULL && i < expand_top; darr = g_slist_next (darr)) i 1967 src/filemanager/panel.c if (i == 0) i 1969 src/filemanager/panel.c i++; i 2122 src/filemanager/panel.c int i; i 2142 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 2144 src/filemanager/panel.c fe = &panel->dir.list[i]; i 2152 src/filemanager/panel.c do_file_mark (panel, i, do_select ? 1 : 0); i 2162 src/filemanager/panel.c panel_set_current (WPanel *panel, int i) i 2164 src/filemanager/panel.c if (i != panel->current) i 2167 src/filemanager/panel.c panel->current = i; i 2735 src/filemanager/panel.c int i; i 2744 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 2746 src/filemanager/panel.c if (DIR_IS_DOTDOT (panel->dir.list[i].fname->str)) i 2748 src/filemanager/panel.c if (S_ISDIR (panel->dir.list[i].st.st_mode) && files_only) i 2752 src/filemanager/panel.c (search, panel->dir.list[i].fname->str, 0, panel->dir.list[i].fname->len, NULL)) i 2753 src/filemanager/panel.c do_file_mark (panel, i, do_select ? 1 : 0); i 2782 src/filemanager/panel.c int i; i 2784 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 2786 src/filemanager/panel.c file_entry_t *file = &panel->dir.list[i]; i 2789 src/filemanager/panel.c do_file_mark (panel, i, file->f.marked ? 0 : 1); i 2825 src/filemanager/panel.c int i; i 2888 src/filemanager/panel.c for (i = panel->current; !wrapped || i != panel->current; i++) i 2890 src/filemanager/panel.c if (i >= panel->dir.len) i 2892 src/filemanager/panel.c i = 0; i 2898 src/filemanager/panel.c (search, panel->dir.list[i].fname->str, 0, panel->dir.list[i].fname->len, NULL)) i 2900 src/filemanager/panel.c curr = i; i 3144 src/filemanager/panel.c int i; i 3158 src/filemanager/panel.c i = readlink (fe->fname->str, buffer, MC_MAXPATHLEN - 1); i 3159 src/filemanager/panel.c if (i < 0) i 3168 src/filemanager/panel.c buffer[i] = '\0'; i 3244 src/filemanager/panel.c gsize lc_index, i; i 3254 src/filemanager/panel.c for (i = lc_index - 1; i 3255 src/filemanager/panel.c i != 0 && (pfield = panel_get_sortable_field_by_format (panel, i - 1)) == NULL; i--) i 3262 src/filemanager/panel.c for (i = g_slist_length (panel->format); i 3263 src/filemanager/panel.c i != 0 && (pfield = panel_get_sortable_field_by_format (panel, i - 1)) == NULL; i--) i 3279 src/filemanager/panel.c gsize lc_index, i; i 3291 src/filemanager/panel.c for (i = lc_index; i 3292 src/filemanager/panel.c i != format_field_count i 3293 src/filemanager/panel.c && (pfield = panel_get_sortable_field_by_format (panel, i)) == NULL; i++) i 3300 src/filemanager/panel.c for (i = 0; i 3301 src/filemanager/panel.c i != format_field_count i 3302 src/filemanager/panel.c && (pfield = panel_get_sortable_field_by_format (panel, i)) == NULL; i++) i 3605 src/filemanager/panel.c size_t i; i 3609 src/filemanager/panel.c for (i = 0; i <= pos; i++) i 4008 src/filemanager/panel.c int i = 0; i 4017 src/filemanager/panel.c i += fi->field_len; i 4018 src/filemanager/panel.c if (x < i + 1) i 4029 src/filemanager/panel.c for (i = 0; panel_fields[i].id != NULL; i++) i 4033 src/filemanager/panel.c title = panel_get_title_without_hotkey (panel_fields[i].title_hotkey); i 4034 src/filemanager/panel.c if (panel_fields[i].sort_routine != NULL && strcmp (title, lc_sort_name) == 0) i 4036 src/filemanager/panel.c col_sort_format = &panel_fields[i]; i 4214 src/filemanager/panel.c int i, j; i 4220 src/filemanager/panel.c for (i = 0, j = 0; i < list->len; i++) i 4224 src/filemanager/panel.c vpath = vfs_path_from_str (list->list[i].fname->str); i 4225 src/filemanager/panel.c if (mc_lstat (vpath, &list->list[i].st) != 0) i 4226 src/filemanager/panel.c g_string_free (list->list[i].fname, TRUE); i 4229 src/filemanager/panel.c if (j != i) i 4230 src/filemanager/panel.c list->list[j] = list->list[i]; i 4341 src/filemanager/panel.c int i; i 4345 src/filemanager/panel.c for (i = 0; i < current_panel->dir.len; i++) i 4347 src/filemanager/panel.c const file_entry_t *fe = ¤t_panel->dir.list[i]; i 4458 src/filemanager/panel.c int i; i 4483 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 4484 src/filemanager/panel.c if (strcmp (subdir, panel->dir.list[i].fname->str) == 0) i 4486 src/filemanager/panel.c panel_set_current (panel, i); i 4570 src/filemanager/panel.c int i, err; i 4594 src/filemanager/panel.c for (i = 0; i < LIST_FORMATS; i++) i 4595 src/filemanager/panel.c panel->user_status_format[i] = g_strdup (DEFAULT_USER_FORMAT); i 4855 src/filemanager/panel.c int i; i 4857 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 4858 src/filemanager/panel.c file_mark (panel, i, 0); i 4873 src/filemanager/panel.c int i; i 4879 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 4880 src/filemanager/panel.c if (panel->dir.list[i].f.marked != 0) i 4885 src/filemanager/panel.c panel->dir.list[i].f.marked = 0; i 4886 src/filemanager/panel.c do_file_mark (panel, i, 1); i 5012 src/filemanager/panel.c int i; i 5026 src/filemanager/panel.c for (i = panel->dir.len; i != 0; i--) i 5027 src/filemanager/panel.c if (strcmp (panel->dir.list[i - 1].fname->str, filename) == 0) i 5029 src/filemanager/panel.c panel->current = i - 1; i 5229 src/filemanager/panel.c gsize lc_index, i; i 5242 src/filemanager/panel.c for (i = 0; panel_fields[i].id != NULL; i++) i 5243 src/filemanager/panel.c if (panel_fields[i].is_user_choice) i 5244 src/filemanager/panel.c ret[lc_index++] = g_strdup (_(panel_fields[i].title_hotkey)); i 5317 src/filemanager/panel.c gsize lc_index, i; i 5330 src/filemanager/panel.c for (i = 0; panel_fields[i].id != NULL; i++) i 5331 src/filemanager/panel.c if (panel_fields[i].use_in_user_format) i 5332 src/filemanager/panel.c ret[lc_index++] = g_strdup (_(panel_fields[i].title_hotkey)); i 5343 src/filemanager/panel.c int i; i 5375 src/filemanager/panel.c for (i = 0; i < plist->len; i++) i 5377 src/filemanager/panel.c if (panelized_same || DIR_IS_DOTDOT (plist->list[i].fname->str)) i 5378 src/filemanager/panel.c list->list[i].fname = mc_g_string_dup (plist->list[i].fname); i 5384 src/filemanager/panel.c vfs_path_append_new (pdescr->root_vpath, plist->list[i].fname->str, (char *) NULL); i 5385 src/filemanager/panel.c list->list[i].fname = g_string_new_take (vfs_path_free (tmp_vpath, FALSE)); i 5387 src/filemanager/panel.c list->list[i].f.link_to_dir = plist->list[i].f.link_to_dir; i 5388 src/filemanager/panel.c list->list[i].f.stale_link = plist->list[i].f.stale_link; i 5389 src/filemanager/panel.c list->list[i].f.dir_size_computed = plist->list[i].f.dir_size_computed; i 5390 src/filemanager/panel.c list->list[i].f.marked = plist->list[i].f.marked; i 5391 src/filemanager/panel.c list->list[i].st = plist->list[i].st; i 5392 src/filemanager/panel.c list->list[i].name_sort_key = plist->list[i].name_sort_key; i 5393 src/filemanager/panel.c list->list[i].extension_sort_key = plist->list[i].extension_sort_key; i 5463 src/filemanager/panel.c int i; i 5480 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) i 5482 src/filemanager/panel.c plist->list[i].fname = mc_g_string_dup (list->list[i].fname); i 5483 src/filemanager/panel.c plist->list[i].f.link_to_dir = list->list[i].f.link_to_dir; i 5484 src/filemanager/panel.c plist->list[i].f.stale_link = list->list[i].f.stale_link; i 5485 src/filemanager/panel.c plist->list[i].f.dir_size_computed = list->list[i].f.dir_size_computed; i 5486 src/filemanager/panel.c plist->list[i].f.marked = list->list[i].f.marked; i 5487 src/filemanager/panel.c plist->list[i].st = list->list[i].st; i 5488 src/filemanager/panel.c plist->list[i].name_sort_key = list->list[i].name_sort_key; i 5489 src/filemanager/panel.c plist->list[i].extension_sort_key = list->list[i].extension_sort_key; i 177 src/filemanager/panelize.c size_t i; i 186 src/filemanager/panelize.c i = G_N_ELEMENTS (panelize_but); i 187 src/filemanager/panelize.c blen = i - 1; /* gaps between buttons */ i 188 src/filemanager/panelize.c while (i-- != 0) i 191 src/filemanager/panelize.c panelize_but[i].text = _(panelize_but[i].text); i 193 src/filemanager/panelize.c blen += str_term_width1 (panelize_but[i].text) + 3 + 1; i 194 src/filemanager/panelize.c if (panelize_but[i].flags == DEFPUSH_BUTTON) i 227 src/filemanager/panelize.c for (i = 0; i < G_N_ELEMENTS (panelize_but); i++) i 232 src/filemanager/panelize.c panelize_but[i].ret_cmd, panelize_but[i].flags, panelize_but[i].text, NULL); i 120 src/filemanager/tree.c int i; i 122 src/filemanager/tree.c for (i = 0; ptr != NULL && ptr->prev != NULL && i < *count; ptr = ptr->prev, i++) i 125 src/filemanager/tree.c *count = i; i 134 src/filemanager/tree.c int i; i 136 src/filemanager/tree.c for (i = 0; ptr != NULL && ptr->next != NULL && i < *count; ptr = ptr->next, i++) i 139 src/filemanager/tree.c *count = i; i 269 src/filemanager/tree.c int i, j; i 303 src/filemanager/tree.c i = 0; i 305 src/filemanager/tree.c while (current->prev != NULL && i < tree->topdiff) i 312 src/filemanager/tree.c i++; i 322 src/filemanager/tree.c i++; i 328 src/filemanager/tree.c i++; i 331 src/filemanager/tree.c tree->topdiff = i; i 335 src/filemanager/tree.c for (i = 0; i < tree_lines; i++) i 343 src/filemanager/tree.c tty_draw_hline (w->rect.y + y + i, w->rect.x + x, ' ', tree_cols); i 362 src/filemanager/tree.c tree->tree_shown[i] = current; i 448 src/filemanager/tree.c tree_move_backward (WTree *tree, int i) i 451 src/filemanager/tree.c tree->selected_ptr = back_ptr (tree->selected_ptr, &i); i 458 src/filemanager/tree.c while (j < i && current->prev != NULL i 468 src/filemanager/tree.c i = j; i 471 src/filemanager/tree.c tree->topdiff -= i; i 478 src/filemanager/tree.c tree_move_forward (WTree *tree, int i) i 481 src/filemanager/tree.c tree->selected_ptr = forw_ptr (tree->selected_ptr, &i); i 488 src/filemanager/tree.c while (j < i && current->next != NULL i 498 src/filemanager/tree.c i = j; i 501 src/filemanager/tree.c tree->topdiff += i; i 938 src/filemanager/tree.c gboolean i; i 945 src/filemanager/tree.c i = tree_navigation_flag; i 948 src/filemanager/tree.c tree_navigation_flag = i; i 346 src/filemanager/treestore.c int i, common; i 355 src/filemanager/treestore.c i = fprintf (file, "%d:%d %s\n", current->scanned ? 1 : 0, common, encoded); i 363 src/filemanager/treestore.c i = fprintf (file, "%d:%s\n", current->scanned ? 1 : 0, encoded); i 367 src/filemanager/treestore.c if (i == EOF) i 256 src/help.c move_forward (int i) i 259 src/help.c currentpoint = move_forward2 (currentpoint, i); i 265 src/help.c move_backward (int i) i 267 src/help.c currentpoint = move_backward2 (currentpoint, ++i); i 309 src/help.c int i; i 313 src/help.c for (i = 1; i 314 src/help.c *p != CHAR_LINK_END && *p != '\0' && *p != CHAR_NODE_END && i < MAXLINKNAME - 3;) i 315 src/help.c link_name[i++] = *++p; i 316 src/help.c link_name[i - 1] = ']'; i 317 src/help.c link_name[i] = '\0'; i 631 src/keymap.c size_t i; i 633 src/keymap.c for (i = 0; k[i].key != NULL; i++) i 634 src/keymap.c mc_config_set_string_raw (keymap, section, k[i].key, k[i].value); i 139 src/learn.c int i, totalcols; i 142 src/learn.c for (i = 0; i < learn_total; i++) i 143 src/learn.c if (learnkeys[i].button == WIDGET (GROUP (learn_dlg)->current->data)) i 147 src/learn.c if (i < learn_total - ROWS) i 148 src/learn.c i += ROWS; i 150 src/learn.c i %= ROWS; i 154 src/learn.c if (i / ROWS != 0) i 155 src/learn.c i -= ROWS; i 156 src/learn.c else if (i + (totalcols - 1) * ROWS >= learn_total) i 157 src/learn.c i += (totalcols - 2) * ROWS; i 159 src/learn.c i += (totalcols - 1) * ROWS; i 161 src/learn.c widget_select (learnkeys[i].button); i 173 src/learn.c int i; i 175 src/learn.c for (i = 0; i < learn_total; i++) i 177 src/learn.c if (key_name_conv_tab[i].code != c || learnkeys[i].ok) i 180 src/learn.c widget_select (learnkeys[i].button); i 182 src/learn.c label_set_text (LABEL (learnkeys[i].label), _("OK")); i 183 src/learn.c learnkeys[i].ok = TRUE; i 263 src/learn.c int x, y, i; i 299 src/learn.c for (i = 0; i < learn_total; i++) i 305 src/learn.c learnkeys[i].ok = FALSE; i 306 src/learn.c learnkeys[i].sequence = NULL; i 308 src/learn.c label = _(key_name_conv_tab[i].longname); i 313 src/learn.c learnkeys[i].button = i 314 src/learn.c WIDGET (button_new (y, x, B_USER + i, NARROW_BUTTON, buffer, learn_button)); i 315 src/learn.c learnkeys[i].label = WIDGET (label_new (y, x + 19, NULL)); i 316 src/learn.c group_add_widget (g, learnkeys[i].button); i 317 src/learn.c group_add_widget (g, learnkeys[i].label); i 357 src/learn.c int i; i 363 src/learn.c for (i = 0; i < learn_total; i++) i 364 src/learn.c if (learnkeys[i].sequence != NULL) i 368 src/learn.c esc_str = str_escape (learnkeys[i].sequence, -1, ";\\", TRUE); i 370 src/learn.c key_name_conv_tab[i].name, esc_str); i 532 src/main.c guint i; i 534 src/main.c for (i = 0; i < macros_list->len; i++) i 538 src/main.c macros = &g_array_index (macros_list, struct macros_t, i); i 81 src/selcodepage.c size_t i; i 94 src/selcodepage.c for (i = 0; i < codepages->len; i++) i 98 src/selcodepage.c name = ((codepage_desc *) g_ptr_array_index (codepages, i))->name; i 99 src/selcodepage.c g_snprintf (buffer, sizeof (buffer), "%c %s", get_hotkey (i), name); i 100 src/selcodepage.c LISTBOX_APPEND_TEXT (listbox, get_hotkey (i), buffer, NULL, FALSE); i 113 src/selcodepage.c i = seldisplay i 117 src/selcodepage.c listbox_set_current (listbox->list, i); i 513 src/setup.c size_t i; i 517 src/setup.c for (i = 0; bool_options[i].opt_name != NULL; i++) i 518 src/setup.c *bool_options[i].opt_addr = i 519 src/setup.c mc_config_get_bool (mc_global.main_config, CONFIG_APP_SECTION, bool_options[i].opt_name, i 520 src/setup.c *bool_options[i].opt_addr); i 523 src/setup.c for (i = 0; int_options[i].opt_name != NULL; i++) i 524 src/setup.c *int_options[i].opt_addr = i 525 src/setup.c mc_config_get_int (mc_global.main_config, CONFIG_APP_SECTION, int_options[i].opt_name, i 526 src/setup.c *int_options[i].opt_addr); i 529 src/setup.c for (i = 0; str_options[i].opt_name != NULL; i++) i 530 src/setup.c *str_options[i].opt_addr = i 532 src/setup.c str_options[i].opt_name, str_options[i].opt_defval); i 557 src/setup.c size_t i; i 563 src/setup.c for (i = 0; panel_types[i].opt_name != NULL; i++) i 564 src/setup.c if (g_ascii_strcasecmp (panel_types[i].opt_name, buffer) == 0) i 566 src/setup.c mode = panel_types[i].opt_type; i 580 src/setup.c size_t i; i 583 src/setup.c for (i = 0; layout_int_options[i].opt_name != NULL; i++) i 584 src/setup.c *layout_int_options[i].opt_addr = i 586 src/setup.c layout_int_options[i].opt_name, *layout_int_options[i].opt_addr); i 588 src/setup.c for (i = 0; layout_bool_options[i].opt_name != NULL; i++) i 589 src/setup.c *layout_bool_options[i].opt_addr = i 591 src/setup.c layout_bool_options[i].opt_name, *layout_bool_options[i].opt_addr); i 669 src/setup.c size_t i; i 671 src/setup.c for (i = 0; panel_types[i].opt_name != NULL; i++) i 672 src/setup.c if (panel_types[i].opt_type == type) i 675 src/setup.c panel_types[i].opt_name); i 690 src/setup.c size_t i; i 693 src/setup.c for (i = 0; panels_ini_options[i].opt_name != NULL; i++) i 694 src/setup.c *panels_ini_options[i].opt_addr = i 696 src/setup.c panels_ini_options[i].opt_name, i 697 src/setup.c *panels_ini_options[i].opt_addr); i 722 src/setup.c size_t i; i 724 src/setup.c for (i = 0; panels_ini_options[i].opt_name != NULL; i++) i 726 src/setup.c panels_ini_options[i].opt_name, *panels_ini_options[i].opt_addr); i 739 src/setup.c size_t i; i 742 src/setup.c for (i = 0; bool_options[i].opt_name != NULL; i++) i 743 src/setup.c mc_config_set_bool (mc_global.main_config, CONFIG_APP_SECTION, bool_options[i].opt_name, i 744 src/setup.c *bool_options[i].opt_addr); i 747 src/setup.c for (i = 0; int_options[i].opt_name != NULL; i++) i 748 src/setup.c mc_config_set_int (mc_global.main_config, CONFIG_APP_SECTION, int_options[i].opt_name, i 749 src/setup.c *int_options[i].opt_addr); i 752 src/setup.c for (i = 0; str_options[i].opt_name != NULL; i++) i 753 src/setup.c mc_config_set_string (mc_global.main_config, CONFIG_APP_SECTION, str_options[i].opt_name, i 754 src/setup.c *str_options[i].opt_addr); i 762 src/setup.c size_t i; i 765 src/setup.c for (i = 0; layout_int_options[i].opt_name != NULL; i++) i 767 src/setup.c layout_int_options[i].opt_name, *layout_int_options[i].opt_addr); i 770 src/setup.c for (i = 0; layout_bool_options[i].opt_name != NULL; i++) i 772 src/setup.c layout_bool_options[i].opt_name, *layout_bool_options[i].opt_addr); i 1038 src/setup.c size_t i; i 1054 src/setup.c for (i = 0; str_options[i].opt_name != NULL; i++) i 1055 src/setup.c g_free (*str_options[i].opt_addr); i 1132 src/setup.c size_t i; i 1159 src/setup.c for (i = 0; list_formats[i].key != NULL; i++) i 1160 src/setup.c if (g_ascii_strcasecmp (list_formats[i].key, buffer) == 0) i 1162 src/setup.c panel->list_format = list_formats[i].list_format; i 1174 src/setup.c for (i = 0; i < LIST_FORMATS; i++) i 1178 src/setup.c g_free (panel->user_status_format[i]); i 1179 src/setup.c g_snprintf (buffer2, sizeof (buffer2), "user_status%lld", (long long) i); i 1180 src/setup.c panel->user_status_format[i] = i 1200 src/setup.c size_t i; i 1210 src/setup.c for (i = 0; list_formats[i].key != NULL; i++) i 1211 src/setup.c if (list_formats[i].list_format == (int) panel->list_format) i 1214 src/setup.c list_formats[i].key); i 1222 src/setup.c for (i = 0; i < LIST_FORMATS; i++) i 1224 src/setup.c g_snprintf (buffer, sizeof (buffer), "user_status%lld", (long long) i); i 1226 src/setup.c panel->user_status_format[i]); i 530 src/subshell/common.c int i; i 646 src/subshell/common.c for (i = 0; i < command_buffer_char_length; i++) i 647 src/subshell/common.c if ((unsigned char) subshell_command_buffer[i] < 32 i 648 src/subshell/common.c || (unsigned char) subshell_command_buffer[i] == 127) i 649 src/subshell/common.c subshell_command_buffer[i] = ' '; i 712 src/subshell/common.c int i; i 724 src/subshell/common.c for (i = 0; i < bytes; i++) i 725 src/subshell/common.c if (buffer[i] == '\n' || buffer[i] == '\r') i 727 src/subshell/common.c else if (buffer[i] != '\0') i 728 src/subshell/common.c g_string_append_c (subshell_prompt_temp_buffer, buffer[i]); i 753 src/subshell/common.c int i; /* Loop counter */ i 873 src/subshell/common.c for (i = 0; i < bytes; ++i) i 874 src/subshell/common.c if (pty_buffer[i] == subshell_switch_key || i 875 src/subshell/common.c (subshell_switch_key_csi_u_len <= (size_t) bytes - i && i 876 src/subshell/common.c memcmp (&pty_buffer[i], subshell_switch_key_csi_u, i 879 src/subshell/common.c write_all (mc_global.tty.subshell_pty, pty_buffer, i); i 1483 src/subshell/common.c size_t i; i 1490 src/subshell/common.c for (i = 0; i < cmdline->buffer->len; i++) i 1491 src/subshell/common.c if ((unsigned char) s[i] < 32 || (unsigned char) s[i] == 127) i 1492 src/subshell/common.c g_string_overwrite_len (cmdline->buffer, i, " ", 1); i 1499 src/subshell/common.c for (i = 0; i < (size_t) pos; i++) i 143 src/textconf.c size_t i; i 173 src/textconf.c for (i = 0; features[i] != NULL; i++) i 174 src/textconf.c puts (_(features[i])); i 178 src/textconf.c for (i = 0; vfs_supported[i] != NULL; i++) i 179 src/textconf.c printf ("%s %s", i == 0 ? "" : ",", _(vfs_supported[i])); i 561 src/usermenu.c int i; i 563 src/usermenu.c i = check_format_view (commands + 1); i 564 src/usermenu.c if (i != 0) i 566 src/usermenu.c commands += i; i 942 src/usermenu.c int i; i 950 src/usermenu.c for (i = 0; i < panel->dir.len; i++) i 951 src/usermenu.c if (panel->dir.list[i].f.marked != 0) i 955 src/usermenu.c tmp = quote_func (panel->dir.list[i].fname->str, FALSE); i 969 src/usermenu.c do_file_mark (panel, i, 0); i 1144 src/usermenu.c unsigned int i; i 1152 src/usermenu.c for (i = 0; i < entries->len; i++) i 1154 src/usermenu.c p = g_ptr_array_index (entries, i); i 415 src/vfs/cpio/cpio.c defer_inode i = { st->st_ino, st->st_dev, NULL }; i 418 src/vfs/cpio/cpio.c l = g_slist_find_custom (arch->deferred, &i, cpio_defer_find); i 493 src/vfs/cpio/cpio.c defer_inode *i; i 495 src/vfs/cpio/cpio.c i = g_new (defer_inode, 1); i 496 src/vfs/cpio/cpio.c i->inumber = st->st_ino; i 497 src/vfs/cpio/cpio.c i->device = st->st_dev; i 498 src/vfs/cpio/cpio.c i->inode = inode; i 500 src/vfs/cpio/cpio.c arch->deferred = g_slist_prepend (arch->deferred, i); i 562 src/vfs/cpio/cpio.c int i; i 564 src/vfs/cpio/cpio.c for (i = 0; i < (HEAD_LENGTH >> 1); i++) i 565 src/vfs/cpio/cpio.c u.shorts[i] = GUINT16_SWAP_LE_BE_CONSTANT (u.shorts[i]); i 705 src/vfs/extfs/extfs.c size_t i; i 711 src/vfs/extfs/extfs.c for (i = 0; i < extfs_plugins->len; i++) i 715 src/vfs/extfs/extfs.c info = &g_array_index (extfs_plugins, extfs_plugin_info_t, i); i 719 src/vfs/extfs/extfs.c return i; i 1616 src/vfs/extfs/extfs.c size_t len, i; i 1635 src/vfs/extfs/extfs.c for (i = 0; i < extfs_plugins->len && !found; i++) i 1639 src/vfs/extfs/extfs.c p = &g_array_index (extfs_plugins, extfs_plugin_info_t, i); i 1690 src/vfs/extfs/extfs.c size_t i; i 1698 src/vfs/extfs/extfs.c for (i = 0; i < extfs_plugins->len; i++) i 1702 src/vfs/extfs/extfs.c info = &g_array_index (extfs_plugins, extfs_plugin_info_t, i); i 416 src/vfs/ftpfs/ftpfs.c int i; i 426 src/vfs/ftpfs/ftpfs.c if ((sscanf (answer, "%d", &i) > 0) && (code == i) && (answer[3] == ' ')) i 1300 src/vfs/ftpfs/ftpfs.c unsigned int i; i 1304 src/vfs/ftpfs/ftpfs.c for (i = 0; i < attempts; i++) i 1319 src/vfs/ftpfs/ftpfs.c vfs_print_message (_("ftpfs: try reconnect to server, attempt %u"), i); i 1338 src/vfs/ftpfs/ftpfs.c vfs_print_message (_("ftpfs: try reconnect to server, attempt %u"), i); i 1346 src/vfs/ftpfs/ftpfs.c i = attempts; i 1349 src/vfs/ftpfs/ftpfs.c if (i >= attempts) i 2445 src/vfs/ftpfs/ftpfs.c keyword_t i; i 2484 src/vfs/ftpfs/ftpfs.c for (i = NETRC_DEFAULT; keywords[i - 1] != NULL; i++) i 2485 src/vfs/ftpfs/ftpfs.c if (strcmp (keywords[i - 1], buffer) == 0) i 2486 src/vfs/ftpfs/ftpfs.c return i; i 1112 src/vfs/ftpfs/ftpfs_parse_ls.c size_t i; i 1146 src/vfs/ftpfs/ftpfs_parse_ls.c for (i = 0; i < number_of_parsers; i++) i 1158 src/vfs/ftpfs/ftpfs_parse_ls.c ok = (*line_parsers[i]) (tmp_line, &info->ino->st, &info->name, i 1159 src/vfs/ftpfs/ftpfs_parse_ls.c &info->ino->linkname, &err[i]); i 1163 src/vfs/ftpfs/ftpfs_parse_ls.c set[i] = g_slist_prepend (set[i], info); i 1170 src/vfs/ftpfs/ftpfs_parse_ls.c if (*best_err1 > err[i]) i 1171 src/vfs/ftpfs/ftpfs_parse_ls.c best_err1 = &err[i]; i 1172 src/vfs/ftpfs/ftpfs_parse_ls.c if (*best_err2 > err[i] && best_err1 != &err[i]) i 1173 src/vfs/ftpfs/ftpfs_parse_ls.c best_err2 = &err[i]; i 1181 src/vfs/ftpfs/ftpfs_parse_ls.c i = (size_t) (best_err1 - err); i 1182 src/vfs/ftpfs/ftpfs_parse_ls.c guessed_parser = line_parsers[i]; i 1183 src/vfs/ftpfs/ftpfs_parse_ls.c the_set = &set[i]; i 1184 src/vfs/ftpfs/ftpfs_parse_ls.c the_err = &err[i]; i 1215 src/vfs/ftpfs/ftpfs_parse_ls.c i = best_err1 - err; i 1216 src/vfs/ftpfs/ftpfs_parse_ls.c the_set = &set[i]; i 1217 src/vfs/ftpfs/ftpfs_parse_ls.c the_err = &err[i]; i 1221 src/vfs/ftpfs/ftpfs_parse_ls.c for (i = 0; i < number_of_parsers; i++) i 1222 src/vfs/ftpfs/ftpfs_parse_ls.c if (&set[i] != the_set) i 1224 src/vfs/ftpfs/ftpfs_parse_ls.c for (bufp = set[i]; bufp != NULL; bufp = g_slist_next (bufp)) i 1227 src/vfs/ftpfs/ftpfs_parse_ls.c g_slist_free (set[i]); i 135 src/vfs/local/local.c int i; i 137 src/vfs/local/local.c i = closedir (*(DIR **) data); i 139 src/vfs/local/local.c return i; i 530 src/vfs/sfs/sfs.c int i; i 534 src/vfs/sfs/sfs.c for (i = 0; i < sfs_no; i++) i 536 src/vfs/sfs/sfs.c MC_PTR_FREE (sfs_info[i].prefix); i 537 src/vfs/sfs/sfs.c MC_PTR_FREE (sfs_info[i].command); i 547 src/vfs/sfs/sfs.c int i; i 551 src/vfs/sfs/sfs.c for (i = 0; i < sfs_no; i++) i 552 src/vfs/sfs/sfs.c if ((sfs_info[i].flags & F_FULLMATCH) != 0) i 554 src/vfs/sfs/sfs.c if (strcmp (path, sfs_info[i].prefix) == 0) i 555 src/vfs/sfs/sfs.c return i; i 557 src/vfs/sfs/sfs.c else if (strncmp (path, sfs_info[i].prefix, strlen (sfs_info[i].prefix)) == 0) i 558 src/vfs/sfs/sfs.c return i; i 154 src/vfs/sftpfs/config_parser.c ((type) ((char *) config_entity + (size_t) config_variables[i].offset)) i 166 src/vfs/sftpfs/config_parser.c int i; i 168 src/vfs/sftpfs/config_parser.c for (i = 0; config_variables[i].pattern != NULL; i++) i 170 src/vfs/sftpfs/config_parser.c if (mc_search_run (config_variables[i].pattern_regexp, buffer, 0, strlen (buffer), NULL)) i 180 src/vfs/sftpfs/config_parser.c value_offset = mc_search_getstart_result_by_num (config_variables[i].pattern_regexp, 1); i 183 src/vfs/sftpfs/config_parser.c switch (config_variables[i].type) i 418 src/vfs/sftpfs/config_parser.c int i; i 420 src/vfs/sftpfs/config_parser.c for (i = 0; config_variables[i].pattern != NULL; i++) i 422 src/vfs/sftpfs/config_parser.c config_variables[i].pattern_regexp = i 423 src/vfs/sftpfs/config_parser.c mc_search_new (config_variables[i].pattern, DEFAULT_CHARSET); i 424 src/vfs/sftpfs/config_parser.c config_variables[i].pattern_regexp->search_type = MC_SEARCH_T_REGEX; i 425 src/vfs/sftpfs/config_parser.c config_variables[i].pattern_regexp->is_case_sensitive = FALSE; i 437 src/vfs/sftpfs/config_parser.c int i; i 439 src/vfs/sftpfs/config_parser.c for (i = 0; config_variables[i].pattern != NULL; i++) i 441 src/vfs/sftpfs/config_parser.c mc_search_free (config_variables[i].pattern_regexp); i 442 src/vfs/sftpfs/config_parser.c config_variables[i].pattern_regexp = NULL; i 440 src/vfs/sftpfs/connection.c size_t i; i 447 src/vfs/sftpfs/connection.c for (i = 0; i < SHA1_DIGEST_LENGTH && i * 3 < sizeof (result) - 1; i++) i 448 src/vfs/sftpfs/connection.c g_snprintf ((gchar *) (result + i * 3), 4, "%02x:", (guint8) fingerprint[i]); i 451 src/vfs/sftpfs/connection.c result[i * 3 - 1] = '\0'; i 770 src/vfs/sftpfs/connection.c int i; i 786 src/vfs/sftpfs/connection.c for (i = 0; i < num_prompts; ++i) i 787 src/vfs/sftpfs/connection.c if (memcmp (prompts[i].text, "Password: ", prompts[i].length) == 0) i 789 src/vfs/sftpfs/connection.c responses[i].text = strdup (kbi_passwd); i 790 src/vfs/sftpfs/connection.c responses[i].length = len; i 524 src/vfs/shell/shell.c int i = 0; i 526 src/vfs/shell/shell.c argv[i++] = xsh; i 528 src/vfs/shell/shell.c argv[i++] = "-C"; i 532 src/vfs/shell/shell.c argv[i++] = "-p"; i 534 src/vfs/shell/shell.c argv[i++] = gbuf; i 546 src/vfs/shell/shell.c argv[i++] = "-l"; i 547 src/vfs/shell/shell.c argv[i++] = super->path_element->user; i 555 src/vfs/shell/shell.c argv[i++] = super->path_element->host; i 556 src/vfs/shell/shell.c argv[i++] = "echo SHELL:; /bin/sh"; i 557 src/vfs/shell/shell.c argv[i++] = NULL; i 278 src/vfs/tar/tar-internal.c intmax_t i; i 285 src/vfs/tar/tar-internal.c i = *p - '0'; i 289 src/vfs/tar/tar-internal.c v |= ckd_mul (&i, i, 10) ? 1 : 0; i 290 src/vfs/tar/tar-internal.c v |= ckd_add (&i, i, *p - '0') ? 1 : 0; i 293 src/vfs/tar/tar-internal.c v |= maxval < (uintmax_t) i ? 1 : 0; i 295 src/vfs/tar/tar-internal.c i = maxval; i 310 src/vfs/tar/tar-internal.c i = tar_represent_uintmax (u); i 316 src/vfs/tar/tar-internal.c i = -(*p - '0'); i 320 src/vfs/tar/tar-internal.c v |= ckd_mul (&i, i, 10) ? 1 : 0; i 321 src/vfs/tar/tar-internal.c v |= ckd_sub (&i, i, *p - '0') ? 1 : 0; i 324 src/vfs/tar/tar-internal.c v |= i < minval ? 1 : 0; i 326 src/vfs/tar/tar-internal.c i = minval; i 329 src/vfs/tar/tar-internal.c i = 0; i 335 src/vfs/tar/tar-internal.c return i; i 424 src/vfs/tar/tar-sparse.c size_t i; i 432 src/vfs/tar/tar-sparse.c for (i = 0; i < SPARSES_IN_OLDGNU_HEADER; i++) i 434 src/vfs/tar/tar-sparse.c rc = oldgnu_add_sparse (file, &h->oldgnu_header.sp[i]); i 448 src/vfs/tar/tar-sparse.c for (i = 0; i < SPARSES_IN_SPARSE_HEADER && rc == add_ok; i++) i 449 src/vfs/tar/tar-sparse.c rc = oldgnu_add_sparse (file, &h->sparse_header.sp[i]); i 489 src/vfs/tar/tar-sparse.c size_t i; i 500 src/vfs/tar/tar-sparse.c for (i = 0; i < SPARSES_IN_STAR_HEADER; i++) i 502 src/vfs/tar/tar-sparse.c rc = oldgnu_add_sparse (file, &h->star_in_header.sp[i]); i 518 src/vfs/tar/tar-sparse.c for (i = 0; i < SPARSES_IN_STAR_EXT_HEADER && rc == add_ok; i++) i 519 src/vfs/tar/tar-sparse.c rc = oldgnu_add_sparse (file, &h->star_ext_header.sp[i]); i 548 src/vfs/tar/tar-sparse.c size_t i; i 574 src/vfs/tar/tar-sparse.c for (i = 0; i < sparse_map_len; i++) i 367 src/vfs/tar/tar-xheader.c intmax_t i; i 369 src/vfs/tar/tar-xheader.c if (!decode_signed_num (&i, arg, 0, maxval, keyword)) i 372 src/vfs/tar/tar-xheader.c *num = i; i 256 src/vfs/tar/tar.c size_t i; i 258 src/vfs/tar/tar.c for (i = 0; i < sm->len; i++) i 262 src/vfs/tar/tar.c sp = &g_array_index (sm, struct sp_array, i); i 330 src/vfs/tar/tar.c unsigned int i; i 335 src/vfs/tar/tar.c for (i = 0; i < sizeof (*header); i++) i 337 src/vfs/tar/tar.c unsigned char uc = header->buffer[i]; i 338 src/vfs/tar/tar.c signed char sc = header->buffer[i]; i 348 src/vfs/tar/tar.c for (i = 0; i < sizeof (header->header.chksum); i++) i 350 src/vfs/tar/tar.c unsigned char uc = header->header.chksum[i]; i 351 src/vfs/tar/tar.c signed char sc = header->header.chksum[i]; i 436 src/vfs/undelfs/undelfs.c ext2_ino_t inode, i; i 459 src/vfs/undelfs/undelfs.c for (i = 0; i < (ext2_ino_t) num_delarray; i++) i 461 src/vfs/undelfs/undelfs.c if (inode != delarray[i].ino) i 482 src/vfs/undelfs/undelfs.c p->f_index = i; i 485 src/vfs/undelfs/undelfs.c p->size = delarray[i].size; i 612 src/vfs/undelfs/undelfs.c int i; i 614 src/vfs/undelfs/undelfs.c for (i = 0; i < num_delarray; i++) i 616 src/vfs/undelfs/undelfs.c if (delarray[i].ino == inode) i 617 src/vfs/undelfs/undelfs.c return i; i 263 src/viewer/actions_cmd.c int i; i 269 src/viewer/actions_cmd.c for (i = 0; i != view->dir->len; i++) i 271 src/viewer/actions_cmd.c const file_entry_t *fe = &view->dir->list[i]; i 277 src/viewer/actions_cmd.c *view->dir_idx = i; i 293 src/viewer/actions_cmd.c int i; i 295 src/viewer/actions_cmd.c for (i = *view->dir_idx + direction; i != *view->dir_idx; i += direction) i 297 src/viewer/actions_cmd.c if (i < 0) i 298 src/viewer/actions_cmd.c i = view->dir->len - 1; i 299 src/viewer/actions_cmd.c if (i == view->dir->len) i 300 src/viewer/actions_cmd.c i = 0; i 301 src/viewer/actions_cmd.c if (!S_ISDIR (view->dir->list[i].st.st_mode)) i 305 src/viewer/actions_cmd.c *view->dir_idx = i; i 637 src/viewer/actions_cmd.c cb_ret_t i; i 661 src/viewer/actions_cmd.c i = mcview_handle_key (view, parm); i 663 src/viewer/actions_cmd.c return i; i 666 src/viewer/actions_cmd.c i = mcview_execute_cmd (view, parm); i 668 src/viewer/actions_cmd.c return i; i 479 src/viewer/ascii.c int i = 1; i 513 src/viewer/ascii.c i = 2; i 525 src/viewer/ascii.c for (; i < clen; i++) i 530 src/viewer/ascii.c if (!mcview_get_next_maybe_nroff_char (view, &state_after_combining, &cs[i], NULL)) i 531 src/viewer/ascii.c return i; i 532 src/viewer/ascii.c if (!mcview_ismark (view, cs[i]) || !mcview_isprint (view, cs[i])) i 533 src/viewer/ascii.c return i; i 534 src/viewer/ascii.c if (g_unichar_type (cs[i]) == G_UNICODE_SPACING_MARK) i 537 src/viewer/ascii.c if (i == 1) i 540 src/viewer/ascii.c i++; i 542 src/viewer/ascii.c return i; i 546 src/viewer/ascii.c return i; i 583 src/viewer/ascii.c int i, j; i 640 src/viewer/ascii.c for (i = 0; i < n; i++) i 641 src/viewer/ascii.c charwidth += mcview_wcwidth (view, cs[i]); i 679 src/viewer/ascii.c for (i = 0; i < charwidth; i++) i 685 src/viewer/ascii.c for (i = 0; i < n; i++) i 686 src/viewer/ascii.c j += mcview_char_display (view, cs[i], str + j); i 701 src/viewer/ascii.c for (i = dpy_text_column; i 702 src/viewer/ascii.c i < (off_t) col + charwidth && i < dpy_text_column + (off_t) r->cols; i++) i 704 src/viewer/ascii.c widget_gotoyx (view, r->y + row, r->x + (i - dpy_text_column)); i 715 src/viewer/ascii.c for (i = col; i < dpy_text_column + (off_t) r->cols; i++) i 717 src/viewer/ascii.c widget_gotoyx (view, r->y + row, r->x + (i - dpy_text_column)); i 979 src/viewer/ascii.c int i; i 1010 src/viewer/ascii.c for (i = 0; i < view->dpy_paragraph_skip_lines; i++) i 68 src/viewer/coord_cache.c #define coord_cache_index(c, i) ((coord_cache_entry_t *) g_ptr_array_index ((c), (i))) i 143 src/viewer/coord_cache.c size_t i; i 145 src/viewer/coord_cache.c i = base + limit / 2; i 146 src/viewer/coord_cache.c if (cmp_func (coord, coord_cache_index (view->coord_cache, i))) i 154 src/viewer/coord_cache.c base = i; i 174 src/viewer/coord_cache.c guint i; i 188 src/viewer/coord_cache.c for (i = 0; i < cache->len; i++) i 192 src/viewer/coord_cache.c e = coord_cache_index (cache, i); i 197 src/viewer/coord_cache.c (unsigned int) i, i 246 src/viewer/coord_cache.c size_t i; i 284 src/viewer/coord_cache.c i = mcview_ccache_find (view, coord, cmp_func); i 287 src/viewer/coord_cache.c current = *coord_cache_index (cache, i); i 288 src/viewer/coord_cache.c if (i + 1 < view->coord_cache->len) i 289 src/viewer/coord_cache.c limit = coord_cache_index (cache, i + 1)->cc_offset; i 375 src/viewer/coord_cache.c if (i + 1 == cache->len && entry.cc_offset != coord_cache_index (cache, i)->cc_offset) i 185 src/viewer/datasource.c int i; i 187 src/viewer/datasource.c for (i = 0; i < UTF8_CHAR_LEN; i++) i 189 src/viewer/datasource.c if (mcview_get_byte (view, byte_index + i, &res)) i 190 src/viewer/datasource.c utf8buf[i] = res; i 193 src/viewer/datasource.c utf8buf[i] = '\0'; i 169 src/viewer/dialogs.c size_t i; i 171 src/viewer/dialogs.c for (i = 0; i < num_of_types; i++) i 172 src/viewer/dialogs.c mc_view_goto_str[i] = _(mc_view_goto_str[i]); i 160 src/viewer/hex.c int i; i 165 src/viewer/hex.c for (i = 0; col < r->cols && hex_buff[i] != '\0'; col++, i++) i 166 src/viewer/hex.c tty_print_char (hex_buff[i]); i 154 src/viewer/lib.c size_t i; i 192 src/viewer/lib.c for (i = 0; i < G_N_ELEMENTS (view->marks); i++) i 193 src/viewer/lib.c view->marks[i] = 0; i 154 src/viewer/move.c off_t i, limit; i 158 src/viewer/move.c for (i = 0; i < lines && view->hex_cursor < limit; i++) i 99 src/viewer/nroff.c off_t i = 0; i 107 src/viewer/nroff.c while (i < length) i 120 src/viewer/nroff.c i += nroff->char_length; i 69 tests/lib/strutil/filevercmp.c size_t i; i 81 tests/lib/strutil/filevercmp.c for (i = 0; i < alen + blen; i++) i 82 tests/lib/strutil/filevercmp.c if (buffer[i] == '\1') i 83 tests/lib/strutil/filevercmp.c buffer[i] = '\0'; i 220 tests/lib/strutil/filevercmp.c const char *i = filevercmp_test_ds2[_i]; i 228 tests/lib/strutil/filevercmp.c result = test_filevercmp (i, j); i 257 tests/lib/strutil/filevercmp.c const char *i = filevercmp_test_ds3[_i]; i 265 tests/lib/strutil/filevercmp.c result = filevercmp (i, j); i 295 tests/lib/strutil/filevercmp.c const char *i = filevercmp_test_ds4[_i]; i 303 tests/lib/strutil/filevercmp.c result = filevercmp (i, j); i 361 tests/lib/strutil/filevercmp.c const char *i = filevercmp_test_ds5[ii]; i 368 tests/lib/strutil/filevercmp.c ck_assert_int_eq (test_filevercmp (i, j), 0); i 369 tests/lib/strutil/filevercmp.c ck_assert_int_eq (test_filevercmp (j, i), 0); i 110 tests/src/editor/edit_complete_word_cmd.c GList *i; i 114 tests/src/editor/edit_complete_word_cmd.c for (i = g_queue_peek_tail_link (compl); i != NULL; i = g_list_previous (i)) i 116 tests/src/editor/edit_complete_word_cmd.c GString *s = (GString *) i->data; i 282 tests/src/editor/edit_complete_word_cmd.c off_t i = 0; i 293 tests/src/editor/edit_complete_word_cmd.c data->input_completed_word_start_pos + i++); i 356 tests/src/editor/edit_complete_word_cmd.c off_t i = 0; i 367 tests/src/editor/edit_complete_word_cmd.c data->input_completed_word_start_pos + i++); i 148 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c my_itoa (int i) i 152 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c sprintf (buf, "%d", i); i 183 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c int i; i 185 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c i = strlen (s); i 188 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c if ((--i >= 0) && (s[i] == '\r' || s[i] == '\n')) i 189 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c s[i] = '\0'; i 190 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c if ((--i >= 0) && (s[i] == '\r' || s[i] == '\n')) i 191 tests/src/vfs/extfs/helpers-list/mc_parse_ls_l.c s[i] = '\0';