Convert all remaining geometric operators to new fmgr style. This
Tom Lane <tgl@sss.pgh.pa.us>
Convert all remaining geometric operators to new fmgr style. This allows fixing problems with operators that expected to be able to return a NULL, such as the '#' line-segment-intersection operator that tried to return NULL when the two segments don't intersect. (See, eg, bug report from 1-Nov-99 on pghackers.) Fix some other bugs in passing, such as backwards comparison in path_distance().
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/rtree/rtproc.c | modified | +74 −48 |
| src/backend/access/rtree/rtree.c | modified | +8 −4 |
| src/backend/utils/adt/geo_ops.c | modified | +1286 −1140 |
| src/include/catalog/pg_proc.h | modified | +176 −178 |
| src/include/utils/geo_decls.h | modified | +143 −158 |
| src/test/regress/input/create_function_2.source | modified | +1 −1 |
| src/test/regress/output/create_function_2.source | modified | +1 −1 |
| src/test/regress/regress.c | modified | +59 −55 |