Document and clean up gistsplit.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2f0491dd1a34ea9390910afe532b6c2ca8db3c11
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-02-10T16:58:23Z
Releases: 9.2.4
Document and clean up gistsplit.c.

Improve comments, rename some variables and functions, slightly simplify
a couple of APIs, in an attempt to make this code readable by people other
than its original author.

Even though this is essentially just cosmetic, back-patch to all active
branches, because otherwise it's going to make back-patching future fixes
in this file very painful.

Files