@@ -920,8 +920,7 @@ spherepoly_rad(PG_FUNCTION_ARGS)
920920
921921 if (np < 6 || np % 2 != 0 )
922922 {
923- elog (
924- ERROR ,
923+ elog ( ERROR ,
925924 "spherepoly_rad: invalid number of arguments (must be even and >= 6)"
926925 );
927926 PG_RETURN_NULL ();
@@ -932,8 +931,7 @@ spherepoly_rad(PG_FUNCTION_ARGS)
932931 points = (SPoint * ) palloc (np * sizeof (SPoint ));
933932 if (points == NULL )
934933 {
935- elog (
936- ERROR ,
934+ elog ( ERROR ,
937935 "spherepoly_rad: failed to allocate memory for points array"
938936 );
939937 PG_RETURN_NULL ();
@@ -943,11 +941,10 @@ spherepoly_rad(PG_FUNCTION_ARGS)
943941
944942 for (i = 0 ; i < np ; i ++ )
945943 {
946- create_spherepoint_from_long_lat (
947- & points [i ],
948- array_data [2 * i ],
949- array_data [2 * i + 1 ]
950- );
944+ create_spherepoint_from_long_lat ( & points [i ],
945+ array_data [2 * i ],
946+ array_data [2 * i + 1 ]
947+ );
951948 }
952949 PG_RETURN_POINTER (spherepoly_from_array (points , np ));
953950}
@@ -965,8 +962,7 @@ spherepoly_deg(PG_FUNCTION_ARGS)
965962
966963 if (np < 6 || np % 2 != 0 )
967964 {
968- elog (
969- ERROR ,
965+ elog ( ERROR ,
970966 "spherepoly_deg: invalid number of arguments (must be even and >= 6)"
971967 );
972968 PG_RETURN_NULL ();
@@ -977,8 +973,7 @@ spherepoly_deg(PG_FUNCTION_ARGS)
977973 points = (SPoint * ) palloc (np * sizeof (SPoint ));
978974 if (points == NULL )
979975 {
980- elog (
981- ERROR ,
976+ elog ( ERROR ,
982977 "spherepoly_deg: failed to allocate memory for points array"
983978 );
984979 PG_RETURN_NULL ();
@@ -988,11 +983,10 @@ spherepoly_deg(PG_FUNCTION_ARGS)
988983
989984 for (i = 0 ; i < np ; i ++ )
990985 {
991- create_spherepoint_from_long_lat (
992- & points [i ],
993- deg_to_rad (array_data [2 * i ]),
994- deg_to_rad (array_data [2 * i + 1 ])
995- );
986+ create_spherepoint_from_long_lat ( & points [i ],
987+ deg_to_rad (array_data [2 * i ]),
988+ deg_to_rad (array_data [2 * i + 1 ])
989+ );
996990 }
997991 PG_RETURN_POINTER (spherepoly_from_array (points , np ));
998992}
0 commit comments