postgresql/contrib/intarray
Peter Eisentraut c8b2ef05f4 Convert *GetDatum() and DatumGet*() macros to inline functions
The previous macro implementations just cast the argument to a target
type but did not check whether the input type was appropriate.  The
function implementation can do better type checking of the input type.

For the *GetDatumFast() macros, converting to an inline function
doesn't work in the !USE_FLOAT8_BYVAL case, but we can use
AssertVariableIsOfTypeMacro() to get a similar level of type checking.

Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/8528fb7e-0aa2-6b54-85fb-0c0886dbd6ed%40enterprisedb.com
2022-09-27 20:50:21 +02:00
..
bench Update copyright for 2022 2022-01-07 19:04:57 -05:00
data
expected
sql
_int_bool.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
_int_gin.c
_int_gist.c Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
_int_op.c
_int_selfuncs.c Harmonize parameter names in contrib code. 2022-09-22 13:59:20 -07:00
_int_tool.c Harmonize parameter names in contrib code. 2022-09-22 13:59:20 -07:00
_int.h Harmonize parameter names in contrib code. 2022-09-22 13:59:20 -07:00
_intbig_gist.c Change some unnecessary MemSet calls 2022-07-01 00:16:38 +02:00
.gitignore
intarray--1.0--1.1.sql
intarray--1.1--1.2.sql
intarray--1.2--1.3.sql
intarray--1.2.sql
intarray--1.3--1.4.sql
intarray--1.4--1.5.sql Remove deprecated containment operators for contrib types. 2021-03-05 10:45:41 -05:00
intarray.control Remove deprecated containment operators for contrib types. 2021-03-05 10:45:41 -05:00
Makefile Remove deprecated containment operators for contrib types. 2021-03-05 10:45:41 -05:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00