Remove extra spaces

Started by Suraj Kharageabout 4 years ago2 messages
#1Suraj Kharage
suraj.kharage@enterprisedb.com
1 attachment(s)

Hi,

While browsing the code, noticed the extra spaces after the function name.
Removed the same in the attached patch.

--
--

Thanks & Regards,
Suraj kharage,

edbpostgres.com

Attachments:

remove_space_from_numeric_function.patchapplication/octet-stream; name=remove_space_from_numeric_function.patchDownload
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c
index 644d7d3..c9502f9 100644
--- a/src/backend/utils/adt/numeric.c
+++ b/src/backend/utils/adt/numeric.c
@@ -1160,7 +1160,7 @@ numeric_support(PG_FUNCTION_ARGS)
  *	scale of the attribute have to be applied on the value.
  */
 Datum
-numeric		(PG_FUNCTION_ARGS)
+numeric(PG_FUNCTION_ARGS)
 {
 	Numeric		num = PG_GETARG_NUMERIC(0);
 	int32		typmod = PG_GETARG_INT32(1);
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Suraj Kharage (#1)
Re: Remove extra spaces

Suraj Kharage <suraj.kharage@enterprisedb.com> writes:

While browsing the code, noticed the extra spaces after the function name.
Removed the same in the attached patch.

I'm afraid that's a waste of time because the next pgindent run
will just put them back. "numeric" is also a typedef name and
this usage of it seems to confuse pgindent. If you wanted to
dive into the pgindent code and fix that bug in it, that'd be
great, but the return-on-effort is probably going to be poor.

(Another possibility is to change the C function name.)

regards, tom lane