summaryrefslogtreecommitdiff
path: root/hex.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-1/+1
| | | | 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.
* Yet more splint cleanup. All regression tests pass.Eric S. Raymond2009-09-091-2/+2
|
* Don't clobber the destination of gpsd_hexpack; thanks to JoshuaEric S. Raymond2009-05-051-1/+1
| | | | Lamorie for spotting this.
* splint cleanup.Eric S. Raymond2009-03-181-0/+2
|
* Improve error detection from gpsd_hexpack().Eric S. Raymond2009-03-091-1/+1
|
* Make hex_escapes() generally available.Eric S. Raymond2009-01-301-0/+70
|
* Splint cleanup.Eric S. Raymond2009-01-211-1/+1
|
* hushChris Kuethe2009-01-091-1/+1
|
* Experimental code for sending hexified binary over the control channel.Eric S. Raymond2009-01-091-1/+2
|
* Add a wrapper function around gpsd_hexdump to avoid hexdumping buffers...Chris Kuethe2008-12-271-0/+19
| | | | | | | | ...and copying ascii strings around when they're not going to be printed. This saves quite a lot of CPU. I processed a 50MB ubx binary file. With no "-D" options, this saved nearly 2.2M calls to gpsd_hexdump and the processing time for this file went from 84 seconds to 35 seconds.
* don't return NULL when passed a NULL pointer or a zero-length buffer;Chris Kuethe2007-06-041-2/+2
| | | | | | | | instead, return an empty string. this sort of thing happens when we call gpsd_hexdump inside one of the packet writers when we are about to write a packet with no payload. Printing a NULL pointer is rather ugly... printing an empty string is much prettier and consistent with the SQUELCH case.
* shift blame... passing in a NULL gets you a NULL back.Chris Kuethe2007-04-141-0/+3
| | | | calling functions should be more careful
* too much thinking about regexes i think. hex use a-f, not a-z.Chris Kuethe2007-03-271-4/+4
|
* Add $Id$ tagChris Kuethe2006-12-051-0/+1
|
* Break up some modules a little finer, in support of some Python bindings.Eric S. Raymond2006-12-041-0/+76
All regression tests pass. No logic changes.