]> git.proxmox.com Git - mirror_qemu.git/commit - util/range.c
range: Create range.c for code that should not be inline
authorEric Blake <eblake@redhat.com>
Tue, 31 May 2016 16:41:28 +0000 (10:41 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 30 Jun 2016 13:28:40 +0000 (15:28 +0200)
commitfec0fc0a13ac7f1a1130433a6740cd850c3db34a
treef5dcc1ae871f41e227c411c00ba52aa9e6394d66
parent9b4e38fe6a35890bb1d995316d7be08de0b30ee5
range: Create range.c for code that should not be inline

g_list_insert_sorted_merged() is rather large to be an inline
function; move it to its own file.  range_merge() and
ranges_can_merge() can likewise move, as they are only used
internally.  Also, it becomes obvious that the condition within
range_merge() is already satisfied by its caller, and that the
return value is not used.

The diffstat is misleading, because of the copyright boilerplate.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1464712890-14262-2-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
include/qemu/range.h
util/Makefile.objs
util/range.c [new file with mode: 0644]