-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
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.
src/utils/charsets.cpp
Outdated
* 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 | ||
*/ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea, sorry.
2ad501a
to
55ca8db
Compare
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.
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.