Skip to content

Commit 78693c8

Browse files
committed
Clean up include files use in psql.
1 parent 5933f18 commit 78693c8

27 files changed

+65
-134
lines changed

src/bin/pg_id/pg_id.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
*
77
* Copyright (C) 2000 by PostgreSQL Global Development Group
88
*
9-
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.12 2000/02/09 16:23:42 momjian Exp $
9+
* $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/pg_id.c,v 1.13 2000/02/16 13:15:25 momjian Exp $
1010
*/
11-
#include <c.h>
11+
#include <postgres.h>
1212

1313
#ifdef HAVE_GETOPT_H
1414
#include <getopt.h>

src/bin/psql/command.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.18 2000/02/07 23:10:04 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.19 2000/02/16 13:15:26 momjian Exp $
77
*/
8-
#include <c.h>
8+
#include "postgres.h"
99
#include "command.h"
1010

1111
#include <errno.h>
1212
#include <assert.h>
13-
#include <string.h>
14-
#include <stdio.h>
15-
#include <stdlib.h>
1613
#include <ctype.h>
1714
#ifndef WIN32
1815
#include <sys/types.h> /* for umask() */
@@ -22,8 +19,8 @@
2219
#include <win32.h>
2320
#endif
2421

25-
#include <libpq-fe.h>
26-
#include <pqexpbuffer.h>
22+
#include "libpq-fe.h"
23+
#include "pqexpbuffer.h"
2724

2825
#include "common.h"
2926
#include "copy.h"

src/bin/psql/command.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.7 2000/01/29 16:58:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.8 2000/02/16 13:15:26 momjian Exp $
77
*/
88
#ifndef COMMAND_H
99
#define COMMAND_H
1010

11-
#include <c.h>
12-
13-
#include <pqexpbuffer.h>
11+
#include "pqexpbuffer.h"
1412

1513
#include "settings.h"
1614
#include "print.h"

src/bin/psql/common.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.13 2000/02/13 21:45:14 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.14 2000/02/16 13:15:26 momjian Exp $
77
*/
8-
#include <c.h>
8+
#include "postgres.h"
99
#include "common.h"
1010

1111
#include <errno.h>
12-
#include <stdlib.h>
13-
#include <stdio.h>
14-
#include <string.h>
1512
#include <stdarg.h>
1613
#ifdef HAVE_TERMIOS_H
1714
#include <termios.h>
@@ -27,10 +24,10 @@
2724
#include <win32.h>
2825
#endif
2926

30-
#include <libpq-fe.h>
31-
#include <postgres_ext.h>
32-
#include <pqsignal.h>
33-
#include <version.h>
27+
#include "libpq-fe.h"
28+
#include "postgres_ext.h"
29+
#include "pqsignal.h"
30+
#include "version.h"
3431

3532
#include "settings.h"
3633
#include "variables.h"

src/bin/psql/common.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.5 2000/01/29 16:58:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.h,v 1.6 2000/02/16 13:15:26 momjian Exp $
77
*/
88
#ifndef COMMON_H
99
#define COMMON_H
1010

11-
#include <c.h>
12-
#include <libpq-fe.h>
11+
#include "libpq-fe.h"
1312

1413
char * xstrdup(const char *string);
1514

src/bin/psql/copy.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/copy.c,v 1.9 2000/01/29 16:58:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/copy.c,v 1.10 2000/02/16 13:15:26 momjian Exp $
77
*/
8-
#include <c.h>
8+
#include "postgres.h"
99
#include "copy.h"
1010

11-
#include <stdlib.h>
12-
#include <stdio.h>
13-
#include <string.h>
1411
#include <errno.h>
1512
#include <assert.h>
1613
#ifndef WIN32
@@ -19,7 +16,7 @@
1916
#include <io.h> /* I think */
2017
#endif
2118

22-
#include <libpq-fe.h>
19+
#include "libpq-fe.h"
2320

2421
#include "settings.h"
2522
#include "common.h"

src/bin/psql/copy.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.6 2000/01/29 16:58:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/copy.h,v 1.7 2000/02/16 13:15:26 momjian Exp $
77
*/
88
#ifndef COPY_H
99
#define COPY_H
1010

11-
#include <c.h>
12-
#include <stdio.h>
13-
#include <libpq-fe.h>
11+
#include "libpq-fe.h"
1412

1513
/* handler for \copy */
1614
bool do_copy(const char *args);

src/bin/psql/describe.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.16 2000/02/07 23:10:06 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.17 2000/02/16 13:15:26 momjian Exp $
77
*/
8-
#include <c.h>
8+
#include "postgres.h"
99
#include "describe.h"
1010

11-
#include <string.h>
12-
13-
#include <postgres.h> /* for VARHDRSZ, int4 type */
14-
#include <postgres_ext.h>
15-
#include <libpq-fe.h>
11+
#include "libpq-fe.h"
1612

1713
#include "common.h"
1814
#include "settings.h"

src/bin/psql/describe.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.7 2000/01/29 16:58:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.8 2000/02/16 13:15:26 momjian Exp $
77
*/
88
#ifndef DESCRIBE_H
99
#define DESCRIBE_H
1010

11-
#include <c.h>
1211
#include "settings.h"
1312

1413
/* \da */

src/bin/psql/help.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.18 2000/02/13 21:45:14 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.19 2000/02/16 13:15:26 momjian Exp $
77
*/
8-
#include <c.h>
8+
#include "postgres.h"
99
#include "help.h"
1010

11-
#include <stdio.h>
12-
#include <stdlib.h>
1311
#include <signal.h>
1412
#include <errno.h>
1513

@@ -24,8 +22,8 @@
2422
#include <win32.h>
2523
#endif
2624

27-
#include <pqsignal.h>
28-
#include <libpq-fe.h>
25+
#include "pqsignal.h"
26+
#include "libpq-fe.h"
2927

3028
#include "settings.h"
3129
#include "common.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy