Lines Matching refs:theSpace
151 void GPTDataCurses::UnlinkSpace(Space *theSpace) { in UnlinkSpace() argument
152 if (theSpace != NULL) { in UnlinkSpace()
153 if (theSpace->prevSpace != NULL) in UnlinkSpace()
154 theSpace->prevSpace->nextSpace = theSpace->nextSpace; in UnlinkSpace()
155 if (theSpace->nextSpace != NULL) in UnlinkSpace()
156 theSpace->nextSpace->prevSpace = theSpace->prevSpace; in UnlinkSpace()
157 if (theSpace == firstSpace) in UnlinkSpace()
158 firstSpace = theSpace->nextSpace; in UnlinkSpace()
159 if (theSpace == lastSpace) in UnlinkSpace()
160 lastSpace = theSpace->prevSpace; in UnlinkSpace()
161 theSpace->nextSpace = NULL; in UnlinkSpace()
162 theSpace->prevSpace = NULL; in UnlinkSpace()
168 void GPTDataCurses::LinkToEnd(Space *theSpace) { in LinkToEnd() argument
170 firstSpace = lastSpace = theSpace; in LinkToEnd()
171 theSpace->nextSpace = NULL; in LinkToEnd()
172 theSpace->prevSpace = NULL; in LinkToEnd()
174 theSpace->prevSpace = lastSpace; in LinkToEnd()
175 theSpace->nextSpace = NULL; in LinkToEnd()
176 lastSpace->nextSpace = theSpace; in LinkToEnd()
177 lastSpace = theSpace; in LinkToEnd()