mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
pgindent run for release 9.3
This is the first run of the Perl-based pgindent script. Also update pgindent instructions.
This commit is contained in:
@@ -311,7 +311,6 @@ deccvlong(long lng, decimal *np)
|
||||
int
|
||||
decdiv(decimal *n1, decimal *n2, decimal *result)
|
||||
{
|
||||
|
||||
int i;
|
||||
|
||||
errno = 0;
|
||||
|
||||
@@ -65,7 +65,7 @@ ecpg_type_name(enum ECPGttype typ)
|
||||
default:
|
||||
abort();
|
||||
}
|
||||
return ""; /* keep MSC compiler happy */
|
||||
return ""; /* keep MSC compiler happy */
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -52,7 +52,6 @@ PGTYPESdate_from_timestamp(timestamp dt)
|
||||
date
|
||||
PGTYPESdate_from_asc(char *str, char **endptr)
|
||||
{
|
||||
|
||||
date dDate;
|
||||
fsec_t fsec;
|
||||
struct tm tt,
|
||||
|
||||
@@ -801,7 +801,6 @@ AppendSeconds(char *cp, int sec, fsec_t fsec, int precision, bool fillzeros)
|
||||
int
|
||||
EncodeInterval(struct /* pg_ */ tm * tm, fsec_t fsec, int style, char *str)
|
||||
{
|
||||
|
||||
char *cp = str;
|
||||
int year = tm->tm_year;
|
||||
int mon = tm->tm_mon;
|
||||
|
||||
@@ -1362,7 +1362,6 @@ done:
|
||||
int
|
||||
PGTYPESnumeric_cmp(numeric *var1, numeric *var2)
|
||||
{
|
||||
|
||||
/* use cmp_abs function to calculate the result */
|
||||
|
||||
/* both are positive: normal comparation with cmp_abs */
|
||||
|
||||
@@ -949,7 +949,6 @@ int
|
||||
PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout)
|
||||
{
|
||||
|
||||
|
||||
if (TIMESTAMP_NOT_FINITE(*tin))
|
||||
*tout = *tin;
|
||||
|
||||
|
||||
@@ -506,8 +506,8 @@ ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, char *arrsiz,
|
||||
*/
|
||||
struct ECPGstruct_member *p,
|
||||
*ind_p = NULL;
|
||||
char *pbuf = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 3);
|
||||
char *ind_pbuf = (char *) mm_alloc(strlen(ind_name) + ((ind_prefix == NULL) ? 0 : strlen(ind_prefix)) + 3);
|
||||
char *pbuf = (char *) mm_alloc(strlen(name) + ((prefix == NULL) ? 0 : strlen(prefix)) + 3);
|
||||
char *ind_pbuf = (char *) mm_alloc(strlen(ind_name) + ((ind_prefix == NULL) ? 0 : strlen(ind_prefix)) + 3);
|
||||
|
||||
if (atoi(arrsiz) == 1)
|
||||
sprintf(pbuf, "%s%s.", prefix ? prefix : "", name);
|
||||
|
||||
Reference in New Issue
Block a user