/* Extracts a block node from the linked list with block nodes.  */
static tBlockNode * TbxMemPoolBlockListExtract(tBlockList *listPtr)
/* Extracts a block node from the linked list with block nodes.  */
static tBlockNode * TbxMemPoolBlockListExtract(tBlockList *listPtr)
{
  tBlockNode * result = NULL;
  TBX_ASSERT(listPtr != NULL);
  if (listPtr != NULL)
  {
    if (*listPtr != NULL)
    {
      result = *listPtr;
      if ((*listPtr)->nextNodePtr == NULL)
      {
        *listPtr = NULL;
      }
      else
      {
        *listPtr = result->nextNodePtr;
      }
    }
  }
  return result;
}