Skip to content
Snippets Groups Projects
Commit 319dbfa7 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Another PGINDENT run that changes variable indenting and case label indenting....

Another PGINDENT run that changes variable indenting and case label indenting.  Also static variable indenting.
parent a90f12fd
Branches
Tags
No related merge requests found
Showing
with 1020 additions and 1013 deletions
...@@ -34,6 +34,7 @@ currenttime() ...@@ -34,6 +34,7 @@ currenttime()
*result = ((((tm->tm_hour * 60) + tm->tm_min) * 60) + tm->tm_sec); *result = ((((tm->tm_hour * 60) + tm->tm_min) * 60) + tm->tm_sec);
return (result); return (result);
} }
DateADT DateADT
currentdate() currentdate()
{ {
...@@ -48,6 +49,7 @@ currentdate() ...@@ -48,6 +49,7 @@ currentdate()
date2j(100, 1, 1); date2j(100, 1, 1);
return (result); return (result);
} }
int4 int4
hours(TimeADT * time) hours(TimeADT * time)
{ {
...@@ -65,6 +67,7 @@ seconds(TimeADT * time) ...@@ -65,6 +67,7 @@ seconds(TimeADT * time)
{ {
return (((int) *time) % 60); return (((int) *time) % 60);
} }
int4 int4
day(DateADT * date) day(DateADT * date)
{ {
...@@ -75,6 +78,7 @@ day(DateADT * date) ...@@ -75,6 +78,7 @@ day(DateADT * date)
return (tm.tm_mday); return (tm.tm_mday);
} }
int4 int4
month(DateADT * date) month(DateADT * date)
{ {
...@@ -85,6 +89,7 @@ month(DateADT * date) ...@@ -85,6 +89,7 @@ month(DateADT * date)
return (tm.tm_mon); return (tm.tm_mon);
} }
int4 int4
year(DateADT * date) year(DateADT * date)
{ {
...@@ -95,6 +100,7 @@ year(DateADT * date) ...@@ -95,6 +100,7 @@ year(DateADT * date)
return (tm.tm_year); return (tm.tm_year);
} }
int4 int4
asminutes(TimeADT * time) asminutes(TimeADT * time)
{ {
...@@ -102,6 +108,7 @@ asminutes(TimeADT * time) ...@@ -102,6 +108,7 @@ asminutes(TimeADT * time)
return (seconds / 60); return (seconds / 60);
} }
int4 int4
asseconds(TimeADT * time) asseconds(TimeADT * time)
{ {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.22 1997/09/07 04:37:30 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.23 1997/09/08 02:19:47 momjian Exp $
* *
* NOTES * NOTES
* The old interface functions have been converted to macros * The old interface functions have been converted to macros
...@@ -396,13 +396,13 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum) ...@@ -396,13 +396,13 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum)
break; break;
/* /*
* For tmin and tmax, we need to do some extra work. These don't * For tmin and tmax, we need to do some extra work. These
* get filled in until the vacuum cleaner runs (or we manage to * don't get filled in until the vacuum cleaner runs (or we
* flush a page after setting the value correctly below). If the * manage to flush a page after setting the value correctly
* vacuum cleaner hasn't run yet, then the times stored in the * below). If the vacuum cleaner hasn't run yet, then the
* tuple are wrong, and we need to look up the commit time of the * times stored in the tuple are wrong, and we need to look up
* transaction. We cache this value in the tuple to avoid doing * the commit time of the transaction. We cache this value in
* the work more than once. * the tuple to avoid doing the work more than once.
*/ */
case MinAbsoluteTimeAttributeNumber: case MinAbsoluteTimeAttributeNumber:
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.17 1997/09/07 04:37:36 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.18 1997/09/08 02:19:51 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.16 1997/09/07 04:37:37 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.17 1997/09/08 02:19:54 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/indexvalid.c,v 1.15 1997/09/07 04:37:38 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/Attic/indexvalid.c,v 1.16 1997/09/08 02:19:55 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.16 1997/09/07 04:37:39 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.17 1997/09/08 02:19:56 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.20 1997/09/07 04:37:41 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.21 1997/09/08 02:19:56 momjian Exp $
* *
* NOTES * NOTES
* some of the executor utility code such as "ExecTypeFromTL" should be * some of the executor utility code such as "ExecTypeFromTL" should be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment