diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-08-04 19:36:45 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-08-04 19:36:45 +0000 |
commit | 0bfc64b3875268c054b064d06165044caecfabf6 (patch) | |
tree | bf3e7eae977a6497bd8720e94cf372fb9e6011a8 | |
parent | f368c94fd6c170dbcfb348a99aeacae8ef20b6f9 (diff) | |
download | postgresql-0bfc64b3875268c054b064d06165044caecfabf6.tar.gz postgresql-0bfc64b3875268c054b064d06165044caecfabf6.zip |
Looks okay in a quick glance, except error message spelling is poor:
! #define ARRISNULL(x) ( (x) ? ( ( ARR_NDIM(x) == NDIM ) ? ( ( ARRNELEMS( x ) )
? 0 : 1 ) : ( ( ARR_NDIM(x) ) ? (elog(ERROR,"Array is not one-dimentional: %d di
mentions", ARR_NDIM(x)),1) : 1 ) ) : 1 )
Should be "one-dimensional" and "dimensions". Bruce, would you fix that
when you apply it?
Tom
-rw-r--r-- | contrib/intarray/_int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/intarray/_int.c b/contrib/intarray/_int.c index 8a90a77641e..fa3ed8e9add 100644 --- a/contrib/intarray/_int.c +++ b/contrib/intarray/_int.c @@ -36,7 +36,7 @@ #define ARRPTR(x) ( (int4 *) ARR_DATA_PTR(x) ) #define ARRNELEMS(x) ArrayGetNItems( ARR_NDIM(x), ARR_DIMS(x)) -#define ARRISNULL(x) ( (x) ? ( ( ARR_NDIM(x) == NDIM ) ? ( ( ARRNELEMS( x ) ) ? 0 : 1 ) : ( ( ARR_NDIM(x) ) ? (elog(ERROR,"Array is not one-dimentional: %d dimentions", ARR_NDIM(x)),1) : 1 ) ) : 1 ) +#define ARRISNULL(x) ( (x) ? ( ( ARR_NDIM(x) == NDIM ) ? ( ( ARRNELEMS( x ) ) ? 0 : 1 ) : ( ( ARR_NDIM(x) ) ? (elog(ERROR,"Array is not one-dimensional: %d dimensions", ARR_NDIM(x)),1) : 1 ) ) : 1 ) #define ARRISVOID(x) ( (x) ? ( ( ARR_NDIM(x) == NDIM ) ? ( ( ARRNELEMS( x ) ) ? 0 : 1 ) : 1 ) : 0 ) #define SORT(x) \ |