varnamproject / govarnam

Easily type Indic languages on computer and mobile. GoVarnam is a cross-platform transliteration library. Manglish -> Malayalam, Thanglish -> Tamil, Hinglish -> Hindi plus another 10 languages. GoVarnam is a near-Go port of libvarnam
https://varnamproject.com
Other
145 stars 11 forks source link

Prefix all symbols #46

Open agx opened 1 year ago

agx commented 1 year ago

There's some symbols that neither use the vm_, varnam_ or vararray_ prefix: see https://github.com/anoop142

It would be good to namespace those before the next release as we can't drop symbols afterwards and we're polluting the namespace for other libs linked by programs otherwise.

Midterm it would make sense to prefix all symbols with a single prefix (e.g. varnam_ or just v_) and bump the soname once.

subins2000 commented 12 months ago

@agx What is the the best ideal solution for a library, all exported symbols having the same prefix? Or is it fine to have symbols with multiple common prefixes? I was looking at libvarnam's debian packaging attempt and there are a LOT on the list: https://github.com/varnamproject/packaging/blob/master/libvarnam/debian/libvarnam.symbols