Project

General

Profile

Feature #1903

convert c++ -> c

Added by msuraev about 3 years ago. Updated 13 days ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
01/05/2017
Due date:
% Done:

0%

Spec Reference:

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.

History

#1 Updated by laforge over 2 years ago

  • Priority changed from Normal to Low

I'm not entirely sure if this is a useful way to spend our time.

#2 Updated by fixeria 13 days 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.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)