Browse Source

Merge pull request #1 from tsoding/0.0.1

[0.0.1] First Official Release of minirent
Alexey Kutepov 4 years ago
parent
commit
c08ac78183
1 changed files with 13 additions and 1 deletions
  1. 13 1
      minirent.h

+ 13 - 1
minirent.h

@@ -18,6 +18,18 @@
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// ============================================================
+//
+// minirent — 0.0.1 — A subset of dirent interface for Windows.
+//
+// https://github.com/tsoding/minirent
+//
+// ============================================================
+//
+// ChangeLog (https://semver.org/ is implied)
+//
+//    0.0.1 First Official Release
 
 
 #ifndef MINIRENT_H_
 #ifndef MINIRENT_H_
 #define MINIRENT_H_
 #define MINIRENT_H_
@@ -83,7 +95,7 @@ struct dirent *readdir(DIR *dirp)
     } else {
     } else {
         if(!FindNextFile(dirp->hFind, &dirp->data)) {
         if(!FindNextFile(dirp->hFind, &dirp->data)) {
             if (GetLastError() != ERROR_NO_MORE_FILES) {
             if (GetLastError() != ERROR_NO_MORE_FILES) {
-                // TODO: readdir should set errno accordingly on FindFirstFile fail
+                // TODO: readdir should set errno accordingly on FindNextFile fail
                 // https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror
                 // https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror
                 errno = ENOSYS;
                 errno = ENOSYS;
             }
             }