Explorar o código

[0.0.1] First Official Release of minirent

rexim %!s(int64=4) %!d(string=hai) anos
pai
achega
afd6d070f0
Modificáronse 1 ficheiros con 13 adicións e 1 borrados
  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;
             }