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

Commitb6c732e

Browse files
committed
Correct declaration of array_map() so that it doesn't make
gcc quite so unhappy.
1 parent210055a commitb6c732e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 2 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/arrayfuncs.c,v 1.39 1999/05/0319:09:59 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.40 1999/05/0323:48:26 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1287,7 +1287,7 @@ array_assgn(ArrayType *array,
12871287
ArrayType*
12881288
array_map(ArrayType*v,
12891289
Oidtype,
1290-
char*(fn)(char*p, ...),
1290+
char* (*fn)(),
12911291
OidretType,
12921292
intnargs,
12931293
...)

‎src/include/utils/array.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* Copyright (c) 1994, Regents of the University of California
1212
*
13-
* $Id: array.h,v 1.16 1999/05/0319:10:25momjian Exp $
13+
* $Id: array.h,v 1.17 1999/05/0323:48:25tgl Exp $
1414
*
1515
* NOTES
1616
* XXX the data array should be LONGALIGN'd -- notice that the array
@@ -126,7 +126,8 @@ extern char *array_set(ArrayType *array, int n, int *indx, char *dataPtr,
126126
externchar*array_assgn(ArrayType*array,intn,int*upperIndx,
127127
int*lowerIndx,ArrayType*newArr,intreftype,
128128
intlen,bool*isNull);
129-
externArrayType*array_map(ArrayType*v,Oidtype,char*(fn)(char*p, ...),
129+
externArrayType*array_map(ArrayType*v,Oidtype,
130+
char* (*fn)(),
130131
OidretType,intnargs, ...);
131132
externintarray_eq(ArrayType*array1,ArrayType*array2);
132133
externint_LOtransfer(char**destfd,intsize,intnitems,char**srcfd,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp