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

Commit0faf7d9

Browse files
Harmonize parameter names in contrib code.
Make sure that function declarations use names that exactly match thecorresponding names from function definitions in contrib code.Like other recent commits that cleaned up function parameter names, thiscommit was written with help from clang-tidy.Author: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
1 parent8fb4e00 commit0faf7d9

File tree

21 files changed

+59
-58
lines changed

21 files changed

+59
-58
lines changed

‎contrib/amcheck/verify_nbtree.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void bt_child_highkey_check(BtreeCheckState *state,
159159
Pageloaded_child,
160160
uint32target_level);
161161
staticvoidbt_downlink_missing_check(BtreeCheckState*state,boolrightsplit,
162-
BlockNumbertargetblock,Pagetarget);
162+
BlockNumberblkno,Pagepage);
163163
staticvoidbt_tuple_present_callback(Relationindex,ItemPointertid,
164164
Datum*values,bool*isnull,
165165
booltupleIsAlive,void*checkstate);

‎contrib/cube/cube.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int32cube_cmp_v0(NDBOX *a, NDBOX *b);
9696
boolcube_contains_v0(NDBOX*a,NDBOX*b);
9797
boolcube_overlap_v0(NDBOX*a,NDBOX*b);
9898
NDBOX*cube_union_v0(NDBOX*a,NDBOX*b);
99-
voidrt_cube_size(NDBOX*a,double*sz);
99+
voidrt_cube_size(NDBOX*a,double*size);
100100
NDBOX*g_cube_binary_union(NDBOX*r1,NDBOX*r2,int*sizep);
101101
boolg_cube_leaf_consistent(NDBOX*key,NDBOX*query,StrategyNumberstrategy);
102102
boolg_cube_internal_consistent(NDBOX*key,NDBOX*query,StrategyNumberstrategy);

‎contrib/dblink/dblink.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static void dblink_security_check(PGconn *conn, remoteConn *rconn);
114114
staticvoiddblink_res_error(PGconn*conn,constchar*conname,PGresult*res,
115115
boolfail,constchar*fmt,...)pg_attribute_printf(5,6);
116116
staticchar*get_connect_string(constchar*servername);
117-
staticchar*escape_param_str(constchar*from);
117+
staticchar*escape_param_str(constchar*str);
118118
staticvoidvalidate_pkattnums(Relationrel,
119119
int2vector*pkattnums_arg,int32pknumatts_arg,
120120
int**pkattnums,int*pknumatts);

‎contrib/fuzzystrmatch/dmetaphone.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The remaining code is authored by Andrew Dunstan <amdunstan@ncshp.org> and
117117
#include<ctype.h>
118118

119119
/* prototype for the main function we got from the perl module */
120-
staticvoidDoubleMetaphone(char*,char**);
120+
staticvoidDoubleMetaphone(char*str,char**codes);
121121

122122
#ifndefDMETAPHONE_MAIN
123123

‎contrib/intarray/_int.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ArrayType *new_intArrayType(int num);
114114
ArrayType*copy_intArrayType(ArrayType*a);
115115
ArrayType*resize_intArrayType(ArrayType*a,intnum);
116116
intinternal_size(int*a,intlen);
117-
ArrayType*_int_unique(ArrayType*a);
117+
ArrayType*_int_unique(ArrayType*r);
118118
int32intarray_match_first(ArrayType*a,int32elem);
119119
ArrayType*intarray_add_elem(ArrayType*a,int32elem);
120120
ArrayType*intarray_concat_arrays(ArrayType*a,ArrayType*b);

‎contrib/intarray/_int_selfuncs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ PG_FUNCTION_INFO_V1(_int_contained_joinsel);
3434
PG_FUNCTION_INFO_V1(_int_matchsel);
3535

3636

37-
staticSelectivityint_query_opr_selec(ITEM*item,Datum*values,float4*freqs,
38-
intnmncelems,float4minfreq);
37+
staticSelectivityint_query_opr_selec(ITEM*item,Datum*mcelems,float4*mcefreqs,
38+
intnmcelems,float4minfreq);
3939
staticintcompare_val_int4(constvoid*a,constvoid*b);
4040

