Lines Matching defs:index
156 static int window[4]; /*index into backend options for x,y,l,t*/
791 The number in brackets (I), if present, determines the index of the
793 last index used plus 1 is used. The first index value used is 0
811 int index = -1, prev_index = 0;
821 /* read index */
822 index = strtol (++str, &end, 10);
832 ++index;
834 if (index < 0 || index >= (int) vector_length)
837 "%s: option --%s: index %d out of range [0..%ld]\n",
838 prog_name, opt->name, index, (long) vector_length - 1);
856 vector[index] = value;
864 slope = ((double) value - v) / (index - prev_index);
866 for (i = prev_index + 1; i < index; ++i)
873 prev_index = index;
2084 int ch, i, index, all_options_len;
2120 &index)) != EOF)
2373 %%m (model), %%t (type), %%i (index number), and\n\
2531 &index)) != EOF)
2569 process_backend_option (device, option_number[index], optarg);
2584 for (index = 0; index < 2; ++index)
2585 if (window[index])
2588 SANE_Word val = window_val[index];
2590 if (window[index + 2])
2592 sane_control_option (device, window[index + 2],
2596 set_option (device, window[index], &val);