Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 886c0be

Browse files
committed
C comments: remove odd blank lines after #ifdef WIN32 lines
1 parent a3115f0 commit 886c0be

File tree

17 files changed

+1
-27
lines changed

17 files changed

+1
-27
lines changed

src/backend/access/transam/xlog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4182,7 +4182,6 @@ RemoveOldXlogFiles(XLogSegNo segno, XLogRecPtr endptr)
41824182
xlde->d_name)));
41834183

41844184
#ifdef WIN32
4185-
41864185
/*
41874186
* On Windows, if another process (e.g another backend)
41884187
* holds the file open in FILE_SHARE_DELETE mode, unlink

src/backend/libpq/pqcomm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ StreamConnection(pgsocket server_fd, Port *port)
692692
}
693693

694694
#ifdef WIN32
695-
696695
/*
697696
* This is a Win32 socket optimization. The ideal size is 32k.
698697
* http://support.microsoft.com/kb/823764/EN-US/

src/backend/main/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ main(int argc, char *argv[])
107107
set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("postgres"));
108108

109109
#ifdef WIN32
110-
111110
/*
112111
* Windows uses codepages rather than the environment, so we work around
113112
* that by querying the environment explicitly first for LC_COLLATE and
@@ -183,7 +182,6 @@ main(int argc, char *argv[])
183182
#endif
184183

185184
#ifdef WIN32
186-
187185
/*
188186
* Start our win32 signal implementation
189187
*

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,6 @@ PostmasterMain(int argc, char *argv[])
10631063
InitPostmasterDeathWatchHandle();
10641064

10651065
#ifdef WIN32
1066-
10671066
/*
10681067
* Initialize I/O completion port used to deliver list of dead children.
10691068
*/
@@ -2929,8 +2928,8 @@ CleanupBackend(int pid,
29292928
* assume everything is all right and proceed to remove the backend from
29302929
* the active backend list.
29312930
*/
2932-
#ifdef WIN32
29332931

2932+
#ifdef WIN32
29342933
/*
29352934
* On win32, also treat ERROR_WAIT_NO_CHILDREN (128) as nonfatal case,
29362935
* since that sometimes happens under load when the process fails to start

src/backend/storage/file/fd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,6 @@ ReadDir(DIR *dir, const char *dirname)
19571957
return dent;
19581958

19591959
#ifdef WIN32
1960-
19611960
/*
19621961
* This fix is in mingw cvs (runtime/mingwex/dirent.c rev 1.4), but not in
19631962
* released version

src/backend/utils/adt/pg_locale.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ PGLC_localeconv(void)
463463
save_lc_numeric = pstrdup(save_lc_numeric);
464464

465465
#ifdef WIN32
466-
467466
/*
468467
* Ideally, monetary and numeric local symbols could be returned in any
469468
* server encoding. Unfortunately, the WIN32 API does not allow
@@ -645,7 +644,6 @@ cache_locale_time(void)
645644
save_lc_time = pstrdup(save_lc_time);
646645

647646
#ifdef WIN32
648-
649647
/*
650648
* On WIN32, there is no way to get locale-specific time values in a
651649
* specified locale, like we do for monetary/numeric. We can only get
@@ -1172,7 +1170,6 @@ wchar2char(char *to, const wchar_t *from, size_t tolen, pg_locale_t locale)
11721170
return 0;
11731171

11741172
#ifdef WIN32
1175-
11761173
/*
11771174
* On Windows, the "Unicode" locales assume UTF16 not UTF8 encoding, and
11781175
* for some reason mbstowcs and wcstombs won't do this for us, so we use

src/backend/utils/adt/selfuncs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3950,7 +3950,6 @@ convert_string_datum(Datum value, Oid typid)
39503950
xfrmlen = strxfrm(NULL, val, 0);
39513951
#endif
39523952
#ifdef WIN32
3953-
39543953
/*
39553954
* On Windows, strxfrm returns INT_MAX when an error occurs. Instead
39563955
* of trying to allocate this much memory (and fail), just return the

src/backend/utils/error/elog.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,6 @@ write_console(const char *line, int len)
20572057
int rc;
20582058

20592059
#ifdef WIN32
2060-
20612060
/*
20622061
* Try to convert the message to UTF16 and write it with WriteConsoleW().
20632062
* Fall back on write() if anything fails.
@@ -2887,7 +2886,6 @@ send_message_to_server_log(ErrorData *edata)
28872886
if (redirection_done && !am_syslogger)
28882887
write_pipe_chunks(buf.data, buf.len, LOG_DESTINATION_STDERR);
28892888
#ifdef WIN32
2890-
28912889
/*
28922890
* In a win32 service environment, there is no usable stderr. Capture
28932891
* anything going there and write it to the eventlog instead.

src/bin/initdb/initdb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2891,7 +2891,6 @@ void
28912891
get_restricted_token(void)
28922892
{
28932893
#ifdef WIN32
2894-
28952894
/*
28962895
* Before we execute another program, make sure that we are running with a
28972896
* restricted token. If not, re-execute ourselves with one.

src/interfaces/libpq/fe-connect.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,6 @@ makeEmptyPGconn(void)
26672667
PGconn *conn;
26682668

26692669
#ifdef WIN32
2670-
26712670
/*
26722671
* Make sure socket support is up and running.
26732672
*/

0 commit comments

Comments
 (0)