4141
/*

‎contrib/intarray/_int_tool.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,14 @@ intarray_concat_arrays(ArrayType *a, ArrayType *b)
382382
}
383383

384384
ArrayType*
385-
int_to_intset(int32n)
385+
int_to_intset(int32elem)
386386
{
387387
ArrayType*result;
388388
int32*aa;
389389

390390
result=new_intArrayType(1);
391391
aa=ARRPTR(result);
392-
aa[0]=n;
392+
aa[0]=elem;
393393
returnresult;
394394
}
395395

‎contrib/ltree/ltree.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ boolltree_execute(ITEM *curitem, void *checkval,
206206

207207
intltree_compare(constltree*a,constltree*b);
208208
boolinner_isparent(constltree*c,constltree*p);
209-
boolcompare_subnode(ltree_level*t,char*q,intlen,
209+
boolcompare_subnode(ltree_level*t,char*qn,intlen,
210210
int (*cmpptr) (constchar*,constchar*,size_t),boolanyend);
211211
ltree*lca_inner(ltree**a,intlen);
212212
intltree_strncasecmp(constchar*a,constchar*b,size_ts);

‎contrib/oid2name/oid2name.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ struct options
4848

4949
/* function prototypes */
5050
staticvoidhelp(constchar*progname);
51-
voidget_opts(int,char**,structoptions*);
51+
voidget_opts(intargc,char**argv,structoptions*my_opts);
5252
voidadd_one_elt(char*eltname,eary*eary);
5353
char*get_comma_elts(eary*eary);
54-
PGconn*sql_conn(structoptions*);
55-
intsql_exec(PGconn*,constchar*sql,boolquiet);
56-
voidsql_exec_dumpalldbs(PGconn*,structoptions*);
57-
voidsql_exec_dumpalltables(PGconn*,structoptions*);
58-
voidsql_exec_searchtables(PGconn*,structoptions*);
59-
voidsql_exec_dumpalltbspc(PGconn*,structoptions*);
54+
PGconn*sql_conn(structoptions*my_opts);
55+
intsql_exec(PGconn*conn,constchar*todo,boolquiet);
56+
voidsql_exec_dumpalldbs(PGconn*conn,structoptions*opts);
57+
voidsql_exec_dumpalltables(PGconn*conn,structoptions*opts);
58+
voidsql_exec_searchtables(PGconn*conn,structoptions*opts);
59+
voidsql_exec_dumpalltbspc(PGconn*conn,structoptions*opts);
6060

6161
/* function to parse command line options and check for some usage errors. */
6262
void

‎contrib/pgcrypto/mbuf.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,33 +82,33 @@ intmbuf_avail(MBuf *mbuf);
8282
intmbuf_size(MBuf*mbuf);
8383
intmbuf_grab(MBuf*mbuf,intlen,uint8**data_p);
8484
intmbuf_steal_data(MBuf*mbuf,uint8**data_p);
85-
intmbuf_append(MBuf*dst,constuint8*buf,intcnt);
85+
intmbuf_append(MBuf*dst,constuint8*buf,intlen);
8686
intmbuf_free(MBuf*mbuf);
8787

8888
/*
8989
* Push filter
9090
*/
91-
intpushf_create(PushFilter**res,constPushFilterOps*ops,void*init_arg,
92-
PushFilter*next);
91+
intpushf_create(PushFilter**mp_p,constPushFilterOps*op,
92+
void*init_arg,PushFilter*next);
9393
intpushf_write(PushFilter*mp,constuint8*data,intlen);
9494
voidpushf_free_all(PushFilter*mp);
9595
voidpushf_free(PushFilter*mp);
9696
intpushf_flush(PushFilter*mp);
9797

98-
intpushf_create_mbuf_writer(PushFilter**mp_p,MBuf*mbuf);
98+
intpushf_create_mbuf_writer(PushFilter**res,MBuf*dst);
9999

100100
/*
101101
* Pull filter
102102
*/
103-
intpullf_create(PullFilter**res,constPullFilterOps*ops,
103+
intpullf_create(PullFilter**pf_p,constPullFilterOps*op,
104104
void*init_arg,PullFilter*src);
105-
intpullf_read(PullFilter*mp,intlen,uint8**data_p);
106-
intpullf_read_max(PullFilter*mp,intlen,
105+
intpullf_read(PullFilter*pf,intlen,uint8**data_p);
106+
intpullf_read_max(PullFilter*pf,intlen,
107107
uint8**data_p,uint8*tmpbuf);
108-
voidpullf_free(PullFilter*mp);
108+
voidpullf_free(PullFilter*pf);
109109
intpullf_read_fixed(PullFilter*src,intlen,uint8*dst);
110110

111-
intpullf_create_mbuf_reader(PullFilter**pf_p,MBuf*mbuf);
111+
intpullf_create_mbuf_reader(PullFilter**mp_p,MBuf*src);
112112

113113
#defineGETBYTE(pf,dst) \
114114
do { \

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp