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

Commit24cab6b

Browse files
committed
Goodbye register keyword. Compiler knows better.
1 parentdf10360 commit24cab6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+494
-500
lines changed

‎src/backend/access/common/heaptuple.c

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.35 1998/02/06 20:17:49 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.36 1998/02/11 19:09:21 momjian Exp $
1212
*
1313
* NOTES
1414
* The old interface functions have been converted to macros
@@ -44,12 +44,6 @@ long heap_sysoffset[] = {
4444
offsetof(HeapTupleData,t_cmax)
4545
};
4646

47-
/* this is so the sparcstation debugger works */
48-
49-
#if !defined(NO_ASSERT_CHECKING)&& defined(sparc)&& defined(sunos4)
50-
#defineregister
51-
#endif/* !NO_ASSERT_CHECKING && sparc && sunos4 */
52-
5347
/* ----------------------------------------------------------------
5448
*misc support routines
5549
* ----------------------------------------------------------------
@@ -476,10 +470,10 @@ nocachegetattr(HeapTuple tup,
476470
* ----------------
477471
*/
478472
{
479-
registerinti=0;/* current offset in bp */
480-
registerintmask;/* bit in byte we're looking at */
481-
registercharn;/* current byte in bp */
482-
registerintbyte,
473+
inti=0;/* current offset in bp */
474+
intmask;/* bit in byte we're looking at */
475+
charn;/* current byte in bp */
476+
intbyte,
483477
finalbit;
484478

485479
byte=attnum >>3;
@@ -523,7 +517,7 @@ nocachegetattr(HeapTuple tup,
523517
}
524518
elseif (!HeapTupleAllFixed(tup))
525519
{
526-
registerintj=0;
520+
intj=0;
527521

528522
/*
529523
*In for(), we make this <= and not < because we want to
@@ -542,8 +536,8 @@ nocachegetattr(HeapTuple tup,
542536
*/
543537
if (!slow)
544538
{
545-
registerintj=1;
546-
registerlongoff;
539+
intj=1;
540+
longoff;
547541

548542
/*
549543
* need to set cache for some atts
@@ -624,9 +618,9 @@ nocachegetattr(HeapTuple tup,
624618
}
625619
else
626620
{
627-
registerboolusecache= true;
628-
registerintoff=0;
629-
registerinti;
621+
boolusecache= true;
622+
intoff=0;
623+
inti;
630624

631625
/*
632626
* Now we know that we have to walk the tuple CAREFULLY.
@@ -999,7 +993,7 @@ heap_addheader(uint32 natts,/* max domain index */
999993
intstructlen,/* its length */
1000994
char*structure)/* pointer to the struct */
1001995
{
1002-
registerchar*tp;/* tuple data pointer */
996+
char*tp;/* tuple data pointer */
1003997
HeapTupletup;
1004998
longlen;
1005999
inthoff;

‎src/backend/access/common/indextuple.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.26 1998/02/06 20:17:51 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.27 1998/02/11 19:09:23 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -41,7 +41,7 @@ index_formtuple(TupleDesc tupleDescriptor,
4141
Datumvalue[],
4242
charnull[])
4343
{
44-
registerchar*tp;/* tuple pointer */
44+
char*tp;/* tuple pointer */
4545
IndexTupletuple;/* return tuple */
4646
Sizesize,
4747
hoff;
@@ -137,10 +137,10 @@ nocache_index_getattr(IndexTuple tup,
137137
TupleDesctupleDesc,
138138
bool*isnull)
139139
{
140-
registerchar*tp;/* ptr to att in tuple */
141-
registerchar*bp=NULL;/* ptr to att in tuple */
140+
char*tp;/* ptr to att in tuple */
141+
char*bp=NULL;/* ptr to att in tuple */
142142
intslow;/* do we have to walk nulls? */
143-
registerintdata_off;/* tuple data offset */
143+
intdata_off;/* tuple data offset */
144144
AttributeTupleForm*att=tupleDesc->attrs;
145145

146146
/* ----------------
@@ -219,10 +219,10 @@ nocache_index_getattr(IndexTuple tup,
219219
* ----------------
220220
*/
221221
{
222-
registerinti=0;/* current offset in bp */
223-
registerintmask;/* bit in byte we're looking at */
224-
registercharn;/* current byte in bp */
225-
registerintbyte,
222+
inti=0;/* current offset in bp */
223+
intmask;/* bit in byte we're looking at */
224+
charn;/* current byte in bp */
225+
intbyte,
226226
finalbit;
227227

228228
byte=attnum >>3;
@@ -265,7 +265,7 @@ nocache_index_getattr(IndexTuple tup,
265265
}
266266
elseif (!IndexTupleAllFixed(tup))
267267
{
268-
registerintj=0;
268+
intj=0;
269269

270270
for (j=0;j<attnum&& !slow;j++)
271271
if (att[j]->attlen<1&& !VARLENA_FIXED_SIZE(att[j]))
@@ -281,8 +281,8 @@ nocache_index_getattr(IndexTuple tup,
281281

282282
if (!slow)
283283
{
284-
registerintj=1;
285-
registerlongoff;
284+
intj=1;
285+
longoff;
286286

287287
/*
288288
* need to set cache for some atts
@@ -346,9 +346,9 @@ nocache_index_getattr(IndexTuple tup,
346346
}
347347
else
348348
{
349-
registerboolusecache= true;
350-
registerintoff=0;
351-
registerinti;
349+
boolusecache= true;
350+
intoff=0;
351+
inti;
352352

353353
/*
354354
* Now we know that we have to walk the tuple CAREFULLY.

‎src/backend/access/common/printtup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.25 1998/02/10 16:02:44 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.26 1998/02/11 19:09:25 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -176,7 +176,7 @@ showatts(char *name, TupleDesc tupleDesc)
176176
void
177177
debugtup(HeapTupletuple,TupleDesctypeinfo)
178178
{
179-
registerinti;
179+
inti;
180180
Datumattr;
181181
char*value;
182182
boolisnull;

‎src/backend/access/heap/heapam.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/access/heap/heapam.c,v 1.25 1998/01/07 21:01:20 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.26 1998/02/11 19:09:30 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -791,7 +791,7 @@ heap_getnext(HeapScanDesc scandesc,
791791
intbackw,
792792
Buffer*b)
793793
{
794-
registerHeapScanDescsdesc=scandesc;
794+
HeapScanDescsdesc=scandesc;
795795
Bufferlocalb;
796796

797797
/* ----------------

‎src/backend/bootstrap/bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.35 1998/02/07 06:10:34 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.36 1998/02/11 19:09:34 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -979,7 +979,7 @@ LexIDStr(int ident_num)
979979
staticint
980980
CompHash(char*str,intlen)
981981
{
982-
registerintresult;
982+
intresult;
983983

984984
result= (NUM*str[0]+NUMSQR*str[len-1]+NUMCUBE*str[(len-1) /2]);
985985

‎src/backend/catalog/aclchk.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.4 1998/01/31 04:38:11 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.5 1998/02/11 19:09:42 momjian Exp $
1111
*
1212
* NOTES
1313
* See acl.h.
@@ -74,7 +74,7 @@ char *aclcheck_error_strings[] = {
7474
static
7575
dumpacl(Acl*acl)
7676
{
77-
registerunsignedi;
77+
unsignedi;
7878
AclItem*aip;
7979

8080
elog(DEBUG,"acl size = %d, # acls = %d",
@@ -94,7 +94,7 @@ ChangeAcl(char *relname,
9494
AclItem*mod_aip,
9595
unsignedmodechg)
9696
{
97-
registerunsignedi;
97+
unsignedi;
9898
Acl*old_acl= (Acl*)NULL,
9999
*new_acl;
100100
Relationrelation;
@@ -283,8 +283,8 @@ in_group(AclId uid, AclId gid)
283283
staticint32
284284
aclcheck(Acl*acl,AclIdid,AclIdTypeidtype,AclModemode)
285285
{
286-
registerunsignedi;
287-
registerAclItem*aip,
286+
unsignedi;
287+
AclItem*aip,
288288
*aidat;
289289
unsignednum,
290290
found_group;

‎src/backend/catalog/catalog.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/catalog/catalog.c,v 1.13 1998/01/16 23:19:23 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.14 1998/02/1119:09:47 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -155,7 +155,7 @@ void
155155
fillatt(TupleDesctupleDesc)
156156
{
157157
AttributeTupleForm*attributeP;
158-
registerTypeTupleFormtypp;
158+
TypeTupleFormtypp;
159159
HeapTupletuple;
160160
inti;
161161
intnatts=tupleDesc->natts;

‎src/backend/catalog/heap.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/catalog/heap.c,v 1.45 1998/02/07 06:10:39 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.46 1998/02/11 19:09:54 momjian Exp $
1111
*
1212
* INTERFACE ROUTINES
1313
*heap_create()- Create an uncataloged heap relation
@@ -171,7 +171,7 @@ Relation
171171
heap_create(char*name,
172172
TupleDesctupDesc)
173173
{
174-
registerunsignedi;
174+
unsignedi;
175175
Oidrelid;
176176
Relationrdesc;
177177
intlen;

‎src/backend/catalog/pg_aggregate.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/catalog/pg_aggregate.c,v 1.11 1998/01/06 19:42:30 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.12 1998/02/11 19:10:03 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -64,7 +64,7 @@ AggregateCreate(char *aggName,
6464
char*agginitval1,
6565
char*agginitval2)
6666
{
67-
registeri;
67+
inti;
6868
Relationaggdesc;
6969
HeapTupletup;
7070
charnulls[Natts_pg_aggregate];

‎src/backend/catalog/pg_operator.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.20 1998/01/15 19:42:30 pgsql Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.21 1998/02/11 19:10:11 momjian Exp $
1111
*
1212
* NOTES
1313
* these routines moved here from commands/define.c and somewhat cleaned up.
@@ -224,7 +224,7 @@ OperatorShellMakeWithOpenRelation(Relation pg_operator_desc,
224224
OidleftObjectId,
225225
OidrightObjectId)
226226
{
227-
registerinti;
227+
inti;
228228
HeapTupletup;
229229
Datumvalues[Natts_pg_operator];
230230
charnulls[Natts_pg_operator];
@@ -452,7 +452,7 @@ OperatorDef(char *operatorName,
452452
char*leftSortName,
453453
char*rightSortName)
454454
{
455-
registeri,
455+
inti,
456456
j;
457457
Relationpg_operator_desc;
458458

@@ -767,7 +767,7 @@ OperatorDef(char *operatorName,
767767
staticvoid
768768
OperatorUpd(OidbaseId,OidcommId,OidnegId)
769769
{
770-
registeri;
770+
inti;
771771
Relationpg_operator_desc;
772772
HeapScanDescpg_operator_scan;
773773
HeapTupletup;

‎src/backend/catalog/pg_proc.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/catalog/pg_proc.c,v 1.13 1998/01/06 19:42:32 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.14 1998/02/11 19:10:16 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -55,7 +55,7 @@ ProcedureCreate(char *procedureName,
5555
List*argList,
5656
CommandDestdest)
5757
{
58-
registeri;
58+
inti;
5959
Relationrdesc;
6060
HeapTupletup;
6161
booldefined;

‎src/backend/catalog/pg_type.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.18 1998/01/15 19:42:30 pgsql Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.19 1998/02/11 19:10:18 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -155,7 +155,7 @@ TypeGet(char *typeName,/* name of type to be fetched */
155155
staticOid
156156
TypeShellMakeWithOpenRelation(Relationpg_type_desc,char*typeName)
157157
{
158-
registerinti;
158+
inti;
159159
HeapTupletup;
160160
Datumvalues[Natts_pg_type];
161161
charnulls[Natts_pg_type];
@@ -297,7 +297,7 @@ TypeCreate(char *typeName,
297297
boolpassedByValue,
298298
charalignment)
299299
{
300-
registeri,
300+
inti,
301301
j;
302302
Relationpg_type_desc;
303303
HeapScanDescpg_type_scan;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp