*
* 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 $
*/
/*-----------
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.
*/
-char **
+static char **
psql_completion(char *text, int start, int end)
{
/* This is the variable we'll return. */
/* This one gives you one from a list of things you can put after CREATE or DROP
as defined above.
*/
-char *
+static char *
create_command_generator(char *text, int state)
{
static int list_index,
Ordinarily this would be used to get a list of matching tables or functions,
etc.
*/
-char *
+static char *
complete_from_query(char *text, int state)
{
static int list_index,
of strings (if matching). This can be used if there are only a fixed number
SQL words that can appear at certain spot.
*/
-char *
+static char *
complete_from_list(char *text, int state)
{
static int string_length,
will be overwritten.
The string to be passed must be in completion_charp.
*/
-char *
+static char *
complete_from_const(char *text, int state)
{
(void) text; /* We don't care about what was entered
Note that the query passed in here must not have a semicolon at the end
because we need to append LIMIT xxx.
*/
-PGresult *
+static PGresult *
exec_query(char *query)
{
PGresult *result;
TODO: Take account of quotes. (Right now, if you table names contain spaces
you're screwed.)
*/
-char *
+static char *
previous_word(int point, int skip)
{
int i,