Project

General

Profile

Actions

Feature #1903

open

convert c++ -> c

Added by msuraev about 7 years ago. Updated almost 4 years 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.

Actions #1

Updated by laforge over 6 years ago

  • Priority changed from Normal to Low

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

Actions #2

Updated by fixeria almost 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.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)