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

Commit321b8c8

Browse files
committed
At this rate, maybe next year sometime I'll get this done...
Goals: reduce the difficulty of porting from platform to platform, release to release, but moving as much as possible into config.h
1 parente733bef commit321b8c8

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

‎src/backend/utils/adt/acl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.1.1.1 1996/07/09 06:22:02 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.2 1996/08/27 07:32:25 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
15+
#include"config.h"
16+
1417
#include<ctype.h>
1518
#include<string.h>
1619
#include"postgres.h"

‎src/backend/utils/adt/arrayfuncs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.3 1996/07/22 21:56:00 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.4 1996/08/27 07:32:27 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
15+
#include"config.h"
16+
1417
#include<ctype.h>
1518
#include<stdio.h>
1619

‎src/backend/utils/adt/datetimes.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/datetimes.c,v 1.2 1996/07/19 07:19:56 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/datetimes.c,v 1.3 1996/08/27 07:32:30 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
#include"config.h"
15+
1416
#include<stdio.h>/* for sprintf() */
1517
#include<string.h>
1618
#include"postgres.h"
@@ -58,13 +60,13 @@ date_in(char *datestr)
5860
DateADT*date= (DateADT*)&result;
5961

6062
#if0
61-
#ifdefUSE_SHORT_YEAR
62-
#defineCHECK_DATE_LEN(datestr) (strlen(datestr) >= 8)
63-
#else
64-
#defineCHECK_DATE_LEN(datestr) (strlen(datestr) == 10)
65-
#endif/* USE_SHORT_YEAR */
63+
#ifdefUSE_SHORT_YEAR
64+
#defineCHECK_DATE_LEN(datestr) (strlen(datestr) >= 8)
65+
#else
66+
#defineCHECK_DATE_LEN(datestr) (strlen(datestr) == 10)
67+
#endif/* USE_SHORT_YEAR */
6668
#else
67-
#defineCHECK_DATE_LEN(datestr) 1
69+
#defineCHECK_DATE_LEN(datestr) 1
6870
#endif
6971

7072
#ifdefAMERICAN_STYLE

‎src/backend/utils/adt/filename.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.1.1.1 1996/07/09 06:22:04 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.2 1996/08/27 07:32:32 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
14+
15+
#include"config.h"
16+
1417
#include<string.h>
1518
#include<stdio.h>
1619
#ifndefWIN32

‎src/backend/utils/adt/float.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.3 1996/08/19 13:52:35 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.4 1996/08/27 07:32:33 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1275,7 +1275,9 @@ static int isinf(x)
12751275
}
12761276
#endif/* PORTNAME_alpha */
12771277

1278-
#if defined(PORTNAME_sparc_solaris)||defined(PORTNAME_i386_solaris)|| defined(PORTNAME_svr4)
1278+
#if defined(sparc_solaris)||
1279+
defined(i386_solaris)||
1280+
defined(PORTNAME_svr4)
12791281
#include<ieeefp.h>
12801282
staticint
12811283
isinf(d)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp