postgresql/contrib/btree_gist
Tom Lane ad80d3ea27 Get rid of trailing semicolons in C macro definitions.
Writing a trailing semicolon in a macro is almost never the right thing,
because you almost always want to write a semicolon after each macro
call instead.  (Even if there was some reason to prefer not to, pgindent
would probably make a hash of code formatted that way; so within PG the
rule should basically be "don't do it".)  Thus, if we have a semi inside
the macro, the compiler sees "something;;".  Much of the time the extra
empty statement is harmless, but it could lead to mysterious syntax
errors at call sites.  In perhaps an overabundance of neatnik-ism, let's
run around and get rid of the excess semicolons whereever possible.

The only thing worse than a mysterious syntax error is a mysterious
syntax error that only happens in the back branches; therefore,
backpatch these changes where relevant, which is most of them because
most of these mistakes are old.  (The lack of reported problems shows
that this is largely a hypothetical issue, but still, it could bite
us in some future patch.)

John Naylor and Tom Lane

Discussion: https://postgr.es/m/CACPNZCs0qWTqJ2QUSGJ07B7uvAvzMb-KbG2q+oo+J3tsWN5cqw@mail.gmail.com
2020-05-01 17:28:01 -04:00
..
data Add missing newlines at end of files 2010-10-26 20:11:43 +03:00
expected Improve stability of recently-added regression test case. 2018-10-16 12:01:19 -04:00
sql Improve stability of recently-added regression test case. 2018-10-16 12:01:19 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Improve spelling 2015-08-22 21:41:13 -04:00
btree_bit.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_bytea.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_cash.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_date.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_float4.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_float8.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.0--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
btree_gist.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_gist.control Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist.h Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
btree_inet.c Fix assorted issues in convert_to_scalar(). 2018-03-03 20:31:35 -05:00
btree_int2.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_int4.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_int8.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_interval.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_macaddr.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_numeric.c Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00
btree_oid.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_text.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_time.c Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_ts.c Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:01 -04:00
btree_utils_num.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
btree_utils_num.h Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:01 -04:00
btree_utils_var.c Fix misc typos. 2015-09-05 11:36:18 +03:00
btree_utils_var.h Minor refactoring of btree_gist code. 2015-03-26 23:10:10 +02:00