luvit/luvit — pull request #352 by morgabra (2012-10-16 04:54:38+00:00)
Title: RFC: Add fs stat macros windows

I know nothing of windows.

Anyway, the fs.stat struct for windows was missing some valuable stuff, like is_directory and is_file. We can figure that out in windows, but the POSIX macros S_IS* don't exist in window's sys/stat.h for some reason.

This totally works, but I don't know if there are any issues with different versions of windows or really how to figure that out. I guess you could just be really defensive with the #defines.

Good idea to keep going?