summaryrefslogtreecommitdiff
path: root/hex.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.