mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
More minor cosmetic improvements:
- remove another senseless "extern" keyword that was applied to a function definition - change a foo more function signatures from "some_type foo()" to "some_type foo(void)" - rewrite another K&R style function definition - make the type of the "action" function pointer in the KeyWord struct in src/backend/utils/adt/formatting.c more precise
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.130 2004/10/12 21:54:37 petere Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.131 2004/10/13 01:25:10 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -348,7 +348,7 @@ SPI_execp(void *plan, Datum *Values, const char *Nulls, int tcount)
|
||||
* Passing snapshot == InvalidSnapshot will select the normal behavior of
|
||||
* fetching a new snapshot for each query.
|
||||
*/
|
||||
extern int
|
||||
int
|
||||
SPI_execute_snapshot(void *plan,
|
||||
Datum *Values, const char *Nulls,
|
||||
Snapshot snapshot, Snapshot crosscheck_snapshot,
|
||||
@ -1629,13 +1629,13 @@ _SPI_cursor_operation(Portal portal, bool forward, int count,
|
||||
|
||||
|
||||
static MemoryContext
|
||||
_SPI_execmem()
|
||||
_SPI_execmem(void)
|
||||
{
|
||||
return MemoryContextSwitchTo(_SPI_current->execCxt);
|
||||
}
|
||||
|
||||
static MemoryContext
|
||||
_SPI_procmem()
|
||||
_SPI_procmem(void)
|
||||
{
|
||||
return MemoryContextSwitchTo(_SPI_current->procCxt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user