nim-lang / c2nim

c2nim is a tool to translate Ansi C code to Nim. The output is human-readable Nim code that is meant to be tweaked by hand before and after the translation process.
MIT License
502 stars 62 forks source link

Allow multiple mangles #264

Closed elcritch closed 1 year ago

elcritch commented 1 year ago

Adds the ability to use multiple mangles on an ident. This makes it easier to modify C codes and a little less surprising when other mangles may conflict.

Since this is a large change, there's a "NoMultiMangle" option to disable it. Originally I put this behind an enable switch, but it seems like this behavior would generally be less confusing for users.