ctfser: have dedicated signed/unsigned integer writing functions
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 11 Apr 2019 13:21:24 +0000 (09:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commitadc10d75a3b96f9bfd9c95c73e54133dc4851d7e
treee60889bbc5d7d5537ef1363023129837cec3cc87
parent496fac93b7e14f6124f7a6e3455aa477427cb8e3
ctfser: have dedicated signed/unsigned integer writing functions

Most of the time there's an external check for signedness anyway, so it
is redundant to pass the signedness to the writing function only for it
to evaluate it again.

In `lib/ctf-writer/fields.c`, the signedness check is now peripheral to
the ctfser writing function.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/babeltrace/ctfser-internal.h
lib/ctf-writer/fields.c
This page took 0.024824 seconds and 4 git commands to generate.