Lines Matching refs:theSpace
156 void GPTDataCurses::UnlinkSpace(Space *theSpace) {
157 if (theSpace != NULL) {
158 if (theSpace->prevSpace != NULL)
159 theSpace->prevSpace->nextSpace = theSpace->nextSpace;
160 if (theSpace->nextSpace != NULL)
161 theSpace->nextSpace->prevSpace = theSpace->prevSpace;
162 if (theSpace == firstSpace)
163 firstSpace = theSpace->nextSpace;
164 if (theSpace == lastSpace)
165 lastSpace = theSpace->prevSpace;
166 theSpace->nextSpace = NULL;
167 theSpace->prevSpace = NULL;
172 // Link theSpace to the end of the current linked list.
173 void GPTDataCurses::LinkToEnd(Space *theSpace) {
175 firstSpace = lastSpace = theSpace;
176 theSpace->nextSpace = NULL;
177 theSpace->prevSpace = NULL;
179 theSpace->prevSpace = lastSpace;
180 theSpace->nextSpace = NULL;
181 lastSpace->nextSpace = theSpace;
182 lastSpace = theSpace;