Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ba4065

Browse files
committed
Remove separate strdup.h header file; it's redundant with port.h.
1 parentde6ca63 commit9ba4065

File tree

10 files changed

+9
-48
lines changed

10 files changed

+9
-48
lines changed

‎src/bin/pg_dump/common.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.92 2006/08/01 18:05:04 momjian Exp $
14+
* $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.93 2006/09/27 15:41:23 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -24,10 +24,6 @@
2424

2525
#include<ctype.h>
2626

27-
#ifndefHAVE_STRDUP
28-
#include"strdup.h"
29-
#endif
30-
3127

3228
/*
3329
* Variables for mapping DumpId to DumpableObject

‎src/bin/pg_dump/pg_backup_db.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*Implements the basic DB functions used by the archiver.
66
*
77
* IDENTIFICATION
8-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.73 2006/07/18 17:42:00 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.74 2006/09/27 15:41:23 tgl Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -21,9 +21,6 @@
2121
#include<termios.h>
2222
#endif
2323

24-
#ifndefHAVE_STRDUP
25-
#include"strdup.h"
26-
#endif
2724

2825
staticconstchar*modulename=gettext_noop("archiver (db)");
2926

‎src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.448 2006/09/22 21:39:57 tgl Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.449 2006/09/27 15:41:23 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -34,10 +34,6 @@
3434
#include<termios.h>
3535
#endif
3636

37-
#ifndefHAVE_STRDUP
38-
#include"strdup.h"
39-
#endif
40-
4137
#include"getopt_long.h"
4238

4339
#ifndefHAVE_INT_OPTRESET

‎src/bin/pg_dump/pg_dumpall.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.81 2006/07/14 14:52:26 momjian Exp $
9+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.82 2006/09/27 15:41:23 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -19,9 +19,6 @@
1919
#ifdefENABLE_NLS
2020
#include<locale.h>
2121
#endif
22-
#ifndefHAVE_STRDUP
23-
#include"strdup.h"
24-
#endif
2522

2623
#include"getopt_long.h"
2724

‎src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
*
3636
* IDENTIFICATION
37-
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.80 2006/08/01 18:21:44 momjian Exp $
37+
*$PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.81 2006/09/27 15:41:23 tgl Exp $
3838
*
3939
*-------------------------------------------------------------------------
4040
*/
@@ -43,10 +43,6 @@
4343

4444
#include<ctype.h>
4545

46-
#ifndefHAVE_STRDUP
47-
#include"strdup.h"
48-
#endif
49-
5046
#ifdefHAVE_TERMIOS_H
5147
#include<termios.h>
5248
#endif

‎src/bin/psql/common.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
*
44
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.128 2006/08/29 22:48:55 tgl Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.129 2006/09/27 15:41:23 tgl Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"common.h"
1010

1111
#include<ctype.h>
12-
#ifndefHAVE_STRDUP
13-
#include<strdup.h>
14-
#endif
1512
#include<signal.h>
1613
#ifndefWIN32
1714
#include<sys/time.h>

‎src/include/strdup.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.335 2006/09/15 21:34:23 tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.336 2006/09/27 15:41:24 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -22,10 +22,6 @@
2222
#include<time.h>
2323
#include<unistd.h>
2424

25-
#ifndefHAVE_STRDUP
26-
#include"strdup.h"
27-
#endif
28-
2925
#include"libpq-fe.h"
3026
#include"libpq-int.h"
3127
#include"fe-auth.h"

‎src/interfaces/libpq/fe-secure.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.86 2006/09/04 14:57:27 petere Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.87 2006/09/27 15:41:24 tgl Exp $
1515
*
1616
* NOTES
1717
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
@@ -109,10 +109,6 @@
109109
#endif
110110
#endif
111111

112-
#ifndefHAVE_STRDUP
113-
#include"strdup.h"
114-
#endif
115-
116112
#ifdefUSE_SSL
117113
#include<openssl/ssl.h>
118114
#endif/* USE_SSL */

‎src/port/strdup.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/strdup.c,v 1.11 2006/07/14 04:59:30 momjian Exp $
11+
* $PostgreSQL: pgsql/src/port/strdup.c,v 1.12 2006/09/27 15:41:24 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515

1616
#include"c.h"
1717

18-
#include"strdup.h"
19-
2018

2119
char*
2220
strdup(constchar*string)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp