Lines Matching defs:sourcePtr
116 TclEventSource *sourcePtr;
118 sourcePtr = (TclEventSource *) ckalloc(sizeof(TclEventSource));
119 sourcePtr->setupProc = setupProc;
120 sourcePtr->checkProc = checkProc;
121 sourcePtr->clientData = clientData;
122 sourcePtr->nextPtr = tclFirstEventSourcePtr;
123 tclFirstEventSourcePtr = sourcePtr;
155 TclEventSource *sourcePtr, *prevPtr;
157 for (sourcePtr = tclFirstEventSourcePtr, prevPtr = NULL;
158 sourcePtr != NULL;
159 prevPtr = sourcePtr, sourcePtr = sourcePtr->nextPtr) {
160 if ((sourcePtr->setupProc != setupProc)
161 || (sourcePtr->checkProc != checkProc)
162 || (sourcePtr->clientData != clientData)) {
166 tclFirstEventSourcePtr = sourcePtr->nextPtr;
168 prevPtr->nextPtr = sourcePtr->nextPtr;
170 ckfree((char *) sourcePtr);
472 TclEventSource *sourcePtr;
533 for (sourcePtr = tclFirstEventSourcePtr; sourcePtr != NULL;
534 sourcePtr = sourcePtr->nextPtr) {
535 (*sourcePtr->setupProc)(sourcePtr->clientData, flags);
568 for (sourcePtr = tclFirstEventSourcePtr; sourcePtr != NULL;
569 sourcePtr = sourcePtr->nextPtr) {
570 (*sourcePtr->checkProc)(sourcePtr->clientData, flags);