mirror of
https://github.com/cc65/cc65.git
synced 2024-10-04 03:56:13 +00:00
Small optimization for shorter code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5681 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
ed7db04ca5
commit
95413d0350
@ -38,9 +38,6 @@ struct dirent* __fastcall__ readdir (register DIR* dir)
|
|||||||
goto exitpoint;
|
goto exitpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust the directory offset */
|
|
||||||
dir->off += 4;
|
|
||||||
|
|
||||||
/* Read the next file entry into the buffer */
|
/* Read the next file entry into the buffer */
|
||||||
for (count = 0, b = buffer; count < sizeof (buffer); ++b) {
|
for (count = 0, b = buffer; count < sizeof (buffer); ++b) {
|
||||||
if (!_dirread1 (dir, b)) {
|
if (!_dirread1 (dir, b)) {
|
||||||
@ -52,8 +49,8 @@ struct dirent* __fastcall__ readdir (register DIR* dir)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Bump the directory offset */
|
/* Bump the directory offset and include the bytes for line-link and size */
|
||||||
dir->off += count;
|
dir->off += count + 4;
|
||||||
|
|
||||||
/* End of directory is reached if the buffer contains "blocks free". It is
|
/* End of directory is reached if the buffer contains "blocks free". It is
|
||||||
* sufficient here to check for the leading 'b'. buffer will contain at
|
* sufficient here to check for the leading 'b'. buffer will contain at
|
||||||
|
Loading…
Reference in New Issue
Block a user