]> granicus.if.org Git - postgresql/blob - src/bin/psql/common.h
another set of cleanups
[postgresql] / src / bin / psql / common.h
1 /*
2  * psql - the PostgreSQL interactive terminal
3  *
4  * Copyright 2000 by PostgreSQL Global Development Team
5  *
6  * $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.4 2000/01/18 23:30:23 petere Exp $
7  */
8 #ifndef COMMON_H
9 #define COMMON_H
10
11 #include <c.h>
12 #include <libpq-fe.h>
13
14 char *          xstrdup(const char *string);
15
16 bool            setQFout(const char *fname);
17
18 #ifndef __GNUC__
19 void        psql_error(const char *fmt, ...);
20 #else
21 /* This checks the format string for consistency. */
22 void        psql_error(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
23 #endif
24
25 void        NoticeProcessor(void * arg, const char * message);
26
27 char *          simple_prompt(const char *prompt, int maxlen, bool echo);
28
29 PGresult *      PSQLexec(const char *query);
30
31 bool            SendQuery(const char *query);
32
33 #endif   /* COMMON_H */