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

Commitf084cc4

Browse files
committed
Fix still more static-declaration-vs-nonstatic-definition glitches.
gcc doesn't think these are a problem, but somewhere out there is acompiler that will spit up.
1 parent87e701b commitf084cc4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.17 2000/04/12 17:16:23 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.18 2000/04/21 03:01:54 tgl Exp $
77
*/
88

99
/*-----------
@@ -166,7 +166,7 @@ do {completion_charp = Query_for_list_of_attributes; completion_info_charp = tab
166166
is some partially obscure list format that can be generated by the readline
167167
libraries completion_matches() function, so we don't have to worry about it.
168168
*/
169-
char**
169+
staticchar**
170170
psql_completion(char*text,intstart,intend)
171171
{
172172
/* This is the variable we'll return. */
@@ -694,7 +694,7 @@ psql_completion(char *text, int start, int end)
694694
/* This one gives you one from a list of things you can put after CREATE or DROP
695695
as defined above.
696696
*/
697-
char*
697+
staticchar*
698698
create_command_generator(char*text,intstate)
699699
{
700700
staticintlist_index,
@@ -727,7 +727,7 @@ create_command_generator(char *text, int state)
727727
Ordinarily this would be used to get a list of matching tables or functions,
728728
etc.
729729
*/
730-
char*
730+
staticchar*
731731
complete_from_query(char*text,intstate)
732732
{
733733
staticintlist_index,
@@ -775,7 +775,7 @@ complete_from_query(char *text, int state)
775775
of strings (if matching). This can be used if there are only a fixed number
776776
SQL words that can appear at certain spot.
777777
*/
778-
char*
778+
staticchar*
779779
complete_from_list(char*text,intstate)
780780
{
781781
staticintstring_length,
@@ -809,7 +809,7 @@ complete_from_list(char *text, int state)
809809
will be overwritten.
810810
The string to be passed must be in completion_charp.
811811
*/
812-
char*
812+
staticchar*
813813
complete_from_const(char*text,intstate)
814814
{
815815
(void)text;/* We don't care about what was entered
@@ -834,7 +834,7 @@ complete_from_const(char *text, int state)
834834
Note that the query passed in here must not have a semicolon at the end
835835
because we need to append LIMIT xxx.
836836
*/
837-
PGresult*
837+
staticPGresult*
838838
exec_query(char*query)
839839
{
840840
PGresult*result;
@@ -874,7 +874,7 @@ exec_query(char *query)
874874
TODO: Take account of quotes. (Right now, if you table names contain spaces
875875
you're screwed.)
876876
*/
877-
char*
877+
staticchar*
878878
previous_word(intpoint,intskip)
879879
{
880880
inti,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp