PostGIS  2.1.10dev-r@@SVN_REVISION@@
static bool box2df_equals ( const BOX2DF *  a,
const BOX2DF *  b 
)
static

Definition at line 294 of file gserialized_gist_2d.c.

References FALSE, and TRUE.

Referenced by gserialized_gist_consistent_leaf_2d(), gserialized_gist_same_2d(), and gserialized_same_2d().

295 {
296  if ( a && b ) {
297  if ( (a->xmin != b->xmin) || (a->xmax != b->xmax) ||
298  (a->ymin != b->ymin) || (a->ymax != b->ymax) )
299  {
300  return FALSE;
301  }
302  return TRUE;
303  } else if ( a || b ) {
304  /* one empty, one not */
305  return FALSE;
306  } else {
307  /* both empty */
308  return TRUE;
309  }
310 }
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170

Here is the caller graph for this function: