Feature #1903
openconvert c++ -> c
0%
Description
OsmoPCU is the only Osmocom project in c++ (for historical reasons). There's unfinished efforts converting the codebase to C (jolly/outdated_c branch). Would be nice to follow-up and finish those efforts - it would simplify code transfer and re-use.
Note: it doesn't have to be converted all at once - some files can be converted trivially while others might require heavier rewrite.
Updated by laforge almost 7 years ago
- Priority changed from Normal to Low
I'm not entirely sure if this is a useful way to spend our time.
Updated by fixeria about 4 years ago
OsmoPCU is the only Osmocom project in c++ (for historical reasons).
Well, there is also OsmoTRX.
There's unfinished efforts converting the codebase to C
What would we benefit from that? Yes, C++ is much more complicated, but why not to keep it as it is?
it doesn't have to be converted all at once - some files can be converted trivially while others might require heavier rewrite.
It's already a heavy mix of C and C++. Clang gives me 100500 errors complaining that classes are mixed with structs...
And... do we really use C++ specific features other than classes in there? Smart / unique pointers, callbacks? No.