postgresql/src/pl/plpython
Andres Freund bbfd7edae5 Add macros wrapping all usage of gcc's __attribute__.
Until now __attribute__() was defined to be empty for all compilers but
gcc. That's problematic because it prevents using it in other compilers;
which is necessary e.g. for atomics portability.  It's also just
generally dubious to do so in a header as widely included as c.h.

Instead add pg_attribute_format_arg, pg_attribute_printf,
pg_attribute_noreturn macros which are implemented in the compilers that
understand them. Also add pg_attribute_noreturn and pg_attribute_packed,
but don't provide fallbacks, since they can affect functionality.

This means that external code that, possibly unwittingly, relied on
__attribute__ defined to be empty on !gcc compilers may now run into
warnings or errors on those compilers. But there shouldn't be many
occurances of that and it's hard to work around...

Discussion: 54B58BA3.8040302@ohmu.fi
Author: Oskari Saarenmaa, with some minor changes by me.
2015-03-11 14:30:01 +01:00
..
expected
po Translation updates 2015-02-01 23:23:40 -05:00
sql
.gitignore
generate-spiexceptions.pl Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Re-remove dependency on the DLL of pythonxx.def file. 2014-11-02 21:43:30 -05:00
nls.mk Translation updates 2014-12-15 00:25:35 -05:00
plpy_cursorobject.c
plpy_cursorobject.h
plpy_elog.c
plpy_elog.h Add macros wrapping all usage of gcc's __attribute__. 2015-03-11 14:30:01 +01:00
plpy_exec.c Fix thinko in plpython error message 2015-01-06 15:16:29 -03:00
plpy_exec.h
plpy_main.c Fix some functions that were declared static then defined not-static. 2015-01-12 16:08:43 -05:00
plpy_main.h
plpy_planobject.c
plpy_planobject.h
plpy_plpymodule.c Fix some functions that were declared static then defined not-static. 2015-01-12 16:08:43 -05:00
plpy_plpymodule.h
plpy_procedure.c Improve hash_create's API for selecting simple-binary-key hash functions. 2014-12-18 13:36:36 -05:00
plpy_procedure.h
plpy_resultobject.c
plpy_resultobject.h
plpy_spi.c
plpy_spi.h
plpy_subxactobject.c
plpy_subxactobject.h
plpy_typeio.c
plpy_typeio.h
plpy_util.c
plpy_util.h
plpython2u--1.0.sql
plpython2u--unpackaged--1.0.sql
plpython2u.control
plpython3u--1.0.sql
plpython3u--unpackaged--1.0.sql
plpython3u.control
plpython.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
plpythonu--1.0.sql
plpythonu--unpackaged--1.0.sql
plpythonu.control