diff options
| author | Bruce Momjian | 2003-03-20 06:00:12 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-03-20 06:00:12 +0000 |
| commit | be1c6e75293fac69453d2ca6fc99d642f7806dfa (patch) | |
| tree | 2a04d65ba66fa3fc746426b56a3c2377c2d43174 /src/bin/psql/input.h | |
| parent | 94701fb24b4397a4fc1a8441980ed499a8cc991c (diff) | |
Here's some changes I made last night to psql's common.c (as found in
7.3.2). It removes some code duplication and #ifdeffing, and some
unstructured ugliness such as tacky breaks and an unneeded continue.
Breaks up a large function into smaller functions and reduces required
nesting levels, and kills a variable or two.
Jeroen T. Vermeulen
Diffstat (limited to 'src/bin/psql/input.h')
| -rw-r--r-- | src/bin/psql/input.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/input.h b/src/bin/psql/input.h index 4ed51f59cad..541d80b0557 100644 --- a/src/bin/psql/input.h +++ b/src/bin/psql/input.h @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.18 2003/02/19 04:04:04 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/input.h,v 1.19 2003/03/20 06:00:12 momjian Exp $ */ #ifndef INPUT_H #define INPUT_H @@ -32,7 +32,8 @@ #endif #endif -char *gets_interactive(char *prompt); + +char *gets_interactive(const char *prompt); char *gets_fromFile(FILE *source); void initializeInput(int flags); |
