r 152 lib/intprops-internal.h # define _GL_INT_ADD_WRAPV(a, b, r) __builtin_add_overflow (a, b, r) r 153 lib/intprops-internal.h # define _GL_INT_SUBTRACT_WRAPV(a, b, r) __builtin_sub_overflow (a, b, r) r 155 lib/intprops-internal.h # define _GL_INT_ADD_WRAPV(a, b, r) ckd_add (r, + (a), + (b)) r 156 lib/intprops-internal.h # define _GL_INT_SUBTRACT_WRAPV(a, b, r) ckd_sub (r, + (a), + (b)) r 158 lib/intprops-internal.h # define _GL_INT_ADD_WRAPV(a, b, r) \ r 159 lib/intprops-internal.h _GL_INT_OP_WRAPV (a, b, r, +, _GL_INT_ADD_RANGE_OVERFLOW) r 160 lib/intprops-internal.h # define _GL_INT_SUBTRACT_WRAPV(a, b, r) \ r 161 lib/intprops-internal.h _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) r 167 lib/intprops-internal.h # define _GL_INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r) r 170 lib/intprops-internal.h # define _GL_INT_MULTIPLY_WRAPV(a, b, r) \ r 171 lib/intprops-internal.h ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && _GL_EXPR_SIGNED (a) && _GL_EXPR_SIGNED (b) \ r 173 lib/intprops-internal.h (__typeof__ (*(r))) 0, \ r 174 lib/intprops-internal.h (__typeof__ (*(r))) -1)) \ r 175 lib/intprops-internal.h ? ((void) __builtin_mul_overflow (a, b, r), 1) \ r 176 lib/intprops-internal.h : __builtin_mul_overflow (a, b, r)) r 179 lib/intprops-internal.h # define _GL_INT_MULTIPLY_WRAPV(a, b, r) ckd_mul (r, + (a), + (b)) r 181 lib/intprops-internal.h # define _GL_INT_MULTIPLY_WRAPV(a, b, r) \ r 182 lib/intprops-internal.h _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW) r 203 lib/intprops-internal.h # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ r 205 lib/intprops-internal.h (*(r), \ r 207 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 210 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 213 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 216 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 219 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 222 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 225 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ r 228 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ r 231 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ r 234 lib/intprops-internal.h _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ r 245 lib/intprops-internal.h # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ r 246 lib/intprops-internal.h (_GL_TYPE_SIGNED (__typeof__ (*(r))) \ r 247 lib/intprops-internal.h ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \ r 248 lib/intprops-internal.h : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, ut, 0, umax)) r 250 lib/intprops-internal.h # define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ r 253 lib/intprops-internal.h ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 1) \ r 254 lib/intprops-internal.h : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) < 0) \ r 256 lib/intprops-internal.h ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) >= 0 \ r 257 lib/intprops-internal.h : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 0))) r 260 lib/intprops-internal.h # define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ r 261 lib/intprops-internal.h (sizeof *(r) == sizeof (signed char) \ r 262 lib/intprops-internal.h ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ r 265 lib/intprops-internal.h : sizeof *(r) == sizeof (short int) \ r 266 lib/intprops-internal.h ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ r 269 lib/intprops-internal.h : sizeof *(r) == sizeof (int) \ r 270 lib/intprops-internal.h ? (_GL_EXPR_SIGNED (*(r)) \ r 271 lib/intprops-internal.h ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 273 lib/intprops-internal.h : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ r 275 lib/intprops-internal.h : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow)) r 277 lib/intprops-internal.h # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ r 278 lib/intprops-internal.h (sizeof *(r) == sizeof (long int) \ r 279 lib/intprops-internal.h ? (_GL_EXPR_SIGNED (*(r)) \ r 280 lib/intprops-internal.h ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ r 282 lib/intprops-internal.h : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ r 284 lib/intprops-internal.h : (_GL_EXPR_SIGNED (*(r)) \ r 285 lib/intprops-internal.h ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ r 287 lib/intprops-internal.h : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ r 290 lib/intprops-internal.h # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ r 291 lib/intprops-internal.h (_GL_EXPR_SIGNED (*(r)) \ r 292 lib/intprops-internal.h ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ r 294 lib/intprops-internal.h : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ r 305 lib/intprops-internal.h #define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \ r 307 lib/intprops-internal.h ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \ r 308 lib/intprops-internal.h : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0)) r 300 lib/intprops.h #define INT_ADD_WRAPV(a, b, r) _GL_INT_ADD_WRAPV (a, b, r) r 301 lib/intprops.h #define INT_SUBTRACT_WRAPV(a, b, r) _GL_INT_SUBTRACT_WRAPV (a, b, r) r 302 lib/intprops.h #define INT_MULTIPLY_WRAPV(a, b, r) _GL_INT_MULTIPLY_WRAPV (a, b, r) r 331 lib/intprops.h #define INT_ADD_OK(a, b, r) (! INT_ADD_WRAPV (a, b, r)) r 332 lib/intprops.h #define INT_SUBTRACT_OK(a, b, r) (! INT_SUBTRACT_WRAPV (a, b, r)) r 333 lib/intprops.h #define INT_MULTIPLY_OK(a, b, r) (! INT_MULTIPLY_WRAPV (a, b, r)) r 31 lib/stdckdint.in.h #define ckd_add(r, a, b) ((bool) _GL_INT_ADD_WRAPV (a, b, r)) r 32 lib/stdckdint.in.h #define ckd_sub(r, a, b) ((bool) _GL_INT_SUBTRACT_WRAPV (a, b, r)) r 33 lib/stdckdint.in.h #define ckd_mul(r, a, b) ((bool) _GL_INT_MULTIPLY_WRAPV (a, b, r)) r 72 lib/tty/win.c int r; r 78 lib/tty/win.c r = (c - 'A') * 16; r 80 lib/tty/win.c r += (c - 'A'); r 81 lib/tty/win.c return r; r 117 lib/util.c char *buf, *buf2, *q, *r, c; r 124 lib/util.c r = buf = g_malloc (MC_MAXPATHLEN); r 126 lib/util.c *r++ = PATH_SEP; r 127 lib/util.c *r = '\0'; r 146 lib/util.c strcpy (r, p + 1); r 161 lib/util.c strcpy (r, buf2); r 164 lib/util.c r = strchr (buf, '\0'); r 165 lib/util.c if (*r == '\0' || !IS_PATH_SEP (r[-1])) r 168 lib/util.c *r++ = PATH_SEP; r 169 lib/util.c *r = '\0'; r 178 lib/util.c else if (IS_PATH_SEP (r[-1]) && r != buf + 1) r 179 lib/util.c r[-1] = '\0'; r 755 lib/util.c char *r; /* Current position where the original data is read */ r 760 lib/util.c for (w = s, r = s; *r != '\0';) r 762 lib/util.c if (*r == ESC_CHAR) r 766 lib/util.c if (*(++r) == '[' || *r == '(') r 769 lib/util.c while (*(++r) != '\0' && strchr ("0123456789;:<=>?", *r) != NULL) r 771 lib/util.c while (*r != '\0' && (*r < 0x40 || *r > 0x7E)) r 772 lib/util.c ++r; r 774 lib/util.c else if (*r == ']') r 784 lib/util.c for (new_r = r; *new_r != '\0'; new_r++) r 790 lib/util.c r = new_r; r 796 lib/util.c r = new_r + 1; r 812 lib/util.c if (*r != '\0') r 813 lib/util.c r++; r 819 lib/util.c n = str_get_next_char (r); r 820 lib/util.c if (str_isprint (r)) r 822 lib/util.c memmove (w, r, n - r); r 823 lib/util.c w += n - r; r 825 lib/util.c r = n; r 1062 lib/util.c char *r, *s; r 1065 lib/util.c r = strchr (p, PATH_SEP); r 1066 lib/util.c if (r == NULL) r 1072 lib/util.c len = r - p; r 1076 lib/util.c p = r + 1; r 111 lib/widget/background.c WRect r = { y, x, lines, cols }; r 117 lib/widget/background.c widget_init (w, &r, callback != NULL ? callback : background_callback, NULL); r 209 lib/widget/button.c WRect r = { y, x, 1, 1 }; r 219 lib/widget/button.c r.cols = button_get_len (b); r 220 lib/widget/button.c widget_init (w, &r, button_default_callback, button_mouse_default_callback); r 246 lib/widget/buttonbar.c WRect r = { LINES - 1, 0, 1, COLS }; r 252 lib/widget/buttonbar.c widget_init (w, &r, buttonbar_callback, buttonbar_mouse_callback); r 140 lib/widget/check.c WRect r = { y, x, 1, 1 }; r 148 lib/widget/check.c r.cols = 4 + hotkey_width (c->text); r 149 lib/widget/check.c widget_init (w, &r, check_callback, check_mouse_callback); r 403 lib/widget/dialog.c WRect r = { y1, x1, lines, cols }; r 411 lib/widget/dialog.c widget_adjust_position (pos_flags, &r); r 412 lib/widget/dialog.c group_init (g, &r, callback != NULL ? callback : dlg_default_callback, r 100 lib/widget/frame.c WRect r = { y, x, lines, cols }; r 106 lib/widget/frame.c widget_init (w, &r, frame_callback, NULL); r 133 lib/widget/gauge.c WRect r = { y, x, 1, cols }; r 139 lib/widget/gauge.c widget_init (w, &r, gauge_callback, NULL); r 203 lib/widget/group.c WRect r = WIDGET (w->owner)->rect; r 205 lib/widget/group.c r.lines = 0; r 206 lib/widget/group.c r.cols = 0; r 208 lib/widget/group.c widget_default_make_global (w, &r); r 211 lib/widget/group.c WIDGET (iter->data)->make_global (WIDGET (iter->data), &r); r 239 lib/widget/group.c WRect r = WIDGET (w->owner)->rect; r 241 lib/widget/group.c r.lines = 0; r 242 lib/widget/group.c r.cols = 0; r 244 lib/widget/group.c widget_default_make_local (w, &r); r 247 lib/widget/group.c WIDGET (iter->data)->make_local (WIDGET (iter->data), &r); r 393 lib/widget/group.c WRect r = c->rect; r 396 lib/widget/group.c r.x = g->x + (g->cols - c->rect.cols) / 2; r 399 lib/widget/group.c r.x += wss->shift_x; r 400 lib/widget/group.c r.cols += wss->scale_x; r 403 lib/widget/group.c r.x += wss->shift_x; r 405 lib/widget/group.c r.x += wss->shift_x + wss->scale_x; r 408 lib/widget/group.c r.y = g->y + (g->lines - c->rect.lines) / 2; r 411 lib/widget/group.c r.y += wss->shift_y; r 412 lib/widget/group.c r.lines += wss->scale_y; r 415 lib/widget/group.c r.y += wss->shift_y; r 417 lib/widget/group.c r.y += wss->shift_y + wss->scale_y; r 419 lib/widget/group.c send_message (c, NULL, MSG_RESIZE, 0, &r); r 425 lib/widget/group.c group_set_position (WGroup *g, const WRect *r) r 432 lib/widget/group.c *w = *r; r 454 lib/widget/group.c group_default_resize (WGroup *g, WRect *r) r 465 lib/widget/group.c r0 = r != NULL ? *r : w->rect; r 599 lib/widget/group.c group_init (WGroup *g, const WRect *r, widget_cb_fn callback, widget_mouse_cb_fn mouse_callback) r 603 lib/widget/group.c widget_init (w, r, callback != NULL ? callback : group_default_callback, mouse_callback); r 41 lib/widget/group.h void group_init (WGroup * g, const WRect * r, widget_cb_fn callback, r 102 lib/widget/groupbox.c WRect r = { y, x, height, width }; r 108 lib/widget/groupbox.c widget_init (w, &r, groupbox_callback, NULL); r 77 lib/widget/history.c WRect r; r 110 lib/widget/history.c rect_init (&r, y, x, he, wi); r 112 lib/widget/history.c return dlg_default_callback (WIDGET (dlg_head), NULL, MSG_RESIZE, 0, &r); r 149 lib/widget/hline.c WRect r = { y, x, 1, width }; r 155 lib/widget/hline.c r.cols = width < 0 ? 1 : width; r 156 lib/widget/hline.c widget_init (w, &r, hline_callback, NULL); r 955 lib/widget/input.c WRect r = { y, x, 1, width }; r 961 lib/widget/input.c widget_init (w, &r, input_callback, input_mouse_callback); r 83 lib/widget/input_complete.c char *r; r 856 lib/widget/input_complete.c state->r = strrchr (state->word, '@'); r 919 lib/widget/input_complete.c state->r = mc_build_filename (cdpath, state->word, (char *) NULL); r 922 lib/widget/input_complete.c completion_matches (state->r, filename_completion_function, r 924 lib/widget/input_complete.c g_free (state->r); r 1303 lib/widget/input_complete.c if (state.p > state.q && state.p > state.r) r 1314 lib/widget/input_complete.c else if (state.q > state.p && state.q > state.r) r 1324 lib/widget/input_complete.c else if (state.r > state.p && state.r > state.q) r 1327 lib/widget/input_complete.c matches = completion_matches (state.r, hostname_completion_function, state.flags); r 1329 lib/widget/input_complete.c *lc_start += state.r - state.word; r 136 lib/widget/label.c WRect r = { y, x, 1, 1 }; r 141 lib/widget/label.c str_msg_term_size (text, &r.lines, &r.cols); r 145 lib/widget/label.c widget_init (w, &r, label_callback, NULL); r 555 lib/widget/listbox.c WRect r = { y, x, 1, width }; r 561 lib/widget/listbox.c r.lines = height > 0 ? height : 1; r 562 lib/widget/listbox.c widget_init (w, &r, listbox_callback, listbox_mouse_callback); r 962 lib/widget/menu.c WRect r = { 0, 0, 1, COLS }; r 968 lib/widget/menu.c widget_init (w, &r, menubar_callback, menubar_mouse_callback); r 275 lib/widget/quick.c WRadio *r; r 284 lib/widget/quick.c r = radio_new (++y, x, quick_widget->u.radio.count, (const char **) items); r 285 lib/widget/quick.c r->pos = r->sel = *quick_widget->u.radio.value; r 287 lib/widget/quick.c item.widget = WIDGET (r); r 429 lib/widget/quick.c WRect *r; r 432 lib/widget/quick.c r = &item->widget->rect; r 451 lib/widget/quick.c if (r->x != x1) r 452 lib/widget/quick.c r->x = x2; r 454 lib/widget/quick.c r->x += 2; r 460 lib/widget/quick.c if (r->x != x1) r 461 lib/widget/quick.c r->x = x2; r 463 lib/widget/quick.c r->x += 2; r 467 lib/widget/quick.c r->x = x; r 468 lib/widget/quick.c x += r->cols + 1; r 484 lib/widget/quick.c r->x = label->rect.x + label->rect.cols + 1 - WIDGET (label->owner)->rect.x; r 485 lib/widget/quick.c r->cols = width - label->rect.cols - 1; r 489 lib/widget/quick.c if (r->x != x1) r 490 lib/widget/quick.c r->x = x2; r 492 lib/widget/quick.c r->x += 2; r 493 lib/widget/quick.c r->cols = width - label->rect.cols - 1; r 494 lib/widget/quick.c label->rect.x = r->x + r->cols + 1; r 498 lib/widget/quick.c if (r->x != x1) r 499 lib/widget/quick.c r->x = x2; r 501 lib/widget/quick.c r->x += 2; r 502 lib/widget/quick.c r->cols = width; r 507 lib/widget/quick.c r->lines = 1; r 508 lib/widget/quick.c widget_set_size_rect (item->widget, r); r 514 lib/widget/quick.c if (r->x != x1) r 515 lib/widget/quick.c r->x = x2; r 516 lib/widget/quick.c r->cols = column_width; r 531 lib/widget/quick.c r->x = wg->rect.x + 1 - WIDGET (wg->owner)->rect.x; r 532 lib/widget/quick.c r->cols = wg->rect.cols; r 537 lib/widget/quick.c if (r->x != x1) r 538 lib/widget/quick.c r->x = x2; r 539 lib/widget/quick.c r->x--; r 540 lib/widget/quick.c r->cols = column_width + 2; r 61 lib/widget/radio.c radio_execute_cmd (WRadio *r, long command) r 64 lib/widget/radio.c Widget *w = WIDGET (r); r 70 lib/widget/radio.c if (r->pos == 0) r 74 lib/widget/radio.c r->pos = 0; r 76 lib/widget/radio.c r->pos--; r 82 lib/widget/radio.c if (r->pos == r->count - 1) r 86 lib/widget/radio.c r->pos = r->count - 1; r 88 lib/widget/radio.c r->pos++; r 93 lib/widget/radio.c r->sel = r->pos; r 110 lib/widget/radio.c radio_key (WRadio *r, int key) r 114 lib/widget/radio.c command = widget_lookup_key (WIDGET (r), key); r 117 lib/widget/radio.c return radio_execute_cmd (r, command); r 125 lib/widget/radio.c WRadio *r = RADIO (w); r 131 lib/widget/radio.c for (i = 0; i < r->count; i++) r 133 lib/widget/radio.c if (r->texts[i].hotkey != NULL) r 137 lib/widget/radio.c c = g_ascii_tolower ((gchar) r->texts[i].hotkey[0]); r 140 lib/widget/radio.c r->pos = i; r 150 lib/widget/radio.c return radio_key (r, parm); r 153 lib/widget/radio.c return radio_execute_cmd (r, parm); r 156 lib/widget/radio.c widget_gotoyx (r, r->pos, 1); r 165 lib/widget/radio.c for (i = 0; i < r->count; i++) r 167 lib/widget/radio.c widget_selectcolor (w, i == r->pos && focused, FALSE); r 170 lib/widget/radio.c tty_print_string ((r->sel == i) ? "(*) " : "( ) "); r 171 lib/widget/radio.c hotkey_draw (w, r->texts[i], i == r->pos && focused); r 178 lib/widget/radio.c for (i = 0; i < r->count; i++) r 179 lib/widget/radio.c hotkey_free (r->texts[i]); r 180 lib/widget/radio.c g_free (r->texts); r 219 lib/widget/radio.c WRadio *r; r 223 lib/widget/radio.c r = g_new (WRadio, 1); r 224 lib/widget/radio.c w = WIDGET (r); r 227 lib/widget/radio.c r->texts = g_new (hotkey_t, count); r 233 lib/widget/radio.c r->texts[i] = hotkey_new (texts[i]); r 234 lib/widget/radio.c width = hotkey_width (r->texts[i]); r 244 lib/widget/radio.c r->pos = 0; r 245 lib/widget/radio.c r->sel = 0; r 246 lib/widget/radio.c r->count = count; r 248 lib/widget/radio.c return r; r 64 lib/widget/rect.c WRect *r; r 66 lib/widget/rect.c r = g_try_new (WRect, 1); r 68 lib/widget/rect.c if (r != NULL) r 69 lib/widget/rect.c rect_init (r, y, x, lines, cols); r 71 lib/widget/rect.c return r; r 86 lib/widget/rect.c rect_init (WRect *r, int y, int x, int lines, int cols) r 88 lib/widget/rect.c r->y = y; r 89 lib/widget/rect.c r->x = x; r 90 lib/widget/rect.c r->lines = lines; r 91 lib/widget/rect.c r->cols = cols; r 104 lib/widget/rect.c rect_move (WRect *r, int dy, int dx) r 106 lib/widget/rect.c r->y += dy; r 107 lib/widget/rect.c r->x += dx; r 120 lib/widget/rect.c rect_resize (WRect *r, int dl, int dc) r 122 lib/widget/rect.c r->lines += dl; r 123 lib/widget/rect.c r->cols += dc; r 140 lib/widget/rect.c rect_grow (WRect *r, int dl, int dc) r 142 lib/widget/rect.c r->y -= dl; r 143 lib/widget/rect.c r->x -= dc; r 144 lib/widget/rect.c r->lines += dl * 2; r 145 lib/widget/rect.c r->cols += dc * 2; r 160 lib/widget/rect.c rect_intersect (WRect *r, const WRect *r1) r 166 lib/widget/rect.c y = r->y + r->lines; r 167 lib/widget/rect.c x = r->x + r->cols; r 176 lib/widget/rect.c r->y = MAX (r->y, r1->y); r 177 lib/widget/rect.c r->x = MAX (r->x, r1->x); r 180 lib/widget/rect.c r->lines = y - r->y; r 181 lib/widget/rect.c r->cols = x - r->x; r 196 lib/widget/rect.c rect_union (WRect *r, const WRect *r1) r 202 lib/widget/rect.c y = r->y + r->lines; r 203 lib/widget/rect.c x = r->x + r->cols; r 212 lib/widget/rect.c r->y = MIN (r->y, r1->y); r 213 lib/widget/rect.c r->x = MIN (r->x, r1->x); r 216 lib/widget/rect.c r->lines = y - r->y; r 217 lib/widget/rect.c r->cols = x - r->x; r 34 lib/widget/rect.h void rect_init (WRect * r, int y, int x, int lines, int cols); r 35 lib/widget/rect.h void rect_move (WRect * r, int dy, int dx); r 36 lib/widget/rect.h void rect_resize (WRect * r, int dl, int dc); r 37 lib/widget/rect.h void rect_grow (WRect * r, int dl, int dc); r 38 lib/widget/rect.h void rect_intersect (WRect * r, const WRect * r1); r 39 lib/widget/rect.h void rect_union (WRect * r, const WRect * r1); r 85 lib/widget/widget-common.c widget_default_resize (Widget *w, const WRect *r) r 87 lib/widget/widget-common.c if (r == NULL) r 90 lib/widget/widget-common.c w->rect = *r; r 310 lib/widget/widget-common.c widget_init (Widget *w, const WRect *r, widget_cb_fn callback, widget_mouse_cb_fn mouse_callback) r 313 lib/widget/widget-common.c w->rect = *r; r 395 lib/widget/widget-common.c widget_adjust_position (widget_pos_flags_t pos_flags, WRect *r) r 399 lib/widget/widget-common.c r->y = 0; r 400 lib/widget/widget-common.c r->x = 0; r 401 lib/widget/widget-common.c r->lines = LINES; r 402 lib/widget/widget-common.c r->cols = COLS; r 407 lib/widget/widget-common.c r->x = (COLS - r->cols) / 2; r 410 lib/widget/widget-common.c r->y = (LINES - r->lines) / 2; r 414 lib/widget/widget-common.c if (r->y > 3) r 415 lib/widget/widget-common.c r->y -= 2; r 416 lib/widget/widget-common.c else if (r->y == 3) r 417 lib/widget/widget-common.c r->y = 2; r 436 lib/widget/widget-common.c WRect r = { y, x, lines, cols }; r 438 lib/widget/widget-common.c send_message (w, NULL, MSG_RESIZE, 0, &r); r 451 lib/widget/widget-common.c widget_set_size_rect (Widget *w, WRect *r) r 453 lib/widget/widget-common.c send_message (w, NULL, MSG_RESIZE, 0, r); r 899 lib/widget/widget-common.c const WRect *r = &w->rect; r 901 lib/widget/widget-common.c return (event->x > r->x) && (event->y > r->y) && (event->x <= r->x + r->cols) r 902 lib/widget/widget-common.c && (event->y <= r->y + r->lines); r 206 lib/widget/widget-common.h void widget_init (Widget * w, const WRect * r, widget_cb_fn callback, r 212 lib/widget/widget-common.h void widget_adjust_position (widget_pos_flags_t pos_flags, WRect * r); r 214 lib/widget/widget-common.h void widget_set_size_rect (Widget * w, WRect * r); r 79 lib/widget/wtools.c WRect r; r 111 lib/widget/wtools.c rect_init (&r, ypos, xpos, w->rect.lines, w->rect.cols); r 113 lib/widget/wtools.c return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); r 226 lib/widget/wtools.c WRect r = { -1, -1, 0, COLS / 2 }; r 229 lib/widget/wtools.c r, header, help, r 702 lib/widget/wtools.c WRect r; r 723 lib/widget/wtools.c r = wd->rect; r 724 lib/widget/wtools.c r.lines = y + 2; r 725 lib/widget/wtools.c r.cols = wd_width; r 726 lib/widget/wtools.c widget_set_size_rect (wd, &r); r 107 src/diffviewer/search.c WRect r = { -1, -1, 0, 58 }; r 110 src/diffviewer/search.c r, N_("Search"), "[Input Line Keys]", r 2368 src/diffviewer/ydiff.c WRect r = { -1, -1, 0, 56 }; r 2371 src/diffviewer/ydiff.c r, N_("Diff Options"), "[Diff Options]", r 2495 src/diffviewer/ydiff.c dview_display_file (const WDiff *dview, diff_place_t ord, int r, int c, int height, int width) r 2554 src/diffviewer/ydiff.c tty_gotoyx (r + j, c - 2); r 2561 src/diffviewer/ydiff.c tty_gotoyx (r + j, c - xwidth); r 2586 src/diffviewer/ydiff.c tty_gotoyx (r + j, c); r 2651 src/diffviewer/ydiff.c tty_gotoyx (r + j, c - xwidth); r 2661 src/diffviewer/ydiff.c tty_gotoyx (r + j, c); r 2712 src/diffviewer/ydiff.c tty_gotoyx (r + j, c - xwidth); r 2716 src/diffviewer/ydiff.c tty_gotoyx (r + j, c); r 3359 src/diffviewer/ydiff.c WRect r; r 3368 src/diffviewer/ydiff.c r = dw->rect; r 3374 src/diffviewer/ydiff.c r.lines--; r 3375 src/diffviewer/ydiff.c widget_init (w, &r, dview_callback, dview_mouse_callback); r 221 src/editor/bookmark.c gboolean r = FALSE; r 224 src/editor/bookmark.c return r; r 231 src/editor/bookmark.c r = TRUE; r 245 src/editor/bookmark.c return r; r 133 src/editor/edit-impl.h gboolean edit_add_window (WDialog * h, const WRect * r, const edit_arg_t * arg); r 177 src/editor/edit-impl.h WEdit *edit_init (WEdit * edit, const WRect * r, const edit_arg_t * arg); r 173 src/editor/edit.c WRect r; r 175 src/editor/edit.c r = wd->rect; r 176 src/editor/edit.c r.cols = MAX (r.cols, lw->rect.cols + 6); r 177 src/editor/edit.c widget_set_size_rect (wd, &r); r 178 src/editor/edit.c r = lw->rect; r 179 src/editor/edit.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; r 180 src/editor/edit.c widget_set_size_rect (lw, &r); r 914 src/editor/edit.c unsigned long r = 0; r 946 src/editor/edit.c r |= x; r 950 src/editor/edit.c return r; r 2121 src/editor/edit.c edit_init (WEdit *edit, const WRect *r, const edit_arg_t *arg) r 2152 src/editor/edit.c widget_init (w, r, NULL, NULL); r 409 src/editor/editcmd.c WRect r = { -1, -1, 0, 64 }; r 412 src/editor/editcmd.c r, N_("Save As"), "[Save File As]", r 468 src/editor/editcmd.c off_t r; r 472 src/editor/editcmd.c r = edit_buffer_get_bol (&edit->buffer, m1); r 473 src/editor/editcmd.c c = (long) edit_move_forward3 (edit, r, 0, m1); r 474 src/editor/editcmd.c r = edit_buffer_get_bol (&edit->buffer, m2); r 475 src/editor/editcmd.c d = (long) edit_move_forward3 (edit, r, 0, m2); r 483 src/editor/editcmd.c r = edit_buffer_get_current_bol (&edit->buffer); r 484 src/editor/editcmd.c p = edit_move_forward3 (edit, r, b, 0); r 485 src/editor/editcmd.c q = edit_move_forward3 (edit, r, c, 0); r 497 src/editor/editcmd.c r = edit_buffer_get_forward_offset (&edit->buffer, edit->buffer.curs1, 1, 0); r 498 src/editor/editcmd.c edit_cursor_move (edit, r - edit->buffer.curs1); r 577 src/editor/editcmd.c unsigned char *s, *r; r 579 src/editor/editcmd.c r = s = g_malloc0 (finish - start + 1); r 612 src/editor/editcmd.c return r; r 879 src/editor/editcmd.c WRect r = { -1, -1, 0, 38 }; r 882 src/editor/editcmd.c r, N_("Edit Save Mode"), "[Edit Save Mode]", r 1087 src/editor/editcmd.c WRect r = WIDGET (h)->rect; r 1089 src/editor/editcmd.c rect_grow (&r, -1, 0); r 1091 src/editor/editcmd.c return edit_add_window (h, &r, arg); r 1540 src/editor/editcmd.c int r; r 1542 src/editor/editcmd.c r = mc_write (file, VERTICAL_MAGIC, sizeof (VERTICAL_MAGIC)); r 1543 src/editor/editcmd.c if (r > 0) r 1550 src/editor/editcmd.c r = mc_write (file, p, len); r 1551 src/editor/editcmd.c if (r < 0) r 1553 src/editor/editcmd.c p += r; r 1554 src/editor/editcmd.c len -= r; r 1930 src/editor/editcmd.c WRect r = { -1, -1, 0, 50 }; r 1933 src/editor/editcmd.c r, N_("Mail"), "[Input Line Keys]", r 188 src/editor/editoptions.c WRect r = { -1, -1, 0, 74 }; r 191 src/editor/editoptions.c r, N_("Editor options"), "[Editor options]", r 112 src/editor/editsearch.c WRect r = { -1, -1, 0, 58 }; r 115 src/editor/editsearch.c r, N_("Search"), "[Input Line Keys]", r 192 src/editor/editsearch.c WRect r = { -1, -1, 0, 58 }; r 195 src/editor/editsearch.c r, N_("Replace"), "[Input Line Keys]", r 257 src/editor/editsearch.c WRect r = { ypos, xpos, 0, -1 }; r 260 src/editor/editsearch.c r, N_("Confirm replace"), NULL, r 758 src/editor/editsearch.c WRect r; r 760 src/editor/editsearch.c r = wd->rect; r 761 src/editor/editsearch.c r.cols = MAX (r.cols, lw->rect.cols + 6); r 762 src/editor/editsearch.c widget_set_size_rect (wd, &r); r 763 src/editor/editsearch.c r = lw->rect; r 764 src/editor/editsearch.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; r 765 src/editor/editsearch.c widget_set_size_rect (lw, &r); r 161 src/editor/editwidget.c WRect r = { -1, -1, 0, 40 }; r 164 src/editor/editwidget.c r, N_("About"), "[Internal File Editor]", r 1017 src/editor/editwidget.c WRect *r = &w->rect; r 1040 src/editor/editwidget.c global_x = event->x + r->x; r 1041 src/editor/editwidget.c global_y = event->y + r->y; r 1049 src/editor/editwidget.c r->y = global_y; r 1050 src/editor/editwidget.c r->x = global_x - edit->drag_state_start; r 1054 src/editor/editwidget.c r->lines = MAX (WINDOW_MIN_LINES, global_y - r->y + 1); r 1055 src/editor/editwidget.c r->cols = MAX (WINDOW_MIN_COLS, global_x - r->x + 1); r 1364 src/editor/editwidget.c edit_add_window (WDialog *h, const WRect *r, const edit_arg_t *arg) r 1369 src/editor/editwidget.c edit = edit_init (NULL, r, arg); r 1526 src/editor/editwidget.c WRect r; r 1529 src/editor/editwidget.c r = WIDGET (w->owner)->rect; r 1530 src/editor/editwidget.c rect_grow (&r, -1, 0); r 1531 src/editor/editwidget.c widget_set_size_rect (w, &r); r 158 src/editor/syntax.c context_rule_t *r = CONTEXT_RULE (rule); r 160 src/editor/syntax.c g_string_free (r->left, TRUE); r 161 src/editor/syntax.c g_string_free (r->right, TRUE); r 162 src/editor/syntax.c g_free (r->whole_word_chars_left); r 163 src/editor/syntax.c g_free (r->whole_word_chars_right); r 164 src/editor/syntax.c g_free (r->keyword_first_chars); r 166 src/editor/syntax.c if (r->keyword != NULL) r 167 src/editor/syntax.c g_ptr_array_free (r->keyword, TRUE); r 169 src/editor/syntax.c g_free (r); r 375 src/editor/syntax.c context_rule_t *r; r 408 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule.context)); r 409 src/editor/syntax.c if (r->first_right == c && (edit->rule.border & RULE_ON_RIGHT_BORDER) == 0 r 410 src/editor/syntax.c && r->right->len != 0 && (e = r 411 src/editor/syntax.c compare_word_to_right (edit, i, r->right, r 412 src/editor/syntax.c r->whole_word_chars_left, r 413 src/editor/syntax.c r->whole_word_chars_right, r 414 src/editor/syntax.c r->line_start_right)) > 0) r 419 src/editor/syntax.c if (r->between_delimiters) r 443 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule.context)); r 444 src/editor/syntax.c p = r->keyword_first_chars; r 453 src/editor/syntax.c count = p - r->keyword_first_chars; r 454 src/editor/syntax.c k = SYNTAX_KEYWORD (g_ptr_array_index (r->keyword, count)); r 465 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule._context)); r 466 src/editor/syntax.c if (r->right != NULL && r->right->len != 0 r 467 src/editor/syntax.c && r->right->str[r->right->len - 1] == '\n') r 495 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule._context)); r 497 src/editor/syntax.c if (r->between_delimiters) r 503 src/editor/syntax.c if (r->first_right == c) r 507 src/editor/syntax.c if (r->right->len != 0) r 508 src/editor/syntax.c e = compare_word_to_right (edit, i, r->right, r->whole_word_chars_left, r 509 src/editor/syntax.c r->whole_word_chars_right, r 510 src/editor/syntax.c r->line_start_right); r 529 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, count)); r 530 src/editor/syntax.c if (r->first_left == c) r 534 src/editor/syntax.c if (r->left->len != 0) r 535 src/editor/syntax.c e = compare_word_to_right (edit, i, r->left, r->whole_word_chars_left, r 536 src/editor/syntax.c r->whole_word_chars_right, r->line_start_left); r 542 src/editor/syntax.c if (!r->between_delimiters && _rule.keyword == 0) r 559 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule.context)); r 560 src/editor/syntax.c p = r->keyword_first_chars; r 568 src/editor/syntax.c count = p - r->keyword_first_chars; r 569 src/editor/syntax.c k = SYNTAX_KEYWORD (g_ptr_array_index (r->keyword, count)); r 652 src/editor/syntax.c context_rule_t *r; r 654 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, rule->context)); r 655 src/editor/syntax.c k = SYNTAX_KEYWORD (g_ptr_array_index (r->keyword, rule->keyword)); r 671 src/editor/syntax.c size_t r = 0; r 687 src/editor/syntax.c r = 0; r 691 src/editor/syntax.c r++; r 700 src/editor/syntax.c r++; r 708 src/editor/syntax.c if (r != 0) r 713 src/editor/syntax.c return r; r 721 src/editor/syntax.c char *r, *p; r 723 src/editor/syntax.c p = r = s; r 764 src/editor/syntax.c return r; r 784 src/editor/syntax.c return r; r 1509 src/editor/syntax.c int r; r 1535 src/editor/syntax.c r = edit_read_syntax_file (edit, pnames, f, vfs_path_as_str (edit->filename_vpath), r 1539 src/editor/syntax.c r = edit_read_syntax_file (NULL, pnames, f, NULL, "", NULL); r 1540 src/editor/syntax.c if (r == -1) r 1546 src/editor/syntax.c else if (r != 0) r 1551 src/editor/syntax.c r); r 195 src/filemanager/boxes.c WRect r = w->rect; r 197 src/filemanager/boxes.c r.y = wd->y + (wd->lines - r.lines) / 2; r 198 src/filemanager/boxes.c r.x = wd->x + wd->cols / 2; r 200 src/filemanager/boxes.c return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); r 347 src/filemanager/boxes.c WRadio *r; r 349 src/filemanager/boxes.c r = RADIO (widget_find_by_id (w, panel_list_formats_id)); r 351 src/filemanager/boxes.c input_assign_text (in, status_format[r->sel]); r 408 src/filemanager/boxes.c WRect r = w->rect; r 411 src/filemanager/boxes.c r.lines = LINES - 9; r 412 src/filemanager/boxes.c r.cols = COLS - 20; r 413 src/filemanager/boxes.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); r 594 src/filemanager/boxes.c WRect r = { -1, -1, 0, 60 }; r 597 src/filemanager/boxes.c r, N_("Configure options"), "[Configuration]", r 653 src/filemanager/boxes.c WRect r = { -1, -1, 0, 54 }; r 656 src/filemanager/boxes.c r, N_("Appearance"), "[Appearance]", r 733 src/filemanager/boxes.c WRect r = { -1, -1, 0, 60 }; r 736 src/filemanager/boxes.c r, N_("Panel options"), "[Panel options]", r 810 src/filemanager/boxes.c WRect r = { -1, -1, 0, 48 }; r 813 src/filemanager/boxes.c r, N_("Listing format"), "[Listing Format...]", r 901 src/filemanager/boxes.c WRect r = { -1, -1, 0, 40 }; r 904 src/filemanager/boxes.c r, N_("Sort order"), "[Sort Order...]", r 941 src/filemanager/boxes.c WRect r = { -1, -1, 0, 46 }; r 944 src/filemanager/boxes.c r, N_("Confirmation"), "[Confirmation]", r 977 src/filemanager/boxes.c WRect r = { -1, -1, 0, 46 }; r 980 src/filemanager/boxes.c r, _("Display bits"), "[Display bits]", r 1036 src/filemanager/boxes.c WRect r = { -1, -1, 0, 46 }; r 1039 src/filemanager/boxes.c r, N_("Display bits"), "[Display bits]", r 1079 src/filemanager/boxes.c WRect r; r 1094 src/filemanager/boxes.c rect_init (&r, 2, 2, wd->rect.lines - 6, wd->rect.cols - 5); r 1095 src/filemanager/boxes.c mytree = tree_new (&r, FALSE); r 1166 src/filemanager/boxes.c WRect r = { -1, -1, 0, 56 }; r 1169 src/filemanager/boxes.c r, N_("Virtual File System Setting"), "[Virtual FS]", r 1229 src/filemanager/boxes.c WRect r = { w->rect.y + w->rect.lines - 6, w->rect.x, 0, w->rect.cols }; r 1232 src/filemanager/boxes.c r, N_("Quick cd"), "[Quick cd]", r 1259 src/filemanager/boxes.c WRect r = { -1, -1, 0, 64 }; r 1262 src/filemanager/boxes.c r, N_("Symbolic link"), "[File Menu]", r 362 src/filemanager/chattr.c WRect r = { y, x, 2, 1 }; r 367 src/filemanager/chattr.c r.cols = MAX (width, (int) check_attr_num); r 370 src/filemanager/chattr.c widget_init (WIDGET (fat), &r, fileattrtext_callback, NULL); r 877 src/filemanager/chattr.c chattrboxes_new (const WRect *r) r 887 src/filemanager/chattr.c group_init (cbg, r, chattrboxes_callback, chattrboxes_mouse_callback); r 893 src/filemanager/chattr.c for (i = 0; i < r->lines; i++) r 971 src/filemanager/chattr.c WRect r; r 1008 src/filemanager/chattr.c r = dw->rect; r 1011 src/filemanager/chattr.c r.cols = cols + wx * 2; r 1012 src/filemanager/chattr.c r.lines = lines; r 1013 src/filemanager/chattr.c widget_set_size_rect (dw, &r); r 1017 src/filemanager/chattr.c rect_init (&r, y++, wx, checkboxes_lines > 0 ? checkboxes_lines : 1, cols); r 1018 src/filemanager/chattr.c cb = chattrboxes_new (&r); r 1049 src/filemanager/chattr.c r = dw->rect; r 1050 src/filemanager/chattr.c r.lines = lines; r 1051 src/filemanager/chattr.c r.cols = cols; r 1052 src/filemanager/chattr.c widget_set_size_rect (dw, &r); r 1062 src/filemanager/chattr.c r = b->rect; r 1063 src/filemanager/chattr.c r.x = cols - r.cols; r 1064 src/filemanager/chattr.c widget_set_size_rect (b, &r); r 1067 src/filemanager/chattr.c r = b->rect; r 1068 src/filemanager/chattr.c r.x = cols + 1; r 1069 src/filemanager/chattr.c widget_set_size_rect (b, &r); r 380 src/filemanager/dir.c int r; r 387 src/filemanager/dir.c r = str_key_collate (a->extension_sort_key, b->extension_sort_key, case_sensitive); r 388 src/filemanager/dir.c if (r != 0) r 389 src/filemanager/dir.c return r * reverse; r 205 src/filemanager/file.c WRect r; r 214 src/filemanager/file.c r = dsm->abort_button->rect; r 215 src/filemanager/file.c r.y = y; r 216 src/filemanager/file.c r.x = x; r 217 src/filemanager/file.c widget_set_size_rect (dsm->abort_button, &r); r 226 src/filemanager/file.c r = dsm->abort_button->rect; r 227 src/filemanager/file.c r.y = y; r 228 src/filemanager/file.c r.x = x; r 229 src/filemanager/file.c widget_set_size_rect (dsm->abort_button, &r); r 231 src/filemanager/file.c r = dsm->skip_button->rect; r 232 src/filemanager/file.c r.y = y; r 233 src/filemanager/file.c r.x = x; r 234 src/filemanager/file.c widget_set_size_rect (dsm->skip_button, &r); r 549 src/filemanager/file.c const char *r; r 551 src/filemanager/file.c r = strrchr (src_path, PATH_SEP); r 552 src/filemanager/file.c if (r != NULL) r 558 src/filemanager/file.c slen = r - src_path + 1; r 3372 src/filemanager/file.c WRect r = wd->rect; r 3403 src/filemanager/file.c r.lines = 8; r 3404 src/filemanager/file.c r.cols = ui_width; r 3405 src/filemanager/file.c widget_set_size_rect (wd, &r); r 3416 src/filemanager/file.c WRect r = wd->rect; r 3423 src/filemanager/file.c if (WIDGET (dsm->count_size)->rect.cols + 6 > r.cols) r 3425 src/filemanager/file.c r.cols = WIDGET (dsm->count_size)->rect.cols + 6; r 3426 src/filemanager/file.c widget_set_size_rect (wd, &r); r 880 src/filemanager/filegui.c WRect r; r 1004 src/filemanager/filegui.c r = w->rect; r 1005 src/filemanager/filegui.c r.lines = y + 3; r 1006 src/filemanager/filegui.c r.cols = MAX (COLS * 2 / 3, buttons_width + 6); r 1007 src/filemanager/filegui.c widget_set_size_rect (w, &r); r 1443 src/filemanager/filegui.c WRect r = { -1, -1, 0, fmd_xlen }; r 1446 src/filemanager/filegui.c r, op_names[ctx->operation], "[Mask Copy/Rename]", r 236 src/filemanager/find.c size_t r = 0, w = 0; /* read and write iterators */ r 245 src/filemanager/find.c for (; find_ignore_dirs[r] != NULL; r++) r 247 src/filemanager/find.c if (find_ignore_dirs[r][0] == '\0') r 250 src/filemanager/find.c MC_PTR_FREE (find_ignore_dirs[r]); r 254 src/filemanager/find.c if (r != w) r 257 src/filemanager/find.c find_ignore_dirs[w] = find_ignore_dirs[r]; r 258 src/filemanager/find.c find_ignore_dirs[r] = NULL; r 416 src/filemanager/find.c find_check_regexp (const char *r) r 421 src/filemanager/find.c search = mc_search_new (r, NULL); r 1571 src/filemanager/find.c WRect r = w->rect; r 1573 src/filemanager/find.c r.lines = LINES - 4; r 1574 src/filemanager/find.c r.cols = COLS - 16; r 1575 src/filemanager/find.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); r 607 src/filemanager/hotlist.c WRect r = w->rect; r 609 src/filemanager/hotlist.c r.lines = LINES - (h == hotlist_dlg ? 2 : 6); r 610 src/filemanager/hotlist.c r.cols = COLS - 6; r 612 src/filemanager/hotlist.c return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); r 1015 src/filemanager/hotlist.c WRect r = { -1, -1, 0, 64 }; r 1018 src/filemanager/hotlist.c r, header, help, r 1078 src/filemanager/hotlist.c WRect r = { -1, -1, 0, 64 }; r 1081 src/filemanager/hotlist.c r, header, "[Hotlist]", r 366 src/filemanager/info.c info_new (const WRect *r) r 373 src/filemanager/info.c widget_init (w, r, info_callback, NULL); r 21 src/filemanager/info.h WInfo *info_new (const WRect * r); r 650 src/filemanager/layout.c restore_into_right_dir_panel (int idx, gboolean last_was_panel, const WRect *r) r 662 src/filemanager/layout.c new_widget = panel_sized_with_dir_new (p_name, r, saved_dir_vpath); r 666 src/filemanager/layout.c new_widget = panel_sized_new (p_name, r); r 821 src/filemanager/layout.c const WRect *r = &CONST_WIDGET (mw)->rect; r 834 src/filemanager/layout.c r->lines - (menubar_visible ? 1 : 0) - (mc_global.message_visible ? 1 : 0) - r 853 src/filemanager/layout.c rb = *r; r 859 src/filemanager/layout.c start_y = r->y + (menubar_visible ? 1 : 0); r 868 src/filemanager/layout.c widget_set_size (panels[0].widget, start_y, r->x, panels_layout.top_panel_size, r 870 src/filemanager/layout.c widget_set_size (panels[1].widget, start_y + panels_layout.top_panel_size, r->x, r 875 src/filemanager/layout.c widget_set_size (panels[0].widget, start_y, r->x, height, panels[0].widget->rect.cols); r 880 src/filemanager/layout.c widget_set_size (WIDGET (the_hint), height + start_y, r->x, 1, r->cols); r 888 src/filemanager/layout.c end_line = r->lines - (mc_global.keybar_visible ? 1 : 0) - 1; r 907 src/filemanager/layout.c rb = *r; r 908 src/filemanager/layout.c rb.y = r->lines - 1; r 982 src/filemanager/layout.c const WRect *r = &mw->rect; r 1005 src/filemanager/layout.c if (r->cols > 8 && prompt_width > r->cols - 8) r 1009 src/filemanager/layout.c prompt_width = r->cols - 8; r 1022 src/filemanager/layout.c y = r->lines - 1 - (mc_global.keybar_visible ? 1 : 0); r 1024 src/filemanager/layout.c widget_set_size (WIDGET (the_prompt), y, r->x, 1, prompt_width); r 1026 src/filemanager/layout.c widget_set_size (WIDGET (cmdline), y, r->x + prompt_width, 1, r->cols - prompt_width); r 1122 src/filemanager/layout.c WRect r = { 0, 0, 0, 0 }; r 1147 src/filemanager/layout.c r = w->rect; r 1157 src/filemanager/layout.c r.cols = md_cols; r 1158 src/filemanager/layout.c r.x = 0; r 1162 src/filemanager/layout.c r.cols = md_cols - panels_layout.left_panel_size; r 1164 src/filemanager/layout.c r.x = panels_layout.left_panel_size; r 1182 src/filemanager/layout.c new_widget = restore_into_right_dir_panel (num, last_was_panel, &r); r 1187 src/filemanager/layout.c new_widget = WIDGET (info_new (&r)); r 1191 src/filemanager/layout.c new_widget = WIDGET (tree_new (&r, TRUE)); r 1199 src/filemanager/layout.c new_widget = WIDGET (mcview_new (&r, TRUE)); r 1336 src/filemanager/layout.c WRect r; r 1360 src/filemanager/layout.c r = panels[0].widget->rect; r 1362 src/filemanager/layout.c panels[1].widget->rect = r; r 454 src/filemanager/panel.c int i, r, l; r 462 src/filemanager/panel.c r = l + 1; r 468 src/filemanager/panel.c r = l + 3; r 473 src/filemanager/panel.c if (i >= l && i < r) r 2680 src/filemanager/panel.c WRect r = { -1, -1, 0, 50 }; r 2683 src/filemanager/panel.c r, title, help_section, r 4565 src/filemanager/panel.c panel_sized_empty_new (const char *panel_name, const WRect *r) r 4574 src/filemanager/panel.c widget_init (w, r, panel_callback, panel_mouse_callback); r 4654 src/filemanager/panel.c panel_sized_with_dir_new (const char *panel_name, const WRect *r, const vfs_path_t *vpath) r 4662 src/filemanager/panel.c panel = panel_sized_empty_new (panel_name, r); r 4942 src/filemanager/panel.c gboolean r; r 4944 src/filemanager/panel.c r = panel_do_cd_int (panel, new_dir_vpath, cd_type); r 4945 src/filemanager/panel.c if (r) r 4947 src/filemanager/panel.c return r; r 5079 src/filemanager/panel.c int r; r 5081 src/filemanager/panel.c r = select_charset (-1, -1, panel->codepage, FALSE); r 5083 src/filemanager/panel.c if (r == SELECT_CHARSET_CANCEL) r 5086 src/filemanager/panel.c panel->codepage = r; r 154 src/filemanager/panel.h WPanel *panel_sized_empty_new (const char *panel_name, const WRect * r); r 155 src/filemanager/panel.h WPanel *panel_sized_with_dir_new (const char *panel_name, const WRect * r, r 223 src/filemanager/panel.h WRect r = { 0, 0, 1, 1 }; r 225 src/filemanager/panel.h return panel_sized_empty_new (panel_name, &r); r 242 src/filemanager/panel.h WRect r = { 0, 0, 1, 1 }; r 244 src/filemanager/panel.h return panel_sized_with_dir_new (panel_name, &r, vpath); r 274 src/filemanager/panel.h panel_sized_new (const char *panel_name, const WRect *r) r 276 src/filemanager/panel.h return panel_sized_with_dir_new (panel_name, r, NULL); r 1275 src/filemanager/tree.c tree_new (const WRect *r, gboolean is_panel) r 1283 src/filemanager/tree.c widget_init (w, r, tree_callback, tree_mouse_callback); r 25 src/filemanager/tree.h WTree *tree_new (const WRect * r, gboolean is_panel); r 483 src/filemanager/treestore.c tree_store_remove_fn r = (tree_store_remove_fn) p->hook_fn; r 485 src/filemanager/treestore.c r (entry, p->hook_data); r 893 src/help.c WRect r = w->rect; r 896 src/help.c r.lines = help_lines + 4; r 897 src/help.c r.cols = HELP_WINDOW_WIDTH + 4; r 898 src/help.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); r 1058 src/help.c mousedispatch_new (const WRect *r) r 1063 src/help.c widget_init (w, r, md_callback, help_mouse_callback); r 1093 src/help.c WRect r = { 1, 1, 1, 1 }; r 1163 src/help.c r.lines = help_lines; r 1164 src/help.c r.cols = HELP_WINDOW_WIDTH - 2; r 1165 src/help.c md = mousedispatch_new (&r); r 420 src/main.c int r; r 422 src/main.c r = query_dialog (_("Warning"), r 426 src/main.c if (r == 0) r 165 src/selcodepage.c int r; r 167 src/selcodepage.c r = select_charset (-1, -1, default_source_codepage, FALSE); r 168 src/selcodepage.c if (r == SELECT_CHARSET_CANCEL) r 171 src/selcodepage.c default_source_codepage = r; r 1734 src/vfs/ftpfs/ftpfs.c int r; r 1736 src/vfs/ftpfs/ftpfs.c r = strcmp (fe->name, filename); r 1738 src/vfs/ftpfs/ftpfs.c if (r == 0) r 1756 src/vfs/ftpfs/ftpfs.c if (r < 0) r 2123 src/vfs/ftpfs/ftpfs.c int r; r 2134 src/vfs/ftpfs/ftpfs.c r = ftpfs_command (me, super, WAIT_REPLY, cmd, p); r 2138 src/vfs/ftpfs/ftpfs.c r = COMPLETE; r 2139 src/vfs/ftpfs/ftpfs.c if (r != COMPLETE) r 2246 src/vfs/ftpfs/ftpfs.c int r; r 2253 src/vfs/ftpfs/ftpfs.c r = ftpfs_command (me, super, WAIT_REPLY, "CWD /%s", p); r 2256 src/vfs/ftpfs/ftpfs.c if (r != COMPLETE) r 2264 src/vfs/ftpfs/ftpfs.c return r; r 312 src/vfs/shell/shell.c int r; r 318 src/vfs/shell/shell.c r = shell_command (me, super, wait_reply, command->str, command->len); r 321 src/vfs/shell/shell.c return r; r 331 src/vfs/shell/shell.c int r; r 335 src/vfs/shell/shell.c r = shell_command_va (me, super, wait_reply, scr, vars, ap); r 338 src/vfs/shell/shell.c return r; r 348 src/vfs/shell/shell.c int r; r 352 src/vfs/shell/shell.c r = shell_command_va (me, super, WAIT_REPLY, scr, vars, ap); r 356 src/vfs/shell/shell.c if (r != COMPLETE) r 106 src/vfs/tar/tar-internal.c ssize_t r; r 108 src/vfs/tar/tar-internal.c r = mc_read (archive->fd, more, left); r 109 src/vfs/tar/tar-internal.c if (r == -1) r 112 src/vfs/tar/tar-internal.c status = (size_t) r; r 261 src/vfs/tar/tar-xheader.c struct timespec r; r 308 src/vfs/tar/tar-xheader.c r.tv_sec = s; r 309 src/vfs/tar/tar-xheader.c r.tv_nsec = ns; r 310 src/vfs/tar/tar-xheader.c return r; r 629 src/viewer/actions_cmd.c int r; r 637 src/viewer/actions_cmd.c r = query_dialog (_("Quit"), r 643 src/viewer/actions_cmd.c r = query_dialog (_("Quit"), r 647 src/viewer/actions_cmd.c if (r == -1) r 648 src/viewer/actions_cmd.c r = 1; r 651 src/viewer/actions_cmd.c switch (r) r 578 src/viewer/ascii.c const WRect *r = &view->data_area; r 588 src/viewer/ascii.c if (!view->mode_flags.wrap && (row < 0 || row >= r->lines) && linewidth == NULL) r 657 src/viewer/ascii.c if (view->mode_flags.wrap && (off_t) col + charwidth > dpy_text_column + (off_t) r->cols r 669 src/viewer/ascii.c if (row >= 0 && row < r->lines) r 672 src/viewer/ascii.c (off_t) col + charwidth <= dpy_text_column + (off_t) r->cols) r 676 src/viewer/ascii.c widget_gotoyx (view, r->y + row, r->x + ((off_t) col - dpy_text_column)); r 702 src/viewer/ascii.c i < (off_t) col + charwidth && i < dpy_text_column + (off_t) r->cols; i++) r 704 src/viewer/ascii.c widget_gotoyx (view, r->y + row, r->x + (i - dpy_text_column)); r 708 src/viewer/ascii.c else if ((off_t) col < dpy_text_column + (off_t) r->cols && r 709 src/viewer/ascii.c (off_t) col + charwidth > dpy_text_column + (off_t) r->cols) r 715 src/viewer/ascii.c for (i = col; i < dpy_text_column + (off_t) r->cols; i++) r 717 src/viewer/ascii.c widget_gotoyx (view, r->y + row, r->x + (i - dpy_text_column)); r 726 src/viewer/ascii.c if (!view->mode_flags.wrap && (off_t) col >= dpy_text_column + (off_t) r->cols r 849 src/viewer/ascii.c const WRect *r = &view->data_area; r 871 src/viewer/ascii.c for (row = 0; row < r->lines; row += n) r 883 src/viewer/ascii.c mcview_ascii_move_up (view, r->lines - row); r 897 src/viewer/ascii.c while (row < r->lines) r 899 src/viewer/ascii.c widget_gotoyx (view, r->y + row, r->x); r 101 src/viewer/dialogs.c WRect r = { -1, -1, 0, 58 }; r 104 src/viewer/dialogs.c r, N_("Search"), "[Input Line Keys]", r 188 src/viewer/dialogs.c WRect r = { -1, -1, 0, 40 }; r 191 src/viewer/dialogs.c r, N_("Goto"), "[Input Line Keys]", r 154 src/viewer/display.c const WRect *r = &view->status_area; r 157 src/viewer/display.c if (r->lines < 1) r 161 src/viewer/display.c tty_draw_hline (WIDGET (view)->rect.y + r->y, WIDGET (view)->rect.x + r->x, ' ', r->cols); r 168 src/viewer/display.c if (r->cols > 40) r 170 src/viewer/display.c widget_gotoyx (view, r->y, r->cols - 32); r 188 src/viewer/display.c widget_gotoyx (view, r->y, r->x); r 189 src/viewer/display.c if (r->cols > 40) r 190 src/viewer/display.c tty_print_string (str_fit_to_term (file_label, r->cols - 34, J_LEFT_FIT)); r 192 src/viewer/display.c tty_print_string (str_fit_to_term (file_label, r->cols - 5, J_LEFT_FIT)); r 193 src/viewer/display.c if (r->cols > 26) r 369 src/viewer/display.c const WRect *r = &view->ruler_area; r 377 src/viewer/display.c if (ruler == RULER_NONE || r->lines < 1) r 381 src/viewer/display.c for (c = 0; c < r->cols; c++) r 384 src/viewer/display.c if (line_row < r->lines) r 386 src/viewer/display.c widget_gotoyx (view, r->y + line_row, r->x + c); r 393 src/viewer/display.c if (nums_row < r->lines) r 395 src/viewer/display.c widget_gotoyx (view, r->y + nums_row, r->x + c - 1); r 100 src/viewer/hex.c const WRect *r = &view->data_area; r 124 src/viewer/hex.c if (r->cols == 80) r 126 src/viewer/hex.c else if (r->cols > 80) r 152 src/viewer/hex.c for (; mcview_get_byte (view, from, NULL) && row < r->lines; row++) r 163 src/viewer/hex.c widget_gotoyx (view, r->y + row, r->x); r 165 src/viewer/hex.c for (i = 0; col < r->cols && hex_buff[i] != '\0'; col++, i++) r 277 src/viewer/hex.c widget_gotoyx (view, r->y + row, r->x + col); r 278 src/viewer/hex.c if (col < r->cols) r 283 src/viewer/hex.c if (col < r->cols) r 293 src/viewer/hex.c if (col < r->cols) r 302 src/viewer/hex.c if (view->data_area.cols >= 80 && col < r->cols) r 307 src/viewer/hex.c if (col < r->cols) r 346 src/viewer/hex.c if (text_start + bytes < r->cols) r 348 src/viewer/hex.c widget_gotoyx (view, r->y + row, r->x + text_start + bytes); r 94 src/viewer/mcviewer.c const WRect *r = &view->data_area; r 127 src/viewer/mcviewer.c if (x < r->cols * 1 / 4) r 132 src/viewer/mcviewer.c else if (x < r->cols * 3 / 4) r 150 src/viewer/mcviewer.c if (y < r->y + r->lines * 1 / 3) r 153 src/viewer/mcviewer.c mcview_move_up (view, r->lines / 2); r 159 src/viewer/mcviewer.c else if (y < r->y + r->lines * 2 / 3) r 167 src/viewer/mcviewer.c mcview_move_down (view, r->lines / 2); r 198 src/viewer/mcviewer.c mcview_new (const WRect *r, gboolean is_panel) r 206 src/viewer/mcviewer.c widget_init (w, r, mcview_callback, mcview_mouse_callback); r 245 src/viewer/mcviewer.c WRect r; r 255 src/viewer/mcviewer.c r = vw->rect; r 256 src/viewer/mcviewer.c r.lines--; r 257 src/viewer/mcviewer.c lc_mcview = mcview_new (&r, FALSE); r 42 src/viewer/mcviewer.h extern WView *mcview_new (const WRect * r, gboolean is_panel); r 378 src/viewer/move.c const WRect *r = &view->data_area; r 384 src/viewer/move.c widget_gotoyx (view, r->y + view->cursor_row, r->x + col); r 103 src/viewer/search.c WRect r; r 105 src/viewer/search.c r = wd->rect; r 106 src/viewer/search.c r.cols = MAX (r.cols, lw->rect.cols + 6); r 107 src/viewer/search.c widget_set_size_rect (wd, &r); r 108 src/viewer/search.c r = lw->rect; r 109 src/viewer/search.c r.x = wd->rect.x + (wd->rect.cols - r.cols) / 2; r 110 src/viewer/search.c widget_set_size_rect (lw, &r); r 41 tests/lib/search/regex_replace_esc_seq.c #define test_helper_handle_esc_seq( pos, r, skip, flag ) \ r 45 tests/lib/search/regex_replace_esc_seq.c mc_search_regex__replace_handle_esc_seq( replace_str, pos, &skip_len, &ret ), r,\ r 88 tests/lib/widget/group_init_destroy.c WRect r; r 91 tests/lib/widget/group_init_destroy.c rect_init (&r, 0, 0, 20, 20); r 92 tests/lib/widget/group_init_destroy.c group_init (g, &r, group_callback, NULL); r 95 tests/lib/widget/group_init_destroy.c rect_init (&r, 0, 0, 10, 10); r 96 tests/lib/widget/group_init_destroy.c group_init (g0, &r, group_callback, NULL); r 100 tests/lib/widget/group_init_destroy.c rect_init (&r, 0, 0, 5, 5); r 101 tests/lib/widget/group_init_destroy.c widget_init (w0, &r, widget_callback, NULL); r 105 tests/lib/widget/group_init_destroy.c rect_init (&r, 5, 5, 5, 5); r 106 tests/lib/widget/group_init_destroy.c widget_init (w0, &r, widget_callback, NULL); r 110 tests/lib/widget/group_init_destroy.c rect_init (&r, 10, 10, 10, 10); r 111 tests/lib/widget/group_init_destroy.c group_init (g0, &r, group_callback, NULL); r 115 tests/lib/widget/group_init_destroy.c rect_init (&r, 10, 10, 5, 5); r 116 tests/lib/widget/group_init_destroy.c widget_init (w0, &r, widget_callback, NULL); r 120 tests/lib/widget/group_init_destroy.c rect_init (&r, 15, 15, 5, 5); r 121 tests/lib/widget/group_init_destroy.c widget_init (w0, &r, widget_callback, NULL); r 125 tests/lib/widget/group_init_destroy.c rect_init (&r, 5, 5, 10, 10); r 126 tests/lib/widget/group_init_destroy.c widget_init (w0, &r, widget_callback, NULL); r 44 tests/lib/widget/widget_find_by_id.c WRect r; r 47 tests/lib/widget/widget_find_by_id.c rect_init (&r, 0, 0, 20, 20); r 48 tests/lib/widget/widget_find_by_id.c group_init (g, &r, NULL, NULL); /* ID = 0 */ r 51 tests/lib/widget/widget_find_by_id.c rect_init (&r, 0, 0, 10, 10); r 52 tests/lib/widget/widget_find_by_id.c group_init (g0, &r, NULL, NULL); /* ID = 1 */ r 56 tests/lib/widget/widget_find_by_id.c rect_init (&r, 0, 0, 5, 5); r 57 tests/lib/widget/widget_find_by_id.c widget_init (w0, &r, widget_default_callback, NULL); /* ID = 2 */ r 61 tests/lib/widget/widget_find_by_id.c rect_init (&r, 5, 5, 5, 5); r 62 tests/lib/widget/widget_find_by_id.c widget_init (w0, &r, widget_default_callback, NULL); /* ID = 3 */ r 66 tests/lib/widget/widget_find_by_id.c rect_init (&r, 10, 10, 10, 10); r 67 tests/lib/widget/widget_find_by_id.c group_init (g0, &r, NULL, NULL); /* ID = 4 */ r 71 tests/lib/widget/widget_find_by_id.c rect_init (&r, 10, 10, 5, 5); r 72 tests/lib/widget/widget_find_by_id.c widget_init (w0, &r, widget_default_callback, NULL); /* ID = 5 */ r 76 tests/lib/widget/widget_find_by_id.c rect_init (&r, 15, 15, 5, 5); r 77 tests/lib/widget/widget_find_by_id.c widget_init (w0, &r, widget_default_callback, NULL); /* ID = 6 */ r 81 tests/lib/widget/widget_find_by_id.c rect_init (&r, 5, 5, 10, 10); r 82 tests/lib/widget/widget_find_by_id.c widget_init (w0, &r, widget_default_callback, NULL); /* ID = 7 */ r 42 tests/lib/widget/widget_make_global_local.c WRect r; r 48 tests/lib/widget/widget_make_global_local.c rect_init (&r, 20, 20, 40, 40); r 49 tests/lib/widget/widget_make_global_local.c group_init (g0, &r, NULL, NULL); r 53 tests/lib/widget/widget_make_global_local.c rect_init (&r, 1, 1, 5, 5); r 54 tests/lib/widget/widget_make_global_local.c widget_init (w0, &r, widget_default_callback, NULL); r 59 tests/lib/widget/widget_make_global_local.c rect_init (&r, 5, 5, 30, 30); r 60 tests/lib/widget/widget_make_global_local.c group_init (g1, &r, NULL, NULL); r 64 tests/lib/widget/widget_make_global_local.c rect_init (&r, 5, 5, 10, 10); r 65 tests/lib/widget/widget_make_global_local.c widget_init (w1, &r, widget_default_callback, NULL); r 70 tests/lib/widget/widget_make_global_local.c rect_init (&r, 15, 15, 20, 20); r 71 tests/lib/widget/widget_make_global_local.c group_init (g2, &r, NULL, NULL); r 76 tests/lib/widget/widget_make_global_local.c rect_init (&r, 15, 15, 5, 5); r 77 tests/lib/widget/widget_make_global_local.c widget_init (w2, &r, widget_default_callback, NULL); r 154 tests/src/editor/edit_complete_word_cmd.c WRect r; r 174 tests/src/editor/edit_complete_word_cmd.c rect_init (&r, 0, 0, 24, 80); r 177 tests/src/editor/edit_complete_word_cmd.c test_edit = edit_init (NULL, &r, &arg);