Fix still more static-declaration-vs-nonstatic-definition glitches.
gcc doesn't think these are a problem, but somewhere out there is a compiler that will spit up.
This commit is contained in:
parent
87e701b8d5
commit
f084cc4939
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2000 by PostgreSQL Global Development Group
|
* Copyright 2000 by PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.17 2000/04/12 17:16:23 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.18 2000/04/21 03:01:54 tgl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-----------
|
/*-----------
|
||||||
@ -166,7 +166,7 @@ do {completion_charp = Query_for_list_of_attributes; completion_info_charp = tab
|
|||||||
is some partially obscure list format that can be generated by the readline
|
is some partially obscure list format that can be generated by the readline
|
||||||
libraries completion_matches() function, so we don't have to worry about it.
|
libraries completion_matches() function, so we don't have to worry about it.
|
||||||
*/
|
*/
|
||||||
char **
|
static char **
|
||||||
psql_completion(char *text, int start, int end)
|
psql_completion(char *text, int start, int end)
|
||||||
{
|
{
|
||||||
/* This is the variable we'll return. */
|
/* This is the variable we'll return. */
|
||||||
@ -694,7 +694,7 @@ psql_completion(char *text, int start, int end)
|
|||||||
/* This one gives you one from a list of things you can put after CREATE or DROP
|
/* This one gives you one from a list of things you can put after CREATE or DROP
|
||||||
as defined above.
|
as defined above.
|
||||||
*/
|
*/
|
||||||
char *
|
static char *
|
||||||
create_command_generator(char *text, int state)
|
create_command_generator(char *text, int state)
|
||||||
{
|
{
|
||||||
static int list_index,
|
static int list_index,
|
||||||
@ -727,7 +727,7 @@ create_command_generator(char *text, int state)
|
|||||||
Ordinarily this would be used to get a list of matching tables or functions,
|
Ordinarily this would be used to get a list of matching tables or functions,
|
||||||
etc.
|
etc.
|
||||||
*/
|
*/
|
||||||
char *
|
static char *
|
||||||
complete_from_query(char *text, int state)
|
complete_from_query(char *text, int state)
|
||||||
{
|
{
|
||||||
static int list_index,
|
static int list_index,
|
||||||
@ -775,7 +775,7 @@ complete_from_query(char *text, int state)
|
|||||||
of strings (if matching). This can be used if there are only a fixed number
|
of strings (if matching). This can be used if there are only a fixed number
|
||||||
SQL words that can appear at certain spot.
|
SQL words that can appear at certain spot.
|
||||||
*/
|
*/
|
||||||
char *
|
static char *
|
||||||
complete_from_list(char *text, int state)
|
complete_from_list(char *text, int state)
|
||||||
{
|
{
|
||||||
static int string_length,
|
static int string_length,
|
||||||
@ -809,7 +809,7 @@ complete_from_list(char *text, int state)
|
|||||||
will be overwritten.
|
will be overwritten.
|
||||||
The string to be passed must be in completion_charp.
|
The string to be passed must be in completion_charp.
|
||||||
*/
|
*/
|
||||||
char *
|
static char *
|
||||||
complete_from_const(char *text, int state)
|
complete_from_const(char *text, int state)
|
||||||
{
|
{
|
||||||
(void) text; /* We don't care about what was entered
|
(void) text; /* We don't care about what was entered
|
||||||
@ -834,7 +834,7 @@ complete_from_const(char *text, int state)
|
|||||||
Note that the query passed in here must not have a semicolon at the end
|
Note that the query passed in here must not have a semicolon at the end
|
||||||
because we need to append LIMIT xxx.
|
because we need to append LIMIT xxx.
|
||||||
*/
|
*/
|
||||||
PGresult *
|
static PGresult *
|
||||||
exec_query(char *query)
|
exec_query(char *query)
|
||||||
{
|
{
|
||||||
PGresult *result;
|
PGresult *result;
|
||||||
@ -874,7 +874,7 @@ exec_query(char *query)
|
|||||||
TODO: Take account of quotes. (Right now, if you table names contain spaces
|
TODO: Take account of quotes. (Right now, if you table names contain spaces
|
||||||
you're screwed.)
|
you're screwed.)
|
||||||
*/
|
*/
|
||||||
char *
|
static char *
|
||||||
previous_word(int point, int skip)
|
previous_word(int point, int skip)
|
||||||
{
|
{
|
||||||
int i,
|
int i,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user