]> git.proxmox.com Git - libgit2.git/commit - src/integer.h
Make our overflow check look more like gcc/clang's
authorEdward Thomson <ethomson@microsoft.com>
Thu, 12 Feb 2015 17:19:37 +0000 (12:19 -0500)
committerEdward Thomson <ethomson@microsoft.com>
Fri, 13 Feb 2015 14:27:33 +0000 (09:27 -0500)
commitf1453c59b2afb9dab43281bfe9f1ba34cf6e0d02
treecb189e211547042080f35227b7e4d3f9b0c8ac2a
parent650e45f69124bd8b53ecefddeb214a82538ab2c1
Make our overflow check look more like gcc/clang's

Make our overflow checking look more like gcc and clang's, so that
we can substitute it out with the compiler instrinsics on platforms
that support it.  This means dropping the ability to pass `NULL` as
an out parameter.

As a result, the macros also get updated to reflect this as well.
36 files changed:
src/array.h
src/blame_git.c
src/buf_text.c
src/buffer.c
src/common.h
src/config_file.c
src/delta-apply.c
src/delta.c
src/diff.c
src/diff_driver.c
src/diff_patch.c
src/diff_tform.c
src/filebuf.c
src/fileops.c
src/filter.c
src/index.c
src/integer.h
src/iterator.c
src/merge.c
src/odb.c
src/odb_loose.c
src/odb_mempack.c
src/pack-objects.c
src/pack.c
src/path.c
src/pool.c
src/refs.c
src/sortedcache.c
src/tag.c
src/transports/cred.c
src/transports/smart_pkt.c
src/tree.c
src/util.h
src/vector.c
src/win32/dir.c
tests/core/errors.c