Commit Graph
12 Commits
Author SHA1 Message Date
Rohan Singh 9f014948fa chore: remove Debug and Release intermediate directories from gitignore 2015-11-26 00:56:58 +00:00
Rohan Singh 0007dd2d6f fix: always include fcntl.h, rename FileReqData, separate allocations, align MSVC output paths with docs 2015-11-26 00:47:13 +00:00
Rohan Singh e25316c263 fix: cast uv_fs_t::data to FileReqData before extracting fiber in handleRequestError 2015-11-19 04:23:48 +00:00
Rohan Singh 7409ad7b56 feat: store buffer info in uv_fs_t::data to remove dependency on private libuv field
Add a FileReqData struct that holds both the fiber reference and the uv_buf_t buffer, storing it in the public uv_fs_t::data field instead of relying on the private libuv fs.info.bufs field. This change modifies createRequest to allocate extra memory for FileReqData alongside the uv_fs_t struct, updates freeRequest to extract the fiber from the new struct, and adjusts fileReadBytesCallback to retrieve the buffer from FileReqData rather than the deprecated internal field.
2015-11-19 03:50:30 +00:00
Rohan Singh 0bdb31c42a chore: remove timer.h from wren exe and add wren.h to wren_lib project 2015-11-19 03:36:40 +00:00
Rohan Singh 67ceabaf75 feat: add MSVC 2013 project files and fix io.c for Windows build
Add Visual Studio 2013 solution and project files under util/msvc2013/ for both wren CLI and wren_lib static library, including proper source file filters and include paths. Update .gitignore to allow the new project directories while still ignoring Debug/Release outputs. Fix io.c to include <fcntl.h> on _WIN32 for O_RDONLY definition, replace S_IRUSR with 0 for cross-platform uv_fs_open compatibility, and correct uv_buf_t access to use request->fs.info.bufs for libuv API changes. Remove references to wren_io.c and wren_meta.c from the library project, replacing them with wren_opt_meta.c and wren_opt_random.c from the new optional source directory.
2015-11-18 02:54:37 +00:00
Rohan Singh 388334e871 fix: replace shutil.rmtree with custom remove_dir for Windows compatibility
The previous implementation used shutil.rmtree with a custom error handler to
handle read-only files on Windows, but this approach was unreliable. The new
remove_dir function uses the Windows 'rd' command for directory removal on
Windows systems, which handles read-only files correctly, while falling back
to shutil.rmtree on other platforms.
2015-08-16 13:32:38 +00:00
Rohan Singh b89f0040b2 fix: include null terminator in strncpy length for timerGetSource 2015-08-16 12:59:51 +00:00
Rohan Singh fb79617c95 fix: properly dispose libuv timers via uv_close with dedicated callback 2015-08-13 05:54:30 +00:00
Rohan Singh be7a76a18f fix: ensure null terminator is appended to string copy in timerGetSource
The timerGetSource function allocates a buffer and copies the source string using strncpy, which does not guarantee null termination when the source length equals the buffer size. This change explicitly sets the final character to '\0' to prevent potential buffer over-reads or undefined behavior when the returned string is used by callers.
2015-08-13 05:50:21 +00:00
Rohan Singh 7269ded75c build: add libuv library path and timer module to MSVC project files
Add libuv release library directory to LibraryPath for both Debug and Win32 configurations in wren.vcxproj. Include timer.c and timer.h source files in the project filters. Extend AdditionalIncludeDirectories with cli, module, and libuv include paths. Implement rmtree_onerror handler for permission-safe directory cleanup in libuv.py, and enable Windows libuv build via vcbuild.bat.
2015-08-13 05:39:34 +00:00
Rohan Singh d5056d3ef8 fix: update relative links to absolute URLs in README for getting-started and contributing 2015-08-13 02:40:55 +00:00