mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@ -25,15 +25,15 @@
|
||||
#ifndef WILDABBR
|
||||
/*----------
|
||||
* Someone might make incorrect use of a time zone abbreviation:
|
||||
* 1. They might reference tzname[0] before calling tzset (explicitly
|
||||
* 1. They might reference tzname[0] before calling tzset (explicitly
|
||||
* or implicitly).
|
||||
* 2. They might reference tzname[1] before calling tzset (explicitly
|
||||
* 2. They might reference tzname[1] before calling tzset (explicitly
|
||||
* or implicitly).
|
||||
* 3. They might reference tzname[1] after setting to a time zone
|
||||
* 3. They might reference tzname[1] after setting to a time zone
|
||||
* in which Daylight Saving Time is never observed.
|
||||
* 4. They might reference tzname[0] after setting to a time zone
|
||||
* 4. They might reference tzname[0] after setting to a time zone
|
||||
* in which Standard Time is never observed.
|
||||
* 5. They might reference tm.TM_ZONE after calling offtime.
|
||||
* 5. They might reference tm.TM_ZONE after calling offtime.
|
||||
* What's best to do in the above cases is open to debate;
|
||||
* for now, we just set things up so that in any of the five cases
|
||||
* WILDABBR is used. Another possibility: initialize tzname[0] to the
|
||||
@ -1453,7 +1453,7 @@ pg_get_timezone_offset(const pg_tz *tz, long int *gmtoff)
|
||||
{
|
||||
/*
|
||||
* The zone could have more than one ttinfo, if it's historically used
|
||||
* more than one abbreviation. We return TRUE as long as they all have
|
||||
* more than one abbreviation. We return TRUE as long as they all have
|
||||
* the same gmtoff.
|
||||
*/
|
||||
const struct state *sp;
|
||||
|
@ -119,7 +119,7 @@ pg_open_tzfile(const char *name, char *canonname)
|
||||
|
||||
/*
|
||||
* Scan specified directory for a case-insensitive match to fname
|
||||
* (of length fnamelen --- fname may not be null terminated!). If found,
|
||||
* (of length fnamelen --- fname may not be null terminated!). If found,
|
||||
* copy the actual filename into canonname and return true.
|
||||
*/
|
||||
static bool
|
||||
@ -142,7 +142,7 @@ scan_directory_ci(const char *dirname, const char *fname, int fnamelen,
|
||||
while ((direntry = ReadDir(dirdesc, dirname)) != NULL)
|
||||
{
|
||||
/*
|
||||
* Ignore . and .., plus any other "hidden" files. This is a security
|
||||
* Ignore . and .., plus any other "hidden" files. This is a security
|
||||
* measure to prevent access to files outside the timezone directory.
|
||||
*/
|
||||
if (direntry->d_name[0] == '.')
|
||||
@ -335,7 +335,7 @@ pg_tzset_offset(long gmtoffset)
|
||||
* This is called before GUC variable initialization begins. Its purpose
|
||||
* is to ensure that log_timezone has a valid value before any logging GUC
|
||||
* variables could become set to values that require elog.c to provide
|
||||
* timestamps (e.g., log_line_prefix). We may as well initialize
|
||||
* timestamps (e.g., log_line_prefix). We may as well initialize
|
||||
* session_timestamp to something valid, too.
|
||||
*/
|
||||
void
|
||||
|
@ -481,7 +481,7 @@ main(int argc, char *argv[])
|
||||
(void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
|
||||
#endif /* !WIN32 */
|
||||
progname = argv[0];
|
||||
if (TYPE_BIT(zic_t) < 64)
|
||||
if (TYPE_BIT(zic_t) <64)
|
||||
{
|
||||
(void) fprintf(stderr, "%s: %s\n", progname,
|
||||
_("wild compilation-time specification of zic_t"));
|
||||
@ -2848,6 +2848,7 @@ mkdirs(char *argname)
|
||||
{
|
||||
*cp = '\0';
|
||||
#ifdef WIN32
|
||||
|
||||
/*
|
||||
* DOS drive specifier?
|
||||
*/
|
||||
|
Reference in New Issue
Block a user