kokke / tiny-regex-c

Small portable regex in C
The Unlicense
1.23k stars 175 forks source link

update comment #75

Open krishna116 opened 2 years ago

krishna116 commented 2 years ago

Hi kokke, I have port this tiny-regex-c library to UEFI shell library and implement the regex tool using this library, so I'd like to add a link in this readme.md to the UEFI shell version of this tiny-regex-c library, thank you!

kokke commented 2 years ago

Hi @krishna116 and thank you for checking out the library :)

I don't currently link to other forks in the README, so I am not inclined to link to your fork either. Which changes did you make for your UEFI Shell-version?

krishna116 commented 2 years ago

It's no problem.

Which changes did you make for your UEFI Shell-version? The EDK2 doesn't have standard c libraries such as stdio.h and ctype.h, so I used custom defines here:
https://github.com/krishna116/UefiTest/tree/master/KrishnaTestPkg/Application/regex/crt

Nothing need to change tiny-regex-c's code, I just wrap tiny-regex-c's API to UEFI-style-API here: https://github.com/krishna116/UefiTest/blob/master/KrishnaTestPkg/Application/regex/TinyRegexLib.h https://github.com/krishna116/UefiTest/blob/master/KrishnaTestPkg/Application/regex/TinyRegexLib.c

That's all, thanks.