George Baltz N3GB
f5eb8f19e9
Add utility routine to release all allocated buffers, including rig itself.
...
One stop shopping for all your rig data cleanup needs.
2025-06-03 12:07:27 -04:00
George Baltz N3GB
1fca93a5a2
Deprecate rig_cache definition in rig.h
...
Add new rig_cache definition in cache.h
2025-06-03 12:07:27 -04:00
George Baltz N3GB
6f8bf81514
Allocate separate storage for cache buffer
...
Add address to rig_struct, change CACHE() macro to use it.
Free it when done.
Issue #1420
2025-06-03 12:07:27 -04:00
George Baltz N3GB
7d28822273
Add '#include "cache.h"' to all files that reference cache structure.
...
Issue #1420
2025-06-03 12:07:27 -04:00
George Baltz N3GB
4d322337c1
Update NEWS
2025-06-01 10:55:32 -04:00
George Baltz N3GB
3bc9e5261b
Still more functions made static.
2025-05-31 14:17:10 -04:00
George Baltz N3GB
6b5c5b48f9
Don't try to process short spectrum frames.
2025-05-31 14:10:05 -04:00
George Baltz N3GB
7fa0c863f2
Don't start async_data_handler until rig is fully opened.
...
Let the <model>_rig_open() finish its setup before trying to read status.
2025-05-30 12:39:29 -04:00
George Baltz N3GB
63e1bb4c00
Pass spectrum data through to callback
...
Fixes issue #1734
2025-05-30 11:55:29 -04:00
George Baltz N3GB
cccee9b791
Still more cppcheck complaints dealt with.
2025-05-29 05:41:39 -04:00
George Baltz N3GB
b74bd31b40
Quiet a few more cppcheck gripes.
...
Making these functions static also reduces the possibilities of
collisions with app names and may shorten load time.
And I can finally make meter_type1 and meter_type2 const, like I
tried to do in the beginning.
2025-05-29 05:41:39 -04:00
George Baltz N3GB
00d285576c
Fix backward frequency tests in ft857.c
...
Found by cppcheck.sh
2025-05-29 05:41:39 -04:00
George Baltz N3GB
0a6d07a1ad
Make a few more functions static
...
All rig-specific overrides should only be used in one file. Keep the
definitions local.
2025-05-29 05:41:39 -04:00
George Baltz N3GB
9f43659831
Fix gain controls in simts890.c
...
And a couple of other hiccups found by cppcheck
2025-05-29 05:41:39 -04:00
George Baltz N3GB
a4b6ef4fd7
Fix out of sequence merge for issue #1634
...
Still undetermined if fix is needed for TS-590SG
2025-05-29 05:41:39 -04:00
Daniele Forsi IU5HKX
9fdf8f201c
Fix list of dependecies of aclocal.m4
...
Adds missing ax_lib_readline.m4 and ax_lua.m4 to the list of MACROS.
Also sorts the list.
2025-05-27 09:01:44 +02:00
Nate Bargmann
717d720a36
Merge GitHub PR #1744
2025-05-26 11:09:36 -05:00
Daniele Forsi IU5HKX
43017b38f0
Fix typo
...
Add closing tag for example text.
2025-05-26 08:31:39 +02:00
Daniele Forsi IU5HKX
3034631b2f
Fix typo
2025-05-26 08:31:39 +02:00
Nate Bargmann
f459eea516
Update NEWS for 4.6.3 release
2025-05-25 20:46:16 -05:00
George Baltz N3GB
b5df48d8d9
Add locking around get/set levels
2025-05-24 20:20:10 -04:00
Mooneer Salem
0fd094f476
Fix issue where Hamlib attempts to use memory returned by setlocale() after being freed.
2025-05-22 21:18:38 -05:00
Nate Bargmann
9570d9963b
Merge GitHub PR #1742
2025-05-22 18:17:59 -05:00
Nate Bargmann
9b177cd8b3
Merge GitHub PR #1739 .
2025-05-22 17:23:35 -05:00
Nate Bargmann
91a4d914d9
Merge branch 'fix/usage-texts' of github.com:dforsi/Hamlib into dforsi-fix/usage-texts
...
From GitHub PR #1735 .
2025-05-22 17:11:55 -05:00
Nate Bargmann
73607aeb54
Merge branch 'dforsi-fix/ac_arg_enable'
...
Reference GitHub PR #1731 .
2025-05-22 16:56:01 -05:00
Daniele Forsi IU5HKX
dbe89b2092
Remove duplicated comment
2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX
87311035ea
Also mention amplifiers
2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX
4109d606b5
Fix typos
2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX
84376c4561
Use the variable with the version number in the example path
2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX
5fe81cdef4
Fix compilation errors and warnings and link failure
...
Compile-tested with commit 8ea3f0e (tag: 3.4.10)
from https://github.com/osmocom/libusrp
Fixes:
usrp_impl.cc:33:10: fatal error: usrp_standard.h: No such file or directory
usrp_impl.cc:49:63: error: expected '(' before 'malloc'
usrp_impl.cc:49:100: error: expected ')' before ';' token
usrp_impl.cc:72:39: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:86:39: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:104:39: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:129:45: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:151:45: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:169:45: error: invalid 'static_cast' from type 'rig_state*' to type 'usrp_priv_data*'
usrp_impl.cc:114:37: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
usrp_impl.cc:139:38: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
/usr/bin/ld: ../src/.libs/libhamlib.so: undefined reference to `usrp_caps'
2025-05-17 23:00:08 +02:00
Daniele Forsi IU5HKX
94bf1d717a
Fix failure of ./configure --with-tcl-binding --with-xml-support
...
If pkg-config has found tcl.pc, then tclConfig.sh is not executed
and $TCL_INCLUDE_SPEC is empty so the test for tcl.h fails.
This patch moves the test inside the "else" case where the variable
is always defined.
The is a bug exposed by the fact that --with-xml-support redefines
the macro PKG_CHECK_MODULES.
Fix verified moving aside /usr/lib/x86_64-linux-gnu/pkgconfig/tcl.pc
Fixes:
configure: error: Unable to find Tcl headers
2025-05-17 15:51:57 +02:00
Daniele Forsi IU5HKX
435a354ee0
Fix --with-indi[=no] being considered =yes
2025-05-17 10:57:23 +02:00
Daniele Forsi IU5HKX
b03dea99b5
Allow to give the command lines options --list or --version
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX
55cae893f0
Fix definition of -B/--mapa2b command line option
...
It doesn't accept an argument.
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX
e34ae180a2
Remove unused definition of -z command line option
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX
dc3a71da1b
Document existing option to read commands from stdin
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX
57e5dba438
Make usage texts more similar
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX
ce95b034c6
Fix --with-libusb[=yes] being considered =no
2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX
9aee8f8343
Fix --with-readline[=yes] being considered =no
2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX
5370bbd32e
Fix --enable-html-matrix[=yes] being considered =no
2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX
50462e6564
Fix --enable-parallel[=yes] being considered =no
2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX
daa5c83a82
Fix --enable-winradio[=yes] being considered =no
2025-05-13 21:04:44 +02:00
Daniele Forsi IU5HKX
ad824fa85e
Remove duplicated assignment of compilation flags
...
Fixes a double "-g -O2 -g -O2" in compiler invocation.
2025-05-09 22:39:17 +02:00
Daniele Forsi IU5HKX
c7ba4f5384
Fix --without-cxx-binding being ignored
...
Do not build the C++ bindings if the configure script was called
with the option --without-cxx-binding.
2025-05-09 22:37:35 +02:00
Daniele Forsi IU5HKX
da60d2d383
Replace non-portable make rule with one that is also easier to understand
...
Fixes:
warning: '%'-style pattern rules are a GNU make extension
2025-05-09 21:08:42 +02:00
Daniele Forsi IU5HKX
de01821c51
Fix typo
2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX
1e7b1a628e
Fix error return values
...
All constant error values RIG_E* should be negated when returned.
Found with:
grep -nrE RETURNFUNC.?.RIG_E.+ --include=*.{c,h} | grep -v \-
2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX
56eea198be
Remove unneeded test script testcpp.sh
...
Library directory ../dummy/.libs doesn't exist anymore and ../c++/.libs
(a.k.a. .libs) is already used by the libtool wrapper script that runs
the testcpp program.
2025-05-08 23:51:47 +02:00
Daniele Forsi IU5HKX
23a54a7bdf
Remove unneeded dependency
2025-05-08 23:51:47 +02:00