Wykres commitów

20 Commity (16692258a1adab993308620dcf42d67643a39c1c)

Autor SHA1 Wiadomość Data
Michael Black 2fca5f49b8
Remove hl_sleep.h as no longer needed 2019-12-24 15:21:06 -06:00
Nate Bargmann b692fb22ef Formatted tests/ to final coding guidelines 2017-10-06 18:58:42 -05:00
Nate Bargmann d489b8bcb5 Apply formatting to 'tests/' directory
Format per style guide.
2017-08-10 05:46:12 -05:00
Nate Bargmann 6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Nate Bargmann c39b51327b Revise test for MinGW with sleep()
Revise the preprocessor conditional test for MinGW variables.  Tested on
all of my MinGW installations.  The prior test was broken by MinGW 3.0
on Debian Unstable.
2013-09-19 21:59:42 -05:00
Nate Bargmann 1fd85febee MinGW build: Fix sleep() substitution
MinGW does not natively support the POSIX sleep() function so we have
had an override that was a part of the GR_PWIN32 macro and included in
the generated config.h file.  When compiling for Windows on POSIX using
MinGW, Autotools will detect sleep() and set HAVE_SLEEP which prevented
the substitution from being included in the source.  Adding a test for
_WIN32 (set by MinGW's gcc) then caused a warning from src/network.c on
POSIX about winsock2.h needing to be included before windows.h.  As
config.h needed to be included first, the solution to break out the
substitution that includes windows.h into its own file.  This patch
provides that solution and allows the code to compile cleanly on POSIX,
using MinGW on both POSIX and Windows, and on Cygwin.
2013-07-29 12:38:22 -05:00
Nate Bargmann 1229a0a42a Assure NULL terminated strings in tests programs.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 20:36:50 -06:00
Stéphane Fillod, F8CFE 23369a0c25 * abstract 64bit int format type to cope with portability issues.
introduce PRIll (printf format) and SCNll (scanf) in misc.h.
  This needs to have config.h included beforehand.
* do likewise with freq_t type (double) in rig.h
  FREQFMT is deprecated.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1903 7ae35d74-ebe9-4afe-98af-79ac388436b8
2005-01-24 23:04:35 +00:00
Stéphane Fillod, F8CFE 215494cb63 FREQFMT fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1865 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-11-08 22:05:27 +00:00
Stéphane Fillod, F8CFE 8033d100b4 misc
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1064 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-06-17 20:59:51 +00:00
Stéphane Fillod, F8CFE 2fd1486135 added a private data pointer argument to event callbacks
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@977 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-02-27 23:25:42 +00:00
Stéphane Fillod, F8CFE 99915b6c57 misc sscanf format fix
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@786 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-20 22:59:09 +00:00
Stéphane Fillod, F8CFE 170644f6e5 removed useless vfo arg to set_trn/get_trn funcs
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@780 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-20 07:46:13 +00:00
Stéphane Fillod, F8CFE ba1fac643c minor cleanups
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@657 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-09-20 21:21:14 +00:00
Stéphane Fillod, F8CFE bdfe0b969a 'path' field renamed in port_t
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@608 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-07-25 21:59:55 +00:00
Stéphane Fillod, F8CFE c1cb77c643 new automatic backend loading and sparse rig_model scheme
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@529 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 21:17:53 +00:00
Stéphane Fillod, F8CFE da19dd9a47 new port_t design
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@523 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-06-04 17:01:21 +00:00
Stéphane Fillod, F8CFE 799b18dd8b * misc define renamed
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@440 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-03-04 13:06:36 +00:00
Stéphane Fillod, F8CFE 748d949556 * updates since the new API now requires a target VFO to be specified.
Mainly, RIG_VFO_CURR is used, which should ensure the same behaviour
  of the tests programs as before.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@286 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-12-05 22:04:44 +00:00
Stéphane Fillod, F8CFE 38181c9784 Initial release
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@184 7ae35d74-ebe9-4afe-98af-79ac388436b8
2000-10-08 21:20:44 +00:00