diff options
author | Neil Conway <neilc@samurai.com> | 2004-10-13 01:25:13 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-10-13 01:25:13 +0000 |
commit | 7069dbcc317c287f98e55d5296ff7ca77fadab49 (patch) | |
tree | f6fb8476c006cef473c986f8200695bd78f9033b /src/backend/executor/spi.c | |
parent | 1da2bccabbabbebc76af07c0c2276217420cef7d (diff) | |
download | postgresql-7069dbcc317c287f98e55d5296ff7ca77fadab49.tar.gz postgresql-7069dbcc317c287f98e55d5296ff7ca77fadab49.zip |
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
Diffstat (limited to 'src/backend/executor/spi.c')
-rw-r--r-- | src/backend/executor/spi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index 7d0c9b8a723..b533470e1d5 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -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); } |