Ignore:
Timestamp:
Mar 16, 2008, 12:52:51 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Fix spelling errors all over the place.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/linked.cpp

    r56 r112  
    1616#include "linked.hpp"
    1717
    18 // unlink take a node out of the linked list, but does not dispose of the memory
     18//
     19// take a node out of the linked list, but do not dispose of the memory
     20//
    1921int linked_list::unlink(linked_node *p)
    2022{
     
    4951
    5052
    51 // this function clears all the nodes in a linked list and dispose of the
    52 // memory for each one by calling is't destructor
     53//
     54// clear all the nodes in a linked list and dispose of the
     55// memory for each one by calling its destructor
     56//
    5357linked_list::~linked_list()
    5458{
     
    6670}
    6771
    68 // this function returns the node number a node is in a linked list
    69 // it start at the node and goes backwards until it reaches the first
    70 // node
     72//
     73// return the index of a given node in a linked list, by starting at the
     74// node and parsing backwards
     75//
    7176int linked_list::node_number(linked_node *p)
    7277{
     
    139144        q->last()->set_next(p);
    140145        q->set_last(p);
    141         q=fn->last();         // set q to the last node so we exit the loop
     146        q=fn->last();         // set q to the last node so we finish the loop
    142147      }
    143148    }
Note: See TracChangeset for help on using the changeset viewer.