sapling/clib
Jun Wu 6f5f9b9c0d convert: unify two sources and clean it up
Summary:
There are two `convert.h`. This patch unifies them and does cleanups so it's
a valid header file which could be included by multiple .c and .cpp files
and linker won't complain re-definition (by adding `static` to everything).

Besides, reformat the code so it could pass check-code. Also fix a compiler
warning about comparing an unsigned integer with a signed integer.

Test Plan: `make clean local`. It still builds.

Reviewers: durham, #mercurial, rmcelroy

Reviewed By: rmcelroy

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5113550

Signature: t1:5113550:1495565413:e399f898ac513e64af37dab5daf55cedbabfc703
2017-05-23 11:57:12 -07:00
..
portability portibility: move to clib 2017-05-23 11:47:40 -07:00
sha1 sha1: switch to new implementation 2017-04-25 14:53:32 -07:00
buffer.c port upgrades of buffer.h into clib 2016-08-26 17:14:52 -07:00
buffer.h port upgrades of buffer.h into clib 2016-08-26 17:14:52 -07:00
convert.h convert: unify two sources and clean it up 2017-05-23 11:57:12 -07:00
null_test.c move common code to clib 2016-08-26 15:45:43 -07:00