summaryrefslogtreecommitdiff
path: root/driver_rtcm2.c
Commit message (Collapse)AuthorAgeFilesLines
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* More uint to unsigned int.Gary E. Miller2016-08-151-284/+284
| | | | uint is no longer defined in C99. 17 years to figyure this out???
* OS/X build fix for RTCM2 driver.Fred Wright2016-01-211-13/+14
| | | | | | | | | | | | | | | | OSX 10.5, when building for PPC, defines _BIG_ENDIAN as 1, which satisfies the BSD ifdef, but doesn't have the expected value. The result is an "endianness macros are not defined" error. This bug goes back at least as far as 3.14, but I don't think it was ever reported here. The fix is quite simple - moving the Darwin __BYTE_ORDER setup ahead of the BSD __BYTE_ORDER setup so that the Darwin definitions take precedence. This should have no effect on a platform that doesn't define the __DARWIN_xxx macros. The actual fix is from ryandesign@macports.org, though I added a comment line clarifying the reason that the order matters.
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-15/+1
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* More portable equivalent of #pracgma pack, will work with clang.Eric S. Raymond2015-02-201-2/+2
| | | | No code changes. All regression tests pass.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-2/+2
| | | | All regression tests pass.
* Detect endianness on OS X.Greg Troxel2013-11-121-0/+15
| | | | | | | | This commit adds recognizing Darwin-specific endianness defines, and mapping them to the values used on Linux. Tested on OS X 10.7. Signed-off-by: Greg Troxel <gdt@ir.bbn.com> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Fix more build breakage. Partial splint cleanup.Eric S. Raymond2013-11-121-0/+2
|
* Fix endian detection on BSD.Greg Troxel2013-11-101-0/+17
| | | | | | | On BSD, the macro is _BYTE_ORDER, not __BYTE_ORDER. Adapt to the presence of either macro. Error out if the macro is not defined. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* RTCM V2: use scons to determine the location of <endian.h>.Beat Bolli2013-11-101-13/+19
| | | | | | | | | | | | | | | | | | | | | | | | | There are three cases to consider: - The compiler has built-in endianness macros. In this case, endian.h is not needed at all. The predefined symols are called __ORDER_BIG_ENDIAN_, __ORDER_LITTLE_ENDIAN__ and __BYTE_ORDER__. - <endian.h> exists. - <sys/endian.h> exists. This commit covers all three cases at configure time, as Greg Troxel wanted it. Relevant discussion can be found on the GCC mailing list: http://gcc.gnu.org/ml/gcc-help/2007-07/msg00342.html Of course, the optimal solution would get rid of the bit field structures and use bits.h to extract the values from the buffer in an endianess-independent way. Signed-off-by: Beat Bolli <bbolli@ewanet.ch> Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Another whack at in-compiler endianness setup.Eric S. Raymond2013-11-081-3/+4
| | | | All regression tests oass, PPS is live.
* Revert "Use a clever test for big-endianness."Eric S. Raymond2013-11-061-2/+27
| | | | Until I can repair it.
* Use a clever test for big-endianness.Eric S. Raymond2013-11-051-27/+2
|
* Exile a grotty endianness check to the only pace it's used.Eric S. Raymond2013-11-021-2/+30
|
* Documentation and port-issue updates.Eric S. Raymond2012-04-211-4/+7
|
* Minor improvements to RTCM2 doc comments.Eric S. Raymond2012-04-171-1/+1
|
* scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-291-1/+2
|
* Scan-build and splint cleanup. All regression tests pass.Eric S. Raymond2011-03-281-1/+1
|
* Minor splint fixes.Eric S. Raymond2011-03-151-3/+3
|
* Documentation update.Eric S. Raymond2011-03-151-5/+11
|
* Dump contents of of RTCM2.3 type 31 as a JSON object rather than hex words.Eric S. Raymond2011-03-151-0/+156
| | | | | | | | | Fix required in order to check the RTCM2 driver logic against the ASCII dump from Andre Naujoks. Remarkably, the check passes - though it appears that in his dump the constant 40 is added to all GLONASS satellite IDs. doubtless so they won't collide with GPS satellite IDs. The naujoks-ntrip.log test had to be rebuilt. All other regression tests pass.
* rangerr -> prc, rangerate -> rrc in RTCM2Eric S. Raymond2011-03-151-27/+27
| | | | | I was unaware of standard terminology/abbreviations. Fixing this now, before Version 5 API freezes.
* issuedata -> iod in RTCM2Eric S. Raymond2011-03-151-9/+9
| | | | | I was unaware of standard terminology/abbreviations. Fixing this now, before Version 5 API freezes.
* Change a structure name to avoid a future API break.Eric S. Raymond2011-03-141-20/+20
| | | | All regression tests pass.
* Comment typo fix.Eric S. Raymond2011-03-121-1/+1
|
* Implement and document RTCM 2.3 message type 13.Eric S. Raymond2011-02-281-2/+49
|
* Implement and document RTCM2.3 message type 14. All regression tests pass.Eric S. Raymond2011-02-281-1/+27
|
* Inline a header that is only used once. No code changes.Eric S. Raymond2011-02-281-1/+442
|
* The old Sager dump function is gone.Eric S. Raymond2011-02-281-5/+3
|
* Remove all support for RTCM2 Sager dump format.Eric S. Raymond2011-02-231-90/+0
| | | | | | Nothing but one regression tests in GPSD used it; that regression test has been rebuilt. All other tests pass. The rtcm-104.xml page now describes the JSON dump format.
* More header portability audting with a new version of deheader.Eric S. Raymond2010-12-221-3/+0
|
* More header portability auditing by deheader.Eric S. Raymond2010-12-221-1/+2
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-5/+0
|
* Give up on RTCM2 repack support. It's broken, and unlikely ever to be needed.Eric S. Raymond2010-04-251-218/+0
|
* More GNU indent suppression. All regression tests pass.Eric S. Raymond2010-04-141-2/+2
|
* More stupid GNU indent tricks.Eric S. Raymond2010-04-141-1/+1
|
* Scatter GNU indent pragmas to tell it not to do stupid things.Eric S. Raymond2010-04-141-1/+1
| | | | All regression tests pass.
* Some splint annotations got unstuck by the reindentation.Eric S. Raymond2010-04-141-4/+6
|
* Reindent the RTCM drivers. All regression tesrs pass.Eric S. Raymond2010-04-141-176/+188
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-4/+3
|
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-0/+3
|
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+0
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* Fix some whitespace glitches found while experimenting with indent(1).Eric S. Raymond2009-11-171-8/+8
| | | | All regression tests pass.
* Guard some inclusions that splint doesn't like. Eric S. Raymond2009-09-101-0/+2
| | | | No effect on compilation. All regression tests pass.
* Bride of the Splint Cleanup. All regression tests pass.Eric S. Raymond2009-09-101-4/+4
|
* Continuing the splint cleanup.Eric S. Raymond2009-09-101-3/+3
|
* Partial splint cleanup. All regression tests pass.Eric S. Raymond2009-09-091-1/+1
|
* Arrange for double quotes in JSON string fields emitted by the daemon...Eric S. Raymond2009-08-311-127/+0
| | | | ...to be properly backslash-escaped.
* Back out a change that broke regression tests. All tests pass.Eric S. Raymond2009-08-301-1/+1
|
* Make string fields that might contain double quotes safe for JSON output.Eric S. Raymond2009-08-301-1/+1
|