mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Add some const decorations to prototypes
Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
This commit is contained in:
@@ -503,7 +503,7 @@ extern void gistSplitByKey(Relation r, Page page, IndexTuple *itup,
|
||||
/* gistbuild.c */
|
||||
extern IndexBuildResult *gistbuild(Relation heap, Relation index,
|
||||
struct IndexInfo *indexInfo);
|
||||
extern void gistValidateBufferingOption(char *value);
|
||||
extern void gistValidateBufferingOption(const char *value);
|
||||
|
||||
/* gistbuildbuffers.c */
|
||||
extern GISTBuildBuffers *gistInitBuildBuffers(int pagesPerBuffer, int levelStep,
|
||||
|
@@ -108,7 +108,7 @@ typedef struct relopt_real
|
||||
} relopt_real;
|
||||
|
||||
/* validation routines for strings */
|
||||
typedef void (*validate_string_relopt) (char *value);
|
||||
typedef void (*validate_string_relopt) (const char *value);
|
||||
|
||||
typedef struct relopt_string
|
||||
{
|
||||
@@ -246,17 +246,17 @@ typedef struct
|
||||
|
||||
|
||||
extern relopt_kind add_reloption_kind(void);
|
||||
extern void add_bool_reloption(bits32 kinds, char *name, char *desc,
|
||||
extern void add_bool_reloption(bits32 kinds, const char *name, const char *desc,
|
||||
bool default_val);
|
||||
extern void add_int_reloption(bits32 kinds, char *name, char *desc,
|
||||
extern void add_int_reloption(bits32 kinds, const char *name, const char *desc,
|
||||
int default_val, int min_val, int max_val);
|
||||
extern void add_real_reloption(bits32 kinds, char *name, char *desc,
|
||||
extern void add_real_reloption(bits32 kinds, const char *name, const char *desc,
|
||||
double default_val, double min_val, double max_val);
|
||||
extern void add_string_reloption(bits32 kinds, char *name, char *desc,
|
||||
char *default_val, validate_string_relopt validator);
|
||||
extern void add_string_reloption(bits32 kinds, const char *name, const char *desc,
|
||||
const char *default_val, validate_string_relopt validator);
|
||||
|
||||
extern Datum transformRelOptions(Datum oldOptions, List *defList,
|
||||
char *namspace, char *validnsps[],
|
||||
const char *namspace, char *validnsps[],
|
||||
bool ignoreOids, bool isReset);
|
||||
extern List *untransformRelOptions(Datum options);
|
||||
extern bytea *extractRelOptions(HeapTuple tuple, TupleDesc tupdesc,
|
||||
|
@@ -350,14 +350,14 @@ extern void CommitTransactionCommand(void);
|
||||
extern void AbortCurrentTransaction(void);
|
||||
extern void BeginTransactionBlock(void);
|
||||
extern bool EndTransactionBlock(void);
|
||||
extern bool PrepareTransactionBlock(char *gid);
|
||||
extern bool PrepareTransactionBlock(const char *gid);
|
||||
extern void UserAbortTransactionBlock(void);
|
||||
extern void BeginImplicitTransactionBlock(void);
|
||||
extern void EndImplicitTransactionBlock(void);
|
||||
extern void ReleaseSavepoint(List *options);
|
||||
extern void DefineSavepoint(char *name);
|
||||
extern void DefineSavepoint(const char *name);
|
||||
extern void RollbackToSavepoint(List *options);
|
||||
extern void BeginInternalSubTransaction(char *name);
|
||||
extern void BeginInternalSubTransaction(const char *name);
|
||||
extern void ReleaseCurrentSubTransaction(void);
|
||||
extern void RollbackAndReleaseCurrentSubTransaction(void);
|
||||
extern bool IsSubTransaction(void);
|
||||
|
@@ -321,9 +321,9 @@ extern char *recoveryRestoreCommand;
|
||||
extern bool RestoreArchivedFile(char *path, const char *xlogfname,
|
||||
const char *recovername, off_t expectedSize,
|
||||
bool cleanupEnabled);
|
||||
extern void ExecuteRecoveryCommand(char *command, char *commandName,
|
||||
extern void ExecuteRecoveryCommand(const char *command, const char *commandName,
|
||||
bool failOnerror);
|
||||
extern void KeepFileRestoredFromArchive(char *path, char *xlogfname);
|
||||
extern void KeepFileRestoredFromArchive(const char *path, const char *xlogfname);
|
||||
extern void XLogArchiveNotify(const char *xlog);
|
||||
extern void XLogArchiveNotifySeg(XLogSegNo segno);
|
||||
extern void XLogArchiveForceDone(const char *xlog);
|
||||
|
Reference in New Issue
Block a user