Lines Matching defs:stackPtr
114 TkIdStack *stackPtr;
127 stackPtr = dispPtr->idStackPtr;
128 if (stackPtr != NULL) {
129 while (stackPtr->numUsed == 0) {
130 dispPtr->idStackPtr = stackPtr->nextPtr;
131 ckfree((char *) stackPtr);
132 stackPtr = dispPtr->idStackPtr;
133 if (stackPtr == NULL) {
137 stackPtr->numUsed--;
138 return stackPtr->ids[stackPtr->numUsed];
177 TkIdStack *stackPtr;
189 stackPtr = dispPtr->idStackPtr;
190 if ((stackPtr == NULL) || (stackPtr->numUsed >= IDS_PER_STACK)) {
191 stackPtr = (TkIdStack *) ckalloc(sizeof(TkIdStack));
192 stackPtr->numUsed = 0;
193 stackPtr->dispPtr = dispPtr;
194 stackPtr->nextPtr = dispPtr->idStackPtr;
195 dispPtr->idStackPtr = stackPtr;
202 stackPtr->ids[stackPtr->numUsed] = xid;
203 stackPtr->numUsed++;
268 TkIdStack *stackPtr;
276 stackPtr = dispPtr->windowStackPtr;
277 if ((stackPtr == NULL) || (stackPtr->numUsed >= IDS_PER_STACK)) {
278 stackPtr = (TkIdStack *) ckalloc(sizeof(TkIdStack));
279 stackPtr->numUsed = 0;
280 stackPtr->dispPtr = dispPtr;
281 stackPtr->nextPtr = dispPtr->windowStackPtr;
282 dispPtr->windowStackPtr = stackPtr;
289 stackPtr->ids[stackPtr->numUsed] = w;
290 stackPtr->numUsed++;
407 TkIdStack *stackPtr = (TkIdStack *) clientData;
410 lastPtr = stackPtr;
414 lastPtr->nextPtr = stackPtr->dispPtr->idStackPtr;
415 stackPtr->dispPtr->idStackPtr = stackPtr;