Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc572599

Browse files
committed
Mark assorted variables PGDLLIMPORT.
This makes life easier for extension authors who wish to supportWindows.Brian Cloutier, slightly amended by me.Discussion:http://postgr.es/m/CAJCy68fscdNhmzFPS4kyO00CADkvXvEa-28H-OtENk-pa2OTWw@mail.gmail.com
1 parent28f8896 commitc572599

File tree

11 files changed

+22
-21
lines changed

11 files changed

+22
-21
lines changed

‎src/include/access/twophase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
typedefstructGlobalTransactionData*GlobalTransaction;
2626

2727
/* GUC variable */
28-
externintmax_prepared_xacts;
28+
externPGDLLIMPORTintmax_prepared_xacts;
2929

3030
externSizeTwoPhaseShmemSize(void);
3131
externvoidTwoPhaseShmemInit(void);

‎src/include/commands/extension.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* them from the extension first.
2929
*/
3030
externPGDLLIMPORTboolcreating_extension;
31-
externOidCurrentExtensionObject;
31+
externPGDLLIMPORTOidCurrentExtensionObject;
3232

3333

3434
externObjectAddressCreateExtension(ParseState*pstate,CreateExtensionStmt*stmt);

‎src/include/miscadmin.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@ extern PGDLLIMPORT bool IsUnderPostmaster;
150150
externPGDLLIMPORTboolIsBackgroundWorker;
151151
externPGDLLIMPORTboolIsBinaryUpgrade;
152152

153-
externboolExitOnAnyError;
153+
externPGDLLIMPORTboolExitOnAnyError;
154154

155155
externPGDLLIMPORTchar*DataDir;
156156

157157
externPGDLLIMPORTintNBuffers;
158-
externintMaxBackends;
159-
externintMaxConnections;
160-
externintmax_worker_processes;
158+
externPGDLLIMPORTintMaxBackends;
159+
externPGDLLIMPORTintMaxConnections;
160+
externPGDLLIMPORTintmax_worker_processes;
161161
externintmax_parallel_workers;
162162

163163
externPGDLLIMPORTintMyProcPid;
@@ -238,7 +238,7 @@ extern PGDLLIMPORT int IntervalStyle;
238238
#defineMAXTZLEN10/* max TZ name len, not counting tr. null */
239239

240240
externboolenableFsync;
241-
externboolallowSystemTableMods;
241+
externPGDLLIMPORTboolallowSystemTableMods;
242242
externPGDLLIMPORTintwork_mem;
243243
externPGDLLIMPORTintmaintenance_work_mem;
244244

‎src/include/pgtime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern size_t pg_strftime(char *s, size_t max, const char *format,
7070

7171
/* these functions and variables are in pgtz.c */
7272

73-
externpg_tz*session_timezone;
73+
externPGDLLIMPORTpg_tz*session_timezone;
7474
externpg_tz*log_timezone;
7575

7676
externvoidpg_timezone_initialize(void);

‎src/include/postmaster/postmaster.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/* GUC options */
1717
externboolEnableSSL;
1818
externintReservedBackends;
19-
externintPostPortNumber;
19+
externPGDLLIMPORTintPostPortNumber;
2020
externintUnix_socket_permissions;
2121
externchar*Unix_socket_group;
2222
externchar*Unix_socket_directories;
@@ -44,7 +44,7 @@ extern intpostmaster_alive_fds[2];
4444
#definePOSTMASTER_FD_OWN1/* kept open by postmaster only */
4545
#endif
4646

47-
externconstchar*progname;
47+
externPGDLLIMPORTconstchar*progname;
4848

4949
externvoidPostmasterMain(intargc,char*argv[])pg_attribute_noreturn();
5050
externvoidClosePostmasterPorts(boolam_syslogger);

‎src/include/storage/fd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef int File;
5050

5151

5252
/* GUC parameter */
53-
externintmax_files_per_process;
53+
externPGDLLIMPORTintmax_files_per_process;
5454

5555
/*
5656
* This is private to fd.c, but exported for save/restore_backend_variables()

‎src/include/storage/proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ typedef struct PROC_HDR
269269
intstartupBufferPinWaitBufId;
270270
}PROC_HDR;
271271

272-
externPROC_HDR*ProcGlobal;
272+
externPGDLLIMPORTPROC_HDR*ProcGlobal;
273273

274274
externPGPROC*PreparedXactProcs;
275275

@@ -287,7 +287,7 @@ extern PGPROC *PreparedXactProcs;
287287
#defineNUM_AUXILIARY_PROCS4
288288

289289
/* configurable options */
290-
externintDeadlockTimeout;
290+
externPGDLLIMPORTintDeadlockTimeout;
291291
externintStatementTimeout;
292292
externintLockTimeout;
293293
externintIdleInTransactionSessionTimeout;

‎src/include/tcop/dest.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ struct _DestReceiver
129129
/* Private fields might appear beyond this point... */
130130
};
131131

132-
externDestReceiver*None_Receiver;/* permanent receiver for DestNone */
132+
externPGDLLIMPORTDestReceiver*None_Receiver;/* permanent receiver for
133+
* DestNone */
133134

134135
/* The primary destination management functions */
135136

‎src/include/tcop/tcopprot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef enum
4545
LOGSTMT_ALL/* log all statements */
4646
}LogStmtLevel;
4747

48-
externintlog_statement;
48+
externPGDLLIMPORTintlog_statement;
4949

5050
externList*pg_parse_query(constchar*query_string);
5151
externList*pg_analyze_and_rewrite(RawStmt*parsetree,

‎src/include/utils/guc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ extern bool default_with_oids;
248248
externboolsession_auth_is_superuser;
249249

250250
externintlog_min_error_statement;
251-
externintlog_min_messages;
252-
externintclient_min_messages;
251+
externPGDLLIMPORTintlog_min_messages;
252+
externPGDLLIMPORTintclient_min_messages;
253253
externintlog_min_duration_statement;
254254
externintlog_temp_files;
255255

@@ -258,7 +258,7 @@ extern inttemp_file_limit;
258258
externintnum_temp_buffers;
259259

260260
externchar*cluster_name;
261-
externchar*ConfigFileName;
261+
externPGDLLIMPORTchar*ConfigFileName;
262262
externchar*HbaFileName;
263263
externchar*IdentFileName;
264264
externchar*external_pid_file;

‎src/include/utils/snapmgr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ extern TimestampTz GetOldSnapshotThresholdTimestamp(void);
5656

5757
externboolFirstSnapshotSet;
5858

59-
externTransactionIdTransactionXmin;
60-
externTransactionIdRecentXmin;
59+
externPGDLLIMPORTTransactionIdTransactionXmin;
60+
externPGDLLIMPORTTransactionIdRecentXmin;
6161
externPGDLLIMPORTTransactionIdRecentGlobalXmin;
62-
externTransactionIdRecentGlobalDataXmin;
62+
externPGDLLIMPORTTransactionIdRecentGlobalDataXmin;
6363

6464
externSnapshotGetTransactionSnapshot(void);
6565
externSnapshotGetLatestSnapshot(void);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp