1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-13 14:22:43 +03:00

Moved psql \eset and \eshow to \encoding

Improved psql's Ctrl-C handling
Fixed configure test for sigsetjmp that now even recognizes it if it's a macro
This commit is contained in:
Peter Eisentraut
2000-02-20 14:28:28 +00:00
parent 5253c518ae
commit 718bb2cc9c
15 changed files with 284 additions and 182 deletions

View File

@@ -3,11 +3,14 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.6 2000/02/16 13:15:26 momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.7 2000/02/20 14:28:20 petere Exp $
*/
#ifndef COMMON_H
#define COMMON_H
#include "postgres.h"
#include <signal.h>
#include "pqsignal.h"
#include "libpq-fe.h"
char * xstrdup(const char *string);
@@ -25,6 +28,9 @@ void NoticeProcessor(void * arg, const char * message);
char * simple_prompt(const char *prompt, int maxlen, bool echo);
extern volatile bool cancel_pressed;
void handle_sigint(SIGNAL_ARGS);
PGresult * PSQLexec(const char *query);
bool SendQuery(const char *query);