浏览代码

[0.0.1] First Official Release of minirent

rexim 4 年之前
父节点
当前提交
afd6d070f0
共有 1 个文件被更改,包括 13 次插入1 次删除
  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
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // 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_
 #define MINIRENT_H_
@@ -83,7 +95,7 @@ struct dirent *readdir(DIR *dirp)
     } else {
         if(!FindNextFile(dirp->hFind, &dirp->data)) {
             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
                 errno = ENOSYS;
             }