OSDN Git Service

A few changes to cleanup the code.
authorMarc G. Fournier <scrappy@hub.org>
Thu, 19 Sep 1996 20:00:37 +0000 (20:00 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 19 Sep 1996 20:00:37 +0000 (20:00 +0000)
commit3023dc6af0ada23bb69774eb92389965f12c1c29
tree7220bd0cb8c18b271a6402d07886eb230a222db6
parentefebd7b7aaec4b4fd13b2c0f9a2daad76daf34ed
A few changes to cleanup the code.

  - Added the header access/heapam.h.
  - Changed all instances of "length" to "data_length" to quiet
    the compiler.
  - initialized a few variables.  The compiler couldn't see that
    the code guaranteed that these would be initialized before
    being dereferenced.  If anyone wants to check my work follow
    the usage of these variables and make sure that this true
    and wasn't actually a bug in the original code.
  - added a missing break statement to a default case.  This
    was a benign error but bad style.
  - layed out heap_sysattrlen differently.  I think this way
    makes the structure of the code crystal clear.  There should
    be no actual difference in the actual behaviour of the code.

Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
src/backend/access/common/heaptuple.c