added missing symbols for parsing rs232baudrate

This commit is contained in:
gardners 2013-04-26 15:33:09 +09:30
parent 8045e57b81
commit 05d4c14188

View File

@ -281,6 +281,20 @@ int cf_opt_int32_rs232baudrate(int32_t *intp, const char *text)
}
}
int cf_fmt_int32_rs232baudrate(const char **textp, const int32_t *intp)
{
char buf[12];
sprintf(buf, "%d", *intp);
*textp = str_edup(buf);
return CFOK;
}
int cf_cmp_int32_rs232baudrate(const int32_t *a, const int32_t *b)
{
return *a < *b ? -1 : *a > *b ? 1 : 0;
}
static int cf_fmt_int32(const char **textp, const int32_t *intp)
{
char buf[12];