DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
445 stars 59 forks source link

implement patch manually without using external software #136

Open stevefan1999-personal opened 1 year ago

stevefan1999-personal commented 1 year ago

This PR attempts to manually do patches without using GNU Patch. Despite the algorithm is quite primitive and had some questionable assumptions, at least it does compile in Windows natively now. The edge case is that I don't know how to determine the correct file to patch -- so I just assumed the a/{filename} and b/{filename} format.

Fixes #88. Since I made this in Windows and I have to compile it by myself. So I can't possibly made this PR possible if there are any errors. No need to test for Windows therefore.