Navigation Menu

Skip to content

Commit

Permalink
hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Oct 25, 2017
0 parents commit 1efecc8
Show file tree
Hide file tree
Showing 4 changed files with 827 additions and 0 deletions.
10 changes: 10 additions & 0 deletions LICENSE.md
@@ -0,0 +1,10 @@
The MIT License
===============

Copyright 2017 云风/Cloud Wu cloudwu@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 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.
9 changes: 9 additions & 0 deletions Makefile
@@ -0,0 +1,9 @@
LUAINC = -I/usr/local/include
LUALIB = -L/usr/local/bin -llua53
CFLAGS = -O2 -Wall

winfile.dll : winfile.c
gcc --shared $(CFLAGS) $(LUAINC) -o $@ $^ $(LUALIB) -lshell32

clean :
rm winfile.dll
21 changes: 21 additions & 0 deletions README.md
@@ -0,0 +1,21 @@
Support UTF-8 filename in Windows
======

This lua library is for windows (mingw) only . It's similar to [lfs](https://keplerproject.github.io/luafilesystem) but support utf-8 filename.

* lfs.dir ==> winfile.dir
* lfs.currentdir ==> winfile.currentdir
* lfs.chdir ==> winfile.chdir
* lfs.touch ==> winfile.touch
* lfs.mkdir ==> winfile.mkdir
* lfs.rmdir ==> winfile.rmdir
* lfs.attributes ==> winfile.attributes
* os.remove ==> winfile.remove
* os.rename ==> winfile.rename
* os.execute ==> winfile.execute
* os.getenv ==> winfile.getenv
* loadfile ==> winfile.loadfile
* dofile ==> winfile.dofile
* io.open ==> winfile.open
* winfile.shortname : Get the shorname of the path.
* winfile.personaldir : Get My Document dir.

0 comments on commit 1efecc8

Please sign in to comment.