larmel / lacc

A simple, self-hosting C compiler
MIT License
872 stars 64 forks source link

strtonum -> stringtonum, to avoid conflicting with the OpenBSD function of the same name #5

Closed ibara closed 6 years ago

ibara commented 6 years ago

Hi --

OpenBSD has had a function named strtonum in its libc since 2004: https://man.openbsd.org/strtonum

The other BSDs have adopted the function as well.

This pull request slightly renames the strtonum in lacc, since otherwise lacc builds and works fine on OpenBSD.

larmel commented 6 years ago

Hi,

Thanks for this fix for OpenBSD, glad it worked without much modification. I just made a small change to the commit message to make it similar to the rest of the history before merging.