• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcl-102/tk84/tk/generic/

Lines Matching +defs:first +defs:error

393 			    int first, int last));
415 int first, int last));
419 int first, int last, int select));
448 int first, int last, int offset));
740 int first, last;
748 result = GetListboxIndex(interp, listPtr, objv[2], 0, &first);
757 if (first < listPtr->nElements) {
760 * first index as the last index
769 last = first;
774 result = ListboxDeleteSubCmd(listPtr, first, last);
782 int first, last;
790 result = GetListboxIndex(interp, listPtr, objv[2], 0, &first);
794 last = first;
801 if (first >= listPtr->nElements) {
808 if (first < 0) {
809 first = 0;
811 if (first > last) {
824 Tcl_SetObjResult(interp, elemPtrs[first]);
826 Tcl_SetListObj(Tcl_GetObjResult(interp), (last - first + 1),
827 &(elemPtrs[first]));
1163 int selCmdIndex, first, last;
1169 result = GetListboxIndex(interp, listPtr, objv[3], 0, &first);
1173 last = first;
1201 if (first >= listPtr->nElements) {
1202 first = listPtr->nElements - 1;
1204 if (first < 0) {
1205 first = 0;
1207 listPtr->selectAnchor = first;
1212 result = ListboxSelect(listPtr, first, last, 0);
1222 (char *)first) != NULL)));
1227 result = ListboxSelect(listPtr, first, last, 1);
1508 * command is first called. It cleans up the OptionTables structure
1541 * returned, then the interp's result contains an error message.
1553 Tcl_Interp *interp; /* Used for error reporting. */
1563 int oldExport, error;
1572 for (error = 0; error <= 1; error++) {
1573 if (!error) {
1668 if (!error) {
1675 if (error) {
1697 * returned, then the interp's result contains an error message.
1709 Tcl_Interp *interp; /* Used for error reporting. */
1976 * first or last seleted item.
2302 * the first index */
2321 * This may error if listvar points to a var in a deleted namespace, but
2384 ListboxDeleteSubCmd(listPtr, first, last)
2386 int first; /* Index of first element to delete. */
2403 if (first < 0) {
2404 first = 0;
2409 count = last + 1 - first;
2422 for (i = first; i <= last; i++) {
2463 newListObj, first, count, 0, NULL);
2470 * This may error if listvar points to a var in a deleted namespace, but
2492 if (first <= listPtr->selectAnchor) {
2494 if (listPtr->selectAnchor < first) {
2495 listPtr->selectAnchor = first;
2498 if (first <= listPtr->topIndex) {
2500 if (listPtr->topIndex < first) {
2501 listPtr->topIndex = first;
2512 } else if (listPtr->active >= first) {
2513 listPtr->active = first;
2524 EventuallyRedrawRange(listPtr, first, listPtr->nElements-1);
2650 * or an error.
2655 * string. Otherwise an error message is left in the interp's result.
2665 Tcl_Interp *interp; /* For error messages. */
2739 /* Everything failed, nothing matched. Throw up an error message */
2964 * All of the elements in the range between first and last are
2974 ListboxSelect(listPtr, first, last, select)
2976 int first; /* Index of first element to
2987 if (last < first) {
2988 i = first;
2989 first = last;
2992 if ((last < 0) || (first >= listPtr->nElements)) {
2995 if (first < 0) {
2996 first = 0;
3009 for (i = first; i <= last; i++) {
3033 EventuallyRedrawRange(listPtr, first, last);
3070 int offset; /* Offset within selection of first
3185 EventuallyRedrawRange(listPtr, first, last)
3187 int first; /* Index of first element in list
3191 * be less than first;
3231 double first, last;
3239 first = 0.0;
3242 first = listPtr->topIndex/((double) listPtr->nElements);
3249 sprintf(string, " %g %g", first, last);
3295 double first, last;
3304 first = 0;
3307 first = listPtr->xOffset/((double) listPtr->maxWidth);
3314 sprintf(string, " %g %g", first, last);
3381 * always be a valid list -- and return an error message.
3464 MigrateHashEntries(table, first, last, offset)
3466 int first;
3481 for (i = last; i >= first; i--) {
3491 for (i = first; i <= last; i++) {