Re: [Hamlib-developer] 4.6 released
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Greg T. <gd...@le...> - 2024-12-26 13:40:01
|
Nate Bargmann <n0...@n0...> writes: > I released 4.6 this morning. I figured I better get this out as a > Christmas present for all involved. Thanks to Mike and all of the > contributors for making this release a reality. It doesn't happen > without you. Merry Christmas! I updated hamlib in pkgsrc, and ran into only one easy-to-fix problem, use of stdargs.h-defined macros without an #include. https://github.com/Hamlib/Hamlib/issues/1644 I then moved on to rebuilding the depending programs I had installed, and ran into the rigcaps const issue in xlog, fldigi (an older release), and freedv (not necessasrily up to date). I see * rig_caps is no longer constant -- this may break some 3rd party relying on the "const" declaration. Here's an example of how to handle compatibility. #ifdef RIGCAPS_NOT_CONST static int add_to_list(struct rig_caps* rc, void*) #else static int add_to_list(const struct rig_caps* rc, void*) #endif but I don't understand what's going on and why. It makes sense that when supplying a function to an iterator, that the function is not allowed to modify. And I don't see why passing a non-const to a function that promises not to modify is trouble. |