summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-11-04 23:14:30 +0000
committerBruce Momjian <bruce@momjian.us>1999-11-04 23:14:30 +0000
commit0e6652e67357354e01f2466184343d0bc0ee2cab (patch)
tree0c06450508417e033f8a2b90241a7126cd54c4fe /src/bin/psql/command.h
parent2323b63631080b7d4c287872a83b0ea30bd7874a (diff)
downloadpostgresql-0e6652e67357354e01f2466184343d0bc0ee2cab.tar.gz
psql cleanup
Diffstat (limited to 'src/bin/psql/command.h')
-rw-r--r--src/bin/psql/command.h63
1 files changed, 30 insertions, 33 deletions
diff --git a/src/bin/psql/command.h b/src/bin/psql/command.h
index eeaf0859ba..a7850263c3 100644
--- a/src/bin/psql/command.h
+++ b/src/bin/psql/command.h
@@ -11,39 +11,36 @@
-typedef enum _backslashResult {
- CMD_UNKNOWN = 0, /* not done parsing yet (internal only) */
- CMD_SEND, /* query complete; send off */
- CMD_SKIP_LINE, /* keep building query */
- CMD_TERMINATE, /* quit program */
- CMD_NEWEDIT, /* query buffer was changed (e.g., via \e) */
- CMD_ERROR /* the execution of the backslash command resulted
- in an error */
-} backslashResult;
-
-
-
-backslashResult
-HandleSlashCmds(PsqlSettings *pset,
- const char *line,
- PQExpBuffer query_buf,
- const char ** end_of_cmd);
-
-bool
-do_connect(const char *new_dbname,
- const char *new_user,
- PsqlSettings *pset);
-
-bool
-process_file(const char *filename,
- PsqlSettings *pset);
-
-
-bool
-do_pset(const char * param,
- const char * value,
- printQueryOpt * popt,
- bool quiet);
+typedef enum _backslashResult
+{
+ CMD_UNKNOWN = 0, /* not done parsing yet (internal only) */
+ CMD_SEND, /* query complete; send off */
+ CMD_SKIP_LINE, /* keep building query */
+ CMD_TERMINATE, /* quit program */
+ CMD_NEWEDIT, /* query buffer was changed (e.g., via \e) */
+ CMD_ERROR /* the execution of the backslash command
+ * resulted in an error */
+} backslashResult;
+
+
+
+backslashResult HandleSlashCmds(PsqlSettings *pset,
+ const char *line,
+ PQExpBuffer query_buf,
+ const char **end_of_cmd);
+
+bool do_connect(const char *new_dbname,
+ const char *new_user,
+ PsqlSettings *pset);
+
+bool process_file(const char *filename,
+ PsqlSettings *pset);
+
+
+bool do_pset(const char *param,
+ const char *value,
+ printQueryOpt * popt,
+ bool quiet);
#endif