baudot cleanup
This commit is contained in:
parent
e36594ca47
commit
286879cfb3
|
@ -67,10 +67,12 @@ baudot_reset()
|
|||
|
||||
|
||||
/*
|
||||
* returns nonzero if *char_outp was stuffed with an output character
|
||||
* Returns 1 if *char_outp was stuffed with an output character
|
||||
* or 0 if no output character was stuffed (in other words, returns
|
||||
* the count of characters decoded and stuffed).
|
||||
*/
|
||||
int
|
||||
baudot( unsigned char databits, char *char_outp )
|
||||
baudot_decode( char *char_outp, unsigned char databits )
|
||||
{
|
||||
/* Baudot (RTTY) */
|
||||
assert( (databits & ~0x1F) == 0 );
|
||||
|
|
|
@ -16,4 +16,4 @@ baudot_reset();
|
|||
* returns nonzero if *char_outp was stuffed with an output character
|
||||
*/
|
||||
int
|
||||
baudot( unsigned char databits, char *char_outp );
|
||||
baudot_decode( char *char_outp, unsigned char databits );
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
/*
|
||||
* ASCII 8-bit data framebits decoder (passthrough)
|
||||
*/
|
||||
/* returns nbytes decoded */
|
||||
static unsigned int
|
||||
framebits_decode_ascii8( char *dataout_p, unsigned int dataout_size,
|
||||
unsigned int bits )
|
||||
|
@ -39,6 +40,7 @@ framebits_decode_ascii8( char *dataout_p, unsigned int dataout_size,
|
|||
/*
|
||||
* Baudot 5-bit data framebits decoder
|
||||
*/
|
||||
/* returns nbytes decoded */
|
||||
static unsigned int
|
||||
framebits_decode_baudot( char *dataout_p, unsigned int dataout_size,
|
||||
unsigned int bits )
|
||||
|
@ -49,7 +51,7 @@ framebits_decode_baudot( char *dataout_p, unsigned int dataout_size,
|
|||
}
|
||||
assert( (bits & ~0x1F) == 0 );
|
||||
assert( dataout_size >= 1);
|
||||
return baudot(bits, dataout_p);
|
||||
return baudot_decode(dataout_p, bits);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue