Project

General

Profile

Bug #382 ยป ruby-1.8.7-win32-telldir.patch

Anonymous, 08/01/2008 11:56 AM

View differences:

win32/win32.c (working copy)
1635 1635
long
1636 1636
rb_w32_telldir(DIR *dirp)
1637 1637
{
1638
    long loc = 0; char *p = dirp->curr;
1639

  
1640
    rb_w32_rewinddir(dirp);
1641

  
1642
    while (p != dirp->curr) {
1643
	move_to_next_entry(dirp); loc++;
1644
    }
1645

  
1646
    return loc;
1638
    return dirp->loc;
1647 1639
}
1648 1640

  
1649 1641
//
......
1668 1660
rb_w32_rewinddir(DIR *dirp)
1669 1661
{
1670 1662
    dirp->curr = dirp->start;
1663
    dirp->loc  = 0;
1671 1664
}
1672 1665

  
1673 1666
//