Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code cleanup about src/dsp_dab/charsets.[cpp|h] #18

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

AlwinEsch
Copy link

This is one of the changes that relates to the Kodi site and is more in line with its style.

The two files “src/dsp_dab/charsets.cpp” and “src/dsp_dab/charsets.h” are revised and taken from the “src/dsp_dab” folder (welle.io). The background is to standardize the auxiliary functions of different process types, as an example the code was taken from welle.io from the code from https://github.com/theori-io/nrsc5, which is currently also in the add-on under "src/ dsp_hd/unicode.c" and "src/dsp_hd/unicode.h".

Since "src/dsp_hd/unicode.c" is currently based on "C", this has not yet been attacked. This will only come into play once the change has been made and runtime tests have been carried out.

This slightly cleans the files to match more the original. There was e.g. some tabs added where then differ from version before and more hard to compare about code changes.
The background is cleanup and the same type of functionality is also located in "src/dsp_hd/unicode.*" (which was even created from this code in the past).
The aim is to combine the general help functions of the different radio types and to correspond to a code style.
Code cleanups will be added after this commit.
@AlwinEsch AlwinEsch requested a review from ksooo April 4, 2024 01:57
* Copyright (C): 2015 Jan van Katwijk ([email protected])
* Name: Lazy Chair Programming
* Note: This charset handling was kindly added by Przemyslaw Wegrzyn all rights acknowledged
*/
Copy link
Author

@AlwinEsch AlwinEsch Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ksooo, can you look here? Not sure how the best style to cleanup and match our style and still refer code good as possible to original. Maybe a better idea?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, sorry.

@AlwinEsch AlwinEsch force-pushed the cleanup branch 4 times, most recently from 2ad501a to 55ca8db Compare April 4, 2024 03:18
This cleans up the two files src/utils/charsets.cpp and src/utils/charsets.h to
correspond to our clang format, and the code is added to a namespace to be
cleaner on the outside, public is the namespace "charsets" in the cpp then
a pseudo namespace for private functions so that it is not known to the outside world.
This changes some small pieces of code to have slightly better performance in some cases.
@ksooo ksooo merged commit 09bd660 into kodi-pvr:Omega Apr 4, 2024
8 checks passed
@AlwinEsch AlwinEsch deleted the cleanup branch April 4, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants