Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
24cab6bd
Commit
24cab6bd
authored
Feb 11, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Goodbye register keyword. Compiler knows better.
parent
df10360d
Changes
50
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
494 additions
and
500 deletions
+494
-500
src/backend/access/common/heaptuple.c
src/backend/access/common/heaptuple.c
+12
-18
src/backend/access/common/indextuple.c
src/backend/access/common/indextuple.c
+15
-15
src/backend/access/common/printtup.c
src/backend/access/common/printtup.c
+2
-2
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+2
-2
src/backend/bootstrap/bootstrap.c
src/backend/bootstrap/bootstrap.c
+2
-2
src/backend/catalog/aclchk.c
src/backend/catalog/aclchk.c
+5
-5
src/backend/catalog/catalog.c
src/backend/catalog/catalog.c
+2
-2
src/backend/catalog/heap.c
src/backend/catalog/heap.c
+2
-2
src/backend/catalog/pg_aggregate.c
src/backend/catalog/pg_aggregate.c
+2
-2
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_operator.c
+4
-4
src/backend/catalog/pg_proc.c
src/backend/catalog/pg_proc.c
+2
-2
src/backend/catalog/pg_type.c
src/backend/catalog/pg_type.c
+3
-3
src/backend/commands/remove.c
src/backend/commands/remove.c
+2
-2
src/backend/executor/nodeHash.c
src/backend/executor/nodeHash.c
+4
-4
src/backend/lib/qsort.c
src/backend/lib/qsort.c
+8
-8
src/backend/optimizer/util/plancat.c
src/backend/optimizer/util/plancat.c
+3
-3
src/backend/port/dynloader/aix.c
src/backend/port/dynloader/aix.c
+10
-10
src/backend/port/getrusage.c
src/backend/port/getrusage.c
+2
-2
src/backend/port/inet_aton.c
src/backend/port/inet_aton.c
+5
-5
src/backend/port/strcasecmp.c
src/backend/port/strcasecmp.c
+2
-2
src/backend/port/strtol.c
src/backend/port/strtol.c
+6
-6
src/backend/regex/engine.c
src/backend/regex/engine.c
+73
-73
src/backend/regex/regcomp.c
src/backend/regex/regcomp.c
+202
-202
src/backend/regex/regerror.c
src/backend/regex/regerror.c
+5
-5
src/backend/regex/regexec.c
src/backend/regex/regexec.c
+1
-1
src/backend/regex/regfree.c
src/backend/regex/regfree.c
+1
-1
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/bufmgr.c
+7
-7
src/backend/storage/page/bufpage.c
src/backend/storage/page/bufpage.c
+2
-2
src/backend/utils/adt/acl.c
src/backend/utils/adt/acl.c
+2
-2
src/backend/utils/adt/chunk.c
src/backend/utils/adt/chunk.c
+3
-3
src/backend/utils/adt/date.c
src/backend/utils/adt/date.c
+6
-6
src/backend/utils/adt/dt.c
src/backend/utils/adt/dt.c
+3
-3
src/backend/utils/adt/int.c
src/backend/utils/adt/int.c
+6
-6
src/backend/utils/adt/like.c
src/backend/utils/adt/like.c
+3
-3
src/backend/utils/adt/numutils.c
src/backend/utils/adt/numutils.c
+7
-7
src/backend/utils/adt/oid.c
src/backend/utils/adt/oid.c
+5
-5
src/backend/utils/adt/regproc.c
src/backend/utils/adt/regproc.c
+3
-3
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/selfuncs.c
+3
-3
src/backend/utils/cache/catcache.c
src/backend/utils/cache/catcache.c
+3
-3
src/backend/utils/cache/syscache.c
src/backend/utils/cache/syscache.c
+2
-2
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+3
-3
src/backend/utils/error/exc.c
src/backend/utils/error/exc.c
+2
-2
src/backend/utils/fmgr/fmgr.c
src/backend/utils/fmgr/fmgr.c
+3
-3
src/backend/utils/hash/dynahash.c
src/backend/utils/hash/dynahash.c
+9
-9
src/backend/utils/hash/hashfn.c
src/backend/utils/hash/hashfn.c
+7
-7
src/backend/utils/mmgr/oset.c
src/backend/utils/mmgr/oset.c
+3
-3
src/backend/utils/sort/lselect.c
src/backend/utils/sort/lselect.c
+7
-7
src/backend/utils/sort/psort.c
src/backend/utils/sort/psort.c
+23
-23
src/interfaces/libpgtcl/pgtclCmds.c
src/interfaces/libpgtcl/pgtclCmds.c
+3
-3
src/test/regress/regress.c
src/test/regress/regress.c
+2
-2
No files found.
src/backend/access/common/heaptuple.c
View file @
24cab6bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.3
5 1998/02/06 20:17:49
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.3
6 1998/02/11 19:09:21
momjian Exp $
*
*
* NOTES
* NOTES
* The old interface functions have been converted to macros
* The old interface functions have been converted to macros
...
@@ -44,12 +44,6 @@ long heap_sysoffset[] = {
...
@@ -44,12 +44,6 @@ long heap_sysoffset[] = {
offsetof
(
HeapTupleData
,
t_cmax
)
offsetof
(
HeapTupleData
,
t_cmax
)
};
};
/* this is so the sparcstation debugger works */
#if !defined(NO_ASSERT_CHECKING) && defined(sparc) && defined(sunos4)
#define register
#endif
/* !NO_ASSERT_CHECKING && sparc && sunos4 */
/* ----------------------------------------------------------------
/* ----------------------------------------------------------------
* misc support routines
* misc support routines
* ----------------------------------------------------------------
* ----------------------------------------------------------------
...
@@ -476,10 +470,10 @@ nocachegetattr(HeapTuple tup,
...
@@ -476,10 +470,10 @@ nocachegetattr(HeapTuple tup,
* ----------------
* ----------------
*/
*/
{
{
register
int
i
=
0
;
/* current offset in bp */
int
i
=
0
;
/* current offset in bp */
register
int
mask
;
/* bit in byte we're looking at */
int
mask
;
/* bit in byte we're looking at */
register
char
n
;
/* current byte in bp */
char
n
;
/* current byte in bp */
register
int
byte
,
int
byte
,
finalbit
;
finalbit
;
byte
=
attnum
>>
3
;
byte
=
attnum
>>
3
;
...
@@ -523,7 +517,7 @@ nocachegetattr(HeapTuple tup,
...
@@ -523,7 +517,7 @@ nocachegetattr(HeapTuple tup,
}
}
else
if
(
!
HeapTupleAllFixed
(
tup
))
else
if
(
!
HeapTupleAllFixed
(
tup
))
{
{
register
int
j
=
0
;
int
j
=
0
;
/*
/*
* In for(), we make this <= and not < because we want to
* In for(), we make this <= and not < because we want to
...
@@ -542,8 +536,8 @@ nocachegetattr(HeapTuple tup,
...
@@ -542,8 +536,8 @@ nocachegetattr(HeapTuple tup,
*/
*/
if
(
!
slow
)
if
(
!
slow
)
{
{
register
int
j
=
1
;
int
j
=
1
;
register
long
off
;
long
off
;
/*
/*
* need to set cache for some atts
* need to set cache for some atts
...
@@ -624,9 +618,9 @@ nocachegetattr(HeapTuple tup,
...
@@ -624,9 +618,9 @@ nocachegetattr(HeapTuple tup,
}
}
else
else
{
{
register
bool
usecache
=
true
;
bool
usecache
=
true
;
register
int
off
=
0
;
int
off
=
0
;
register
int
i
;
int
i
;
/*
/*
* Now we know that we have to walk the tuple CAREFULLY.
* Now we know that we have to walk the tuple CAREFULLY.
...
@@ -999,7 +993,7 @@ heap_addheader(uint32 natts, /* max domain index */
...
@@ -999,7 +993,7 @@ heap_addheader(uint32 natts, /* max domain index */
int
structlen
,
/* its length */
int
structlen
,
/* its length */
char
*
structure
)
/* pointer to the struct */
char
*
structure
)
/* pointer to the struct */
{
{
register
char
*
tp
;
/* tuple data pointer */
char
*
tp
;
/* tuple data pointer */
HeapTuple
tup
;
HeapTuple
tup
;
long
len
;
long
len
;
int
hoff
;
int
hoff
;
...
...
src/backend/access/common/indextuple.c
View file @
24cab6bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.2
6 1998/02/06 20:17:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.2
7 1998/02/11 19:09:23
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -41,7 +41,7 @@ index_formtuple(TupleDesc tupleDescriptor,
...
@@ -41,7 +41,7 @@ index_formtuple(TupleDesc tupleDescriptor,
Datum
value
[],
Datum
value
[],
char
null
[])
char
null
[])
{
{
register
char
*
tp
;
/* tuple pointer */
char
*
tp
;
/* tuple pointer */
IndexTuple
tuple
;
/* return tuple */
IndexTuple
tuple
;
/* return tuple */
Size
size
,
Size
size
,
hoff
;
hoff
;
...
@@ -137,10 +137,10 @@ nocache_index_getattr(IndexTuple tup,
...
@@ -137,10 +137,10 @@ nocache_index_getattr(IndexTuple tup,
TupleDesc
tupleDesc
,
TupleDesc
tupleDesc
,
bool
*
isnull
)
bool
*
isnull
)
{
{
register
char
*
tp
;
/* ptr to att in tuple */
char
*
tp
;
/* ptr to att in tuple */
register
char
*
bp
=
NULL
;
/* ptr to att in tuple */
char
*
bp
=
NULL
;
/* ptr to att in tuple */
int
slow
;
/* do we have to walk nulls? */
int
slow
;
/* do we have to walk nulls? */
register
int
data_off
;
/* tuple data offset */
int
data_off
;
/* tuple data offset */
AttributeTupleForm
*
att
=
tupleDesc
->
attrs
;
AttributeTupleForm
*
att
=
tupleDesc
->
attrs
;
/* ----------------
/* ----------------
...
@@ -219,10 +219,10 @@ nocache_index_getattr(IndexTuple tup,
...
@@ -219,10 +219,10 @@ nocache_index_getattr(IndexTuple tup,
* ----------------
* ----------------
*/
*/
{
{
register
int
i
=
0
;
/* current offset in bp */
int
i
=
0
;
/* current offset in bp */
register
int
mask
;
/* bit in byte we're looking at */
int
mask
;
/* bit in byte we're looking at */
register
char
n
;
/* current byte in bp */
char
n
;
/* current byte in bp */
register
int
byte
,
int
byte
,
finalbit
;
finalbit
;
byte
=
attnum
>>
3
;
byte
=
attnum
>>
3
;
...
@@ -265,7 +265,7 @@ nocache_index_getattr(IndexTuple tup,
...
@@ -265,7 +265,7 @@ nocache_index_getattr(IndexTuple tup,
}
}
else
if
(
!
IndexTupleAllFixed
(
tup
))
else
if
(
!
IndexTupleAllFixed
(
tup
))
{
{
register
int
j
=
0
;
int
j
=
0
;
for
(
j
=
0
;
j
<
attnum
&&
!
slow
;
j
++
)
for
(
j
=
0
;
j
<
attnum
&&
!
slow
;
j
++
)
if
(
att
[
j
]
->
attlen
<
1
&&
!
VARLENA_FIXED_SIZE
(
att
[
j
]))
if
(
att
[
j
]
->
attlen
<
1
&&
!
VARLENA_FIXED_SIZE
(
att
[
j
]))
...
@@ -281,8 +281,8 @@ nocache_index_getattr(IndexTuple tup,
...
@@ -281,8 +281,8 @@ nocache_index_getattr(IndexTuple tup,
if
(
!
slow
)
if
(
!
slow
)
{
{
register
int
j
=
1
;
int
j
=
1
;
register
long
off
;
long
off
;
/*
/*
* need to set cache for some atts
* need to set cache for some atts
...
@@ -346,9 +346,9 @@ nocache_index_getattr(IndexTuple tup,
...
@@ -346,9 +346,9 @@ nocache_index_getattr(IndexTuple tup,
}
}
else
else
{
{
register
bool
usecache
=
true
;
bool
usecache
=
true
;
register
int
off
=
0
;
int
off
=
0
;
register
int
i
;
int
i
;
/*
/*
* Now we know that we have to walk the tuple CAREFULLY.
* Now we know that we have to walk the tuple CAREFULLY.
...
...
src/backend/access/common/printtup.c
View file @
24cab6bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.2
5 1998/02/10 16:02:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.2
6 1998/02/11 19:09:25
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -176,7 +176,7 @@ showatts(char *name, TupleDesc tupleDesc)
...
@@ -176,7 +176,7 @@ showatts(char *name, TupleDesc tupleDesc)
void
void
debugtup
(
HeapTuple
tuple
,
TupleDesc
typeinfo
)
debugtup
(
HeapTuple
tuple
,
TupleDesc
typeinfo
)
{
{
register
int
i
;
int
i
;
Datum
attr
;
Datum
attr
;
char
*
value
;
char
*
value
;
bool
isnull
;
bool
isnull
;
...
...
src/backend/access/heap/heapam.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.2
5 1998/01/07 21:01:2
0 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.2
6 1998/02/11 19:09:3
0 momjian Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -791,7 +791,7 @@ heap_getnext(HeapScanDesc scandesc,
...
@@ -791,7 +791,7 @@ heap_getnext(HeapScanDesc scandesc,
int
backw
,
int
backw
,
Buffer
*
b
)
Buffer
*
b
)
{
{
register
HeapScanDesc
sdesc
=
scandesc
;
HeapScanDesc
sdesc
=
scandesc
;
Buffer
localb
;
Buffer
localb
;
/* ----------------
/* ----------------
...
...
src/backend/bootstrap/bootstrap.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.3
5 1998/02/07 06:10
:34 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.3
6 1998/02/11 19:09
:34 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -979,7 +979,7 @@ LexIDStr(int ident_num)
...
@@ -979,7 +979,7 @@ LexIDStr(int ident_num)
static
int
static
int
CompHash
(
char
*
str
,
int
len
)
CompHash
(
char
*
str
,
int
len
)
{
{
register
int
result
;
int
result
;
result
=
(
NUM
*
str
[
0
]
+
NUMSQR
*
str
[
len
-
1
]
+
NUMCUBE
*
str
[(
len
-
1
)
/
2
]);
result
=
(
NUM
*
str
[
0
]
+
NUMSQR
*
str
[
len
-
1
]
+
NUMCUBE
*
str
[(
len
-
1
)
/
2
]);
...
...
src/backend/catalog/aclchk.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.
4 1998/01/31 04:38:11
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.
5 1998/02/11 19:09:42
momjian Exp $
*
*
* NOTES
* NOTES
* See acl.h.
* See acl.h.
...
@@ -74,7 +74,7 @@ char *aclcheck_error_strings[] = {
...
@@ -74,7 +74,7 @@ char *aclcheck_error_strings[] = {
static
static
dumpacl
(
Acl
*
acl
)
dumpacl
(
Acl
*
acl
)
{
{
register
unsigned
i
;
unsigned
i
;
AclItem
*
aip
;
AclItem
*
aip
;
elog
(
DEBUG
,
"acl size = %d, # acls = %d"
,
elog
(
DEBUG
,
"acl size = %d, # acls = %d"
,
...
@@ -94,7 +94,7 @@ ChangeAcl(char *relname,
...
@@ -94,7 +94,7 @@ ChangeAcl(char *relname,
AclItem
*
mod_aip
,
AclItem
*
mod_aip
,
unsigned
modechg
)
unsigned
modechg
)
{
{
register
unsigned
i
;
unsigned
i
;
Acl
*
old_acl
=
(
Acl
*
)
NULL
,
Acl
*
old_acl
=
(
Acl
*
)
NULL
,
*
new_acl
;
*
new_acl
;
Relation
relation
;
Relation
relation
;
...
@@ -283,8 +283,8 @@ in_group(AclId uid, AclId gid)
...
@@ -283,8 +283,8 @@ in_group(AclId uid, AclId gid)
static
int32
static
int32
aclcheck
(
Acl
*
acl
,
AclId
id
,
AclIdType
idtype
,
AclMode
mode
)
aclcheck
(
Acl
*
acl
,
AclId
id
,
AclIdType
idtype
,
AclMode
mode
)
{
{
register
unsigned
i
;
unsigned
i
;
register
AclItem
*
aip
,
AclItem
*
aip
,
*
aidat
;
*
aidat
;
unsigned
num
,
unsigned
num
,
found_group
;
found_group
;
...
...
src/backend/catalog/catalog.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.1
3 1998/01/16 23:19:23
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/catalog.c,v 1.1
4 1998/02/11 19:09:47
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -155,7 +155,7 @@ void
...
@@ -155,7 +155,7 @@ void
fillatt
(
TupleDesc
tupleDesc
)
fillatt
(
TupleDesc
tupleDesc
)
{
{
AttributeTupleForm
*
attributeP
;
AttributeTupleForm
*
attributeP
;
register
TypeTupleForm
typp
;
TypeTupleForm
typp
;
HeapTuple
tuple
;
HeapTuple
tuple
;
int
i
;
int
i
;
int
natts
=
tupleDesc
->
natts
;
int
natts
=
tupleDesc
->
natts
;
...
...
src/backend/catalog/heap.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.4
5 1998/02/07 06:10:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.4
6 1998/02/11 19:09:54
momjian Exp $
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
* heap_create() - Create an uncataloged heap relation
* heap_create() - Create an uncataloged heap relation
...
@@ -171,7 +171,7 @@ Relation
...
@@ -171,7 +171,7 @@ Relation
heap_create
(
char
*
name
,
heap_create
(
char
*
name
,
TupleDesc
tupDesc
)
TupleDesc
tupDesc
)
{
{
register
unsigned
i
;
unsigned
i
;
Oid
relid
;
Oid
relid
;
Relation
rdesc
;
Relation
rdesc
;
int
len
;
int
len
;
...
...
src/backend/catalog/pg_aggregate.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.1
1 1998/01/06 19:42:30
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_aggregate.c,v 1.1
2 1998/02/11 19:10:03
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -64,7 +64,7 @@ AggregateCreate(char *aggName,
...
@@ -64,7 +64,7 @@ AggregateCreate(char *aggName,
char
*
agginitval1
,
char
*
agginitval1
,
char
*
agginitval2
)
char
*
agginitval2
)
{
{
register
i
;
int
i
;
Relation
aggdesc
;
Relation
aggdesc
;
HeapTuple
tup
;
HeapTuple
tup
;
char
nulls
[
Natts_pg_aggregate
];
char
nulls
[
Natts_pg_aggregate
];
...
...
src/backend/catalog/pg_operator.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.2
0 1998/01/15 19:42:30 pgsql
Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.2
1 1998/02/11 19:10:11 momjian
Exp $
*
*
* NOTES
* NOTES
* these routines moved here from commands/define.c and somewhat cleaned up.
* these routines moved here from commands/define.c and somewhat cleaned up.
...
@@ -224,7 +224,7 @@ OperatorShellMakeWithOpenRelation(Relation pg_operator_desc,
...
@@ -224,7 +224,7 @@ OperatorShellMakeWithOpenRelation(Relation pg_operator_desc,
Oid
leftObjectId
,
Oid
leftObjectId
,
Oid
rightObjectId
)
Oid
rightObjectId
)
{
{
register
int
i
;
int
i
;
HeapTuple
tup
;
HeapTuple
tup
;
Datum
values
[
Natts_pg_operator
];
Datum
values
[
Natts_pg_operator
];
char
nulls
[
Natts_pg_operator
];
char
nulls
[
Natts_pg_operator
];
...
@@ -452,7 +452,7 @@ OperatorDef(char *operatorName,
...
@@ -452,7 +452,7 @@ OperatorDef(char *operatorName,
char
*
leftSortName
,
char
*
leftSortName
,
char
*
rightSortName
)
char
*
rightSortName
)
{
{
register
i
,
int
i
,
j
;
j
;
Relation
pg_operator_desc
;
Relation
pg_operator_desc
;
...
@@ -767,7 +767,7 @@ OperatorDef(char *operatorName,
...
@@ -767,7 +767,7 @@ OperatorDef(char *operatorName,
static
void
static
void
OperatorUpd
(
Oid
baseId
,
Oid
commId
,
Oid
negId
)
OperatorUpd
(
Oid
baseId
,
Oid
commId
,
Oid
negId
)
{
{
register
i
;
int
i
;
Relation
pg_operator_desc
;
Relation
pg_operator_desc
;
HeapScanDesc
pg_operator_scan
;
HeapScanDesc
pg_operator_scan
;
HeapTuple
tup
;
HeapTuple
tup
;
...
...
src/backend/catalog/pg_proc.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.1
3 1998/01/06 19:42:32
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.1
4 1998/02/11 19:10:16
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -55,7 +55,7 @@ ProcedureCreate(char *procedureName,
...
@@ -55,7 +55,7 @@ ProcedureCreate(char *procedureName,
List
*
argList
,
List
*
argList
,
CommandDest
dest
)
CommandDest
dest
)
{
{
register
i
;
int
i
;
Relation
rdesc
;
Relation
rdesc
;
HeapTuple
tup
;
HeapTuple
tup
;
bool
defined
;
bool
defined
;
...
...
src/backend/catalog/pg_type.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.1
8 1998/01/15 19:42:30 pgsql
Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_type.c,v 1.1
9 1998/02/11 19:10:18 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -155,7 +155,7 @@ TypeGet(char *typeName, /* name of type to be fetched */
...
@@ -155,7 +155,7 @@ TypeGet(char *typeName, /* name of type to be fetched */
static
Oid
static
Oid
TypeShellMakeWithOpenRelation
(
Relation
pg_type_desc
,
char
*
typeName
)
TypeShellMakeWithOpenRelation
(
Relation
pg_type_desc
,
char
*
typeName
)
{
{
register
int
i
;
int
i
;
HeapTuple
tup
;
HeapTuple
tup
;
Datum
values
[
Natts_pg_type
];
Datum
values
[
Natts_pg_type
];
char
nulls
[
Natts_pg_type
];
char
nulls
[
Natts_pg_type
];
...
@@ -297,7 +297,7 @@ TypeCreate(char *typeName,
...
@@ -297,7 +297,7 @@ TypeCreate(char *typeName,
bool
passedByValue
,
bool
passedByValue
,
char
alignment
)
char
alignment
)
{
{
register
i
,
int
i
,
j
;
j
;
Relation
pg_type_desc
;
Relation
pg_type_desc
;
HeapScanDesc
pg_type_scan
;
HeapScanDesc
pg_type_scan
;
...
...
src/backend/commands/remove.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.2
1 1998/01/15 19:42:38 pgsql
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.2
2 1998/02/11 19:10:20 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -156,7 +156,7 @@ SingleOpOperatorRemove(Oid typeOid)
...
@@ -156,7 +156,7 @@ SingleOpOperatorRemove(Oid typeOid)
ItemPointerData
itemPointerData
;
ItemPointerData
itemPointerData
;
Buffer
buffer
;
Buffer
buffer
;
static
attnums
[
3
]
=
{
7
,
8
,
9
};
/* left, right, return */
static
attnums
[
3
]
=
{
7
,
8
,
9
};
/* left, right, return */
register
i
;
int
i
;
ScanKeyEntryInitialize
(
&
key
[
0
],
ScanKeyEntryInitialize
(
&
key
[
0
],
0
,
0
,
ObjectIdEqualRegProcedure
,
(
Datum
)
typeOid
);
0
,
0
,
ObjectIdEqualRegProcedure
,
(
Datum
)
typeOid
);
...
...
src/backend/executor/nodeHash.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.1
7 1998/01/25 05:13:03
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.1
8 1998/02/11 19:10:28
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -780,9 +780,9 @@ ExecScanHashBucket(HashJoinState *hjstate,
...
@@ -780,9 +780,9 @@ ExecScanHashBucket(HashJoinState *hjstate,
static
int
static
int
hashFunc
(
char
*
key
,
int
len
)
hashFunc
(
char
*
key
,
int
len
)
{
{
register
unsigned
int
h
;
unsigned
int
h
;
register
int
l
;
int
l
;
register
unsigned
char
*
k
;
unsigned
char
*
k
;
/*
/*
* If this is a variable length type, then 'k' points to a "struct
* If this is a variable length type, then 'k' points to a "struct
...
...
src/backend/lib/qsort.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/qsort.c,v 1.
4 1997/09/08 02:23:03
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/lib/Attic/qsort.c,v 1.
5 1998/02/11 19:10:35
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -129,13 +129,13 @@ pg_qsort(void *bot,
...
@@ -129,13 +129,13 @@ pg_qsort(void *bot,
static
void
static
void
quick_sort
(
char
*
bot
,
int
nmemb
,
int
size
,
int
(
*
compar
)
())
quick_sort
(
char
*
bot
,
int
nmemb
,
int
size
,
int
(
*
compar
)
())
{
{
register
int
cnt
;
int
cnt
;
register
u_char
ch
;
u_char
ch
;
register
char
*
top
,
char
*
top
,
*
mid
,
*
mid
,
*
t1
,
*
t1
,
*
t2
;
*
t2
;
register
int
n1
,
int
n1
,
n2
;
n2
;
char
*
bsv
;
char
*
bsv
;
...
@@ -277,9 +277,9 @@ swap: SWAP(bot, replace);
...
@@ -277,9 +277,9 @@ swap: SWAP(bot, replace);
static
void
static
void
insertion_sort
(
char
*
bot
,
int
nmemb
,
int
size
,
int
(
*
compar
)
())
insertion_sort
(
char
*
bot
,
int
nmemb
,
int
size
,
int
(
*
compar
)
())
{
{
register
int
cnt
;
int
cnt
;
register
u_char
ch
;
u_char
ch
;
register
char
*
s1
,
char
*
s1
,
*
s2
,
*
s2
,
*
t1
,
*
t1
,
*
t2
,
*
t2
,
...
...
src/backend/optimizer/util/plancat.c
View file @
24cab6bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.1
4 1998/01/15 19:44:41 pgsql
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.1
5 1998/02/11 19:10:47 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -103,7 +103,7 @@ relation_info(Query *root, Index relid,
...
@@ -103,7 +103,7 @@ relation_info(Query *root, Index relid,
bool
bool
index_info
(
Query
*
root
,
bool
first
,
int
relid
,
IdxInfoRetval
*
info
)
index_info
(
Query
*
root
,
bool
first
,
int
relid
,
IdxInfoRetval
*
info
)
{
{
register
i
;
int
i
;
HeapTuple
indexTuple
,
HeapTuple
indexTuple
,
amopTuple
;
amopTuple
;
IndexTupleForm
index
;
IndexTupleForm
index
;
...
@@ -514,7 +514,7 @@ IndexSelectivity(Oid indexrelid,
...
@@ -514,7 +514,7 @@ IndexSelectivity(Oid indexrelid,
float
*
idxPages
,
float
*
idxPages
,
float
*
idxSelec
)
float
*
idxSelec
)
{
{
register
i
,
int
i
,
n
;
n
;
HeapTuple
indexTuple
,
HeapTuple
indexTuple
,
amopTuple
,
amopTuple
,
...
...
src/backend/port/dynloader/aix.c
View file @
24cab6bd
...
@@ -75,7 +75,7 @@ static void *findMain(void);
...
@@ -75,7 +75,7 @@ static void *findMain(void);
void
*
void
*
dlopen
(
const
char
*
path
,
int
mode
)
dlopen
(
const
char
*
path
,
int
mode
)
{
{
register
ModulePtr
mp
;
ModulePtr
mp
;
static
void
*
mainModule
;
static
void
*
mainModule
;
/*
/*
...
@@ -168,7 +168,7 @@ dlopen(const char *path, int mode)
...
@@ -168,7 +168,7 @@ dlopen(const char *path, int mode)
*/
*/
if
(
mode
&
RTLD_GLOBAL
)
if
(
mode
&
RTLD_GLOBAL
)
{
{
register
ModulePtr
mp1
;
ModulePtr
mp1
;
for
(
mp1
=
mp
->
next
;
mp1
;
mp1
=
mp1
->
next
)
for
(
mp1
=
mp
->
next
;
mp1
;
mp1
=
mp1
->
next
)
if
(
loadbind
(
0
,
mp1
->
entry
,
mp
->
entry
)
==
-
1
)
if
(
loadbind
(
0
,
mp1
->
entry
,
mp
->
entry
)
==
-
1
)
...
@@ -221,7 +221,7 @@ dlopen(const char *path, int mode)
...
@@ -221,7 +221,7 @@ dlopen(const char *path, int mode)
static
void
static
void
caterr
(
char
*
s
)
caterr
(
char
*
s
)
{
{
register
char
*
p
=
s
;
char
*
p
=
s
;
while
(
*
p
>=
'0'
&&
*
p
<=
'9'
)
while
(
*
p
>=
'0'
&&
*
p
<=
'9'
)
p
++
;
p
++
;
...
@@ -258,9 +258,9 @@ caterr(char *s)
...
@@ -258,9 +258,9 @@ caterr(char *s)
void
*
void
*
dlsym
(
void
*
handle
,
const
char
*
symbol
)
dlsym
(
void
*
handle
,
const
char
*
symbol
)
{
{
register
ModulePtr
mp
=
(
ModulePtr
)
handle
;
ModulePtr
mp
=
(
ModulePtr
)
handle
;
register
ExportPtr
ep
;
ExportPtr
ep
;
register
int
i
;
int
i
;
/*
/*
* Could speed up the search, but I assume that one assigns the result
* Could speed up the search, but I assume that one assigns the result
...
@@ -289,9 +289,9 @@ dlerror(void)
...
@@ -289,9 +289,9 @@ dlerror(void)
int
int
dlclose
(
void
*
handle
)
dlclose
(
void
*
handle
)
{
{
register
ModulePtr
mp
=
(
ModulePtr
)
handle
;
ModulePtr
mp
=
(
ModulePtr
)
handle
;
int
result
;
int
result
;
register
ModulePtr
mp1
;
ModulePtr
mp1
;
if
(
--
mp
->
refCnt
>
0
)
if
(
--
mp
->
refCnt
>
0
)
return
0
;
return
0
;
...
@@ -311,8 +311,8 @@ dlclose(void *handle)
...
@@ -311,8 +311,8 @@ dlclose(void *handle)
}
}
if
(
mp
->
exports
)
if
(
mp
->
exports
)
{
{
register
ExportPtr
ep
;
ExportPtr
ep
;
register
int
i
;
int
i
;
for
(
ep
=
mp
->
exports
,
i
=
mp
->
nExports
;
i
;
i
--
,
ep
++
)
for
(
ep
=
mp
->
exports
,
i
=
mp
->
nExports
;
i
;
i
--
,
ep
++
)
if
(
ep
->
name
)
if
(
ep
->
name
)
...
...
src/backend/port/getrusage.c
View file @
24cab6bd
/* $Id: getrusage.c,v 1.
4 1998/02/01 00:02:59 scrappy
Exp $ */
/* $Id: getrusage.c,v 1.
5 1998/02/11 19:10:57 momjian
Exp $ */
#include <math.h>
/* for pow() prototype */
#include <math.h>
/* for pow() prototype */
...
@@ -15,7 +15,7 @@ int
...
@@ -15,7 +15,7 @@ int
getrusage(int who, struct rusage * rusage)
getrusage(int who, struct rusage * rusage)
{
{
struct tms tms;
struct tms tms;
register
int tick_rate = CLK_TCK; /* ticks per second */
int tick_rate = CLK_TCK; /* ticks per second */
clock_t u,
clock_t u,
s;
s;
...
...
src/backend/port/inet_aton.c
View file @
24cab6bd
/* $Id: inet_aton.c,v 1.1
2 1998/01/23 19:13:14 scrappy
Exp $
/* $Id: inet_aton.c,v 1.1
3 1998/02/11 19:11:05 momjian
Exp $
*
*
* This inet_aton() function was taken from the GNU C library and
* This inet_aton() function was taken from the GNU C library and
* incorporated into Postgres for those systems which do not have this
* incorporated into Postgres for those systems which do not have this
...
@@ -56,12 +56,12 @@
...
@@ -56,12 +56,12 @@
int
int
inet_aton
(
const
char
*
cp
,
struct
in_addr
*
addr
)
inet_aton
(
const
char
*
cp
,
struct
in_addr
*
addr
)
{
{
register
unsigned
int
val
;
unsigned
int
val
;
register
int
base
,
int
base
,
n
;
n
;
register
char
c
;
char
c
;
u_int
parts
[
4
];
u_int
parts
[
4
];
register
u_int
*
pp
=
parts
;
u_int
*
pp
=
parts
;
for
(;;)
for
(;;)
{
{
...
...
src/backend/port/strcasecmp.c
View file @
24cab6bd
/* $Id: strcasecmp.c,v 1.
2 1997/12/19 13:34:32 scrappy
Exp $ */
/* $Id: strcasecmp.c,v 1.
3 1998/02/11 19:11:10 momjian
Exp $ */
/*
/*
* Copyright (c) 1987 Regents of the University of California.
* Copyright (c) 1987 Regents of the University of California.
...
@@ -63,7 +63,7 @@ static unsigned char charmap[] = {
...
@@ -63,7 +63,7 @@ static unsigned char charmap[] = {
int
int
strcasecmp
(
char
*
s1
,
char
*
s2
)
strcasecmp
(
char
*
s1
,
char
*
s2
)
{
{
register
unsigned
char
u1
,
unsigned
char
u1
,
u2
;
u2
;
for
(;;)
for
(;;)
...
...
src/backend/port/strtol.c
View file @
24cab6bd
...
@@ -53,13 +53,13 @@ long
...
@@ -53,13 +53,13 @@ long
strtol
(
nptr
,
endptr
,
base
)
strtol
(
nptr
,
endptr
,
base
)
const
char
*
nptr
;
const
char
*
nptr
;
char
**
endptr
;
char
**
endptr
;
register
int
base
;
int
base
;
{
{
register
const
char
*
s
=
nptr
;
const
char
*
s
=
nptr
;
register
unsigned
long
acc
;
unsigned
long
acc
;
register
int
c
;
int
c
;
register
unsigned
long
cutoff
;
unsigned
long
cutoff
;
register
int
neg
=
0
,
int
neg
=
0
,
any
,
any
,
cutlim
;
cutlim
;
...
...
src/backend/regex/engine.c
View file @
24cab6bd
...
@@ -150,24 +150,24 @@ extern "C"
...
@@ -150,24 +150,24 @@ extern "C"
/*
/*
- matcher - the actual matching engine
- matcher - the actual matching engine
== static int matcher(
register
struct re_guts *g, char *string, \
== static int matcher(struct re_guts *g, char *string, \
== size_t nmatch, regmatch_t pmatch[], int eflags);
== size_t nmatch, regmatch_t pmatch[], int eflags);
*/
*/
static
int
/* 0 success, REG_NOMATCH failure */
static
int
/* 0 success, REG_NOMATCH failure */
matcher
(
g
,
string
,
nmatch
,
pmatch
,
eflags
)
matcher
(
g
,
string
,
nmatch
,
pmatch
,
eflags
)
register
struct
re_guts
*
g
;
struct
re_guts
*
g
;
char
*
string
;
char
*
string
;
size_t
nmatch
;
size_t
nmatch
;
regmatch_t
pmatch
[];
regmatch_t
pmatch
[];
int
eflags
;
int
eflags
;
{
{
register
char
*
endp
;
char
*
endp
;
register
int
i
;
int
i
;
struct
match
mv
;
struct
match
mv
;
register
struct
match
*
m
=
&
mv
;
struct
match
*
m
=
&
mv
;
register
char
*
dp
;
char
*
dp
;
register
const
sopno
gf
=
g
->
firststate
+
1
;
/* +1 for OEND */
const
sopno
gf
=
g
->
firststate
+
1
;
/* +1 for OEND */
register
const
sopno
gl
=
g
->
laststate
;
const
sopno
gl
=
g
->
laststate
;
char
*
start
;
char
*
start
;
char
*
stop
;
char
*
stop
;
...
@@ -333,30 +333,30 @@ int eflags;
...
@@ -333,30 +333,30 @@ int eflags;
/*
/*
- dissect - figure out what matched what, no back references
- dissect - figure out what matched what, no back references
== static char *dissect(
register
struct match *m, char *start, \
== static char *dissect(struct match *m, char *start, \
== char *stop, sopno startst, sopno stopst);
== char *stop, sopno startst, sopno stopst);
*/
*/
static
char
*
/* == stop (success) always */
static
char
*
/* == stop (success) always */
dissect
(
m
,
start
,
stop
,
startst
,
stopst
)
dissect
(
m
,
start
,
stop
,
startst
,
stopst
)
register
struct
match
*
m
;
struct
match
*
m
;
char
*
start
;
char
*
start
;
char
*
stop
;
char
*
stop
;
sopno
startst
;
sopno
startst
;
sopno
stopst
;
sopno
stopst
;
{
{
register
int
i
;
int
i
;
register
sopno
ss
;
/* start sop of current subRE */
sopno
ss
;
/* start sop of current subRE */
register
sopno
es
;
/* end sop of current subRE */
sopno
es
;
/* end sop of current subRE */
register
char
*
sp
;
/* start of string matched by it */
char
*
sp
;
/* start of string matched by it */
register
char
*
stp
;
/* string matched by it cannot pass here */
char
*
stp
;
/* string matched by it cannot pass here */
register
char
*
rest
;
/* start of rest of string */
char
*
rest
;
/* start of rest of string */
register
char
*
tail
;
/* string unmatched by rest of RE */
char
*
tail
;
/* string unmatched by rest of RE */
register
sopno
ssub
;
/* start sop of subsubRE */
sopno
ssub
;
/* start sop of subsubRE */
register
sopno
esub
;
/* end sop of subsubRE */
sopno
esub
;
/* end sop of subsubRE */
register
char
*
ssp
;
/* start of string matched by subsubRE */
char
*
ssp
;
/* start of string matched by subsubRE */
register
char
*
sep
;
/* end of string matched by subsubRE */
char
*
sep
;
/* end of string matched by subsubRE */
register
char
*
oldssp
;
/* previous ssp */
char
*
oldssp
;
/* previous ssp */
register
char
*
dp
;
char
*
dp
;
AT
(
"diss"
,
start
,
stop
,
startst
,
stopst
);
AT
(
"diss"
,
start
,
stop
,
startst
,
stopst
);
sp
=
start
;
sp
=
start
;
...
@@ -533,30 +533,30 @@ sopno stopst;
...
@@ -533,30 +533,30 @@ sopno stopst;
/*
/*
- backref - figure out what matched what, figuring in back references
- backref - figure out what matched what, figuring in back references
== static char *backref(
register
struct match *m, char *start, \
== static char *backref(struct match *m, char *start, \
== char *stop, sopno startst, sopno stopst, sopno lev);
== char *stop, sopno startst, sopno stopst, sopno lev);
*/
*/
static
char
*
/* == stop (success) or NULL (failure) */
static
char
*
/* == stop (success) or NULL (failure) */
backref
(
m
,
start
,
stop
,
startst
,
stopst
,
lev
)
backref
(
m
,
start
,
stop
,
startst
,
stopst
,
lev
)
register
struct
match
*
m
;
struct
match
*
m
;
char
*
start
;
char
*
start
;
char
*
stop
;
char
*
stop
;
sopno
startst
;
sopno
startst
;
sopno
stopst
;
sopno
stopst
;
sopno
lev
;
/* PLUS nesting level */
sopno
lev
;
/* PLUS nesting level */
{
{
register
int
i
;
int
i
;
register
sopno
ss
;
/* start sop of current subRE */
sopno
ss
;
/* start sop of current subRE */
register
char
*
sp
;
/* start of string matched by it */
char
*
sp
;
/* start of string matched by it */
register
sopno
ssub
;
/* start sop of subsubRE */
sopno
ssub
;
/* start sop of subsubRE */
register
sopno
esub
;
/* end sop of subsubRE */
sopno
esub
;
/* end sop of subsubRE */
register
char
*
ssp
;
/* start of string matched by subsubRE */
char
*
ssp
;
/* start of string matched by subsubRE */
register
char
*
dp
;
char
*
dp
;
register
size_t
len
;
size_t
len
;
register
int
hard
;
int
hard
;
register
sop
s
;
sop
s
;
reg
ister
reg
off_t
offsave
;
regoff_t
offsave
;
register
cset
*
cs
;
cset
*
cs
;
AT
(
"back"
,
start
,
stop
,
startst
,
stopst
);
AT
(
"back"
,
start
,
stop
,
startst
,
stopst
);
sp
=
start
;
sp
=
start
;
...
@@ -747,26 +747,26 @@ sopno lev; /* PLUS nesting level */
...
@@ -747,26 +747,26 @@ sopno lev; /* PLUS nesting level */
/*
/*
- fast - step through the string at top speed
- fast - step through the string at top speed
== static char *fast(
register
struct match *m, char *start, \
== static char *fast(struct match *m, char *start, \
== char *stop, sopno startst, sopno stopst);
== char *stop, sopno startst, sopno stopst);
*/
*/
static
char
*
/* where tentative match ended, or NULL */
static
char
*
/* where tentative match ended, or NULL */
fast
(
m
,
start
,
stop
,
startst
,
stopst
)
fast
(
m
,
start
,
stop
,
startst
,
stopst
)
register
struct
match
*
m
;
struct
match
*
m
;
char
*
start
;
char
*
start
;
char
*
stop
;
char
*
stop
;
sopno
startst
;
sopno
startst
;
sopno
stopst
;
sopno
stopst
;
{
{
register
states
st
=
m
->
st
;
states
st
=
m
->
st
;
register
states
fresh
=
m
->
fresh
;
states
fresh
=
m
->
fresh
;
register
states
tmp
=
m
->
tmp
;
states
tmp
=
m
->
tmp
;
register
char
*
p
=
start
;
char
*
p
=
start
;
register
int
c
=
(
start
==
m
->
beginp
)
?
OUT
:
*
(
start
-
1
);
int
c
=
(
start
==
m
->
beginp
)
?
OUT
:
*
(
start
-
1
);
register
int
lastc
;
/* previous c */
int
lastc
;
/* previous c */
register
int
flagch
;
int
flagch
;
register
int
i
;
int
i
;
register
char
*
coldp
;
/* last p after which no match was
char
*
coldp
;
/* last p after which no match was
* underway */
* underway */
CLEAR
(
st
);
CLEAR
(
st
);
...
@@ -846,26 +846,26 @@ sopno stopst;
...
@@ -846,26 +846,26 @@ sopno stopst;
/*
/*
- slow - step through the string more deliberately
- slow - step through the string more deliberately
== static char *slow(
register
struct match *m, char *start, \
== static char *slow(struct match *m, char *start, \
== char *stop, sopno startst, sopno stopst);
== char *stop, sopno startst, sopno stopst);
*/
*/
static
char
*
/* where it ended */
static
char
*
/* where it ended */
slow
(
m
,
start
,
stop
,
startst
,
stopst
)
slow
(
m
,
start
,
stop
,
startst
,
stopst
)
register
struct
match
*
m
;
struct
match
*
m
;
char
*
start
;
char
*
start
;
char
*
stop
;
char
*
stop
;
sopno
startst
;
sopno
startst
;
sopno
stopst
;
sopno
stopst
;
{
{
register
states
st
=
m
->
st
;
states
st
=
m
->
st
;
register
states
empty
=
m
->
empty
;
states
empty
=
m
->
empty
;
register
states
tmp
=
m
->
tmp
;
states
tmp
=
m
->
tmp
;
register
char
*
p
=
start
;
char
*
p
=
start
;
register
int
c
=
(
start
==
m
->
beginp
)
?
OUT
:
*
(
start
-
1
);
int
c
=
(
start
==
m
->
beginp
)
?
OUT
:
*
(
start
-
1
);
register
int
lastc
;
/* previous c */
int
lastc
;
/* previous c */
register
int
flagch
;
int
flagch
;
register
int
i
;
int
i
;
register
char
*
matchp
;
/* last p at which a match ended */
char
*
matchp
;
/* last p at which a match ended */
AT
(
"slow"
,
start
,
stop
,
startst
,
stopst
);
AT
(
"slow"
,
start
,
stop
,
startst
,
stopst
);
CLEAR
(
st
);
CLEAR
(
st
);
...
@@ -940,8 +940,8 @@ sopno stopst;
...
@@ -940,8 +940,8 @@ sopno stopst;
/*
/*
- step - map set of states reachable before char to set reachable after
- step - map set of states reachable before char to set reachable after
== static states step(
register
struct re_guts *g, sopno start, sopno stop, \
== static states step(struct re_guts *g, sopno start, sopno stop, \
==
register states bef, int ch, register
states aft);
==
states bef, int ch,
states aft);
== #define BOL (OUT+1)
== #define BOL (OUT+1)
== #define EOL (BOL+1)
== #define EOL (BOL+1)
== #define BOLEOL (BOL+2)
== #define BOLEOL (BOL+2)
...
@@ -954,19 +954,19 @@ sopno stopst;
...
@@ -954,19 +954,19 @@ sopno stopst;
*/
*/
static
states
static
states
step
(
g
,
start
,
stop
,
bef
,
ch
,
aft
)
step
(
g
,
start
,
stop
,
bef
,
ch
,
aft
)
register
struct
re_guts
*
g
;
struct
re_guts
*
g
;
sopno
start
;
/* start state within strip */
sopno
start
;
/* start state within strip */
sopno
stop
;
/* state after stop state within strip */
sopno
stop
;
/* state after stop state within strip */
register
states
bef
;
/* states reachable before */
states
bef
;
/* states reachable before */
int
ch
;
/* character or NONCHAR code */
int
ch
;
/* character or NONCHAR code */
register
states
aft
;
/* states already known reachable after */
states
aft
;
/* states already known reachable after */
{
{
register
cset
*
cs
;
cset
*
cs
;
register
sop
s
;
sop
s
;
register
sopno
pc
;
sopno
pc
;
register
onestate
here
;
/* note, macros know this name */
onestate
here
;
/* note, macros know this name */
register
sopno
look
;
sopno
look
;
register
int
i
;
int
i
;
for
(
pc
=
start
,
INIT
(
here
,
pc
);
pc
!=
stop
;
pc
++
,
INC
(
here
))
for
(
pc
=
start
,
INIT
(
here
,
pc
);
pc
!=
stop
;
pc
++
,
INC
(
here
))
{
{
...
@@ -1087,9 +1087,9 @@ states st;
...
@@ -1087,9 +1087,9 @@ states st;
int
ch
;
int
ch
;
FILE
*
d
;
FILE
*
d
;
{
{
register
struct
re_guts
*
g
=
m
->
g
;
struct
re_guts
*
g
=
m
->
g
;
register
int
i
;
int
i
;
register
int
first
=
1
;
int
first
=
1
;
if
(
!
(
m
->
eflags
&
REG_TRACE
))
if
(
!
(
m
->
eflags
&
REG_TRACE
))
return
;
return
;
...
...
src/backend/regex/regcomp.c
View file @
24cab6bd
This diff is collapsed.
Click to expand it.
src/backend/regex/regerror.c
View file @
24cab6bd
...
@@ -160,10 +160,10 @@ const regex_t *preg;
...
@@ -160,10 +160,10 @@ const regex_t *preg;
char
*
errbuf
;
char
*
errbuf
;
size_t
errbuf_size
;
size_t
errbuf_size
;
{
{
register
struct
rerr
*
r
;
struct
rerr
*
r
;
register
size_t
len
;
size_t
len
;
register
int
target
=
errcode
&
~
REG_ITOA
;
int
target
=
errcode
&
~
REG_ITOA
;
register
char
*
s
;
char
*
s
;
char
convbuf
[
50
];
char
convbuf
[
50
];
if
(
errcode
==
REG_ATOI
)
if
(
errcode
==
REG_ATOI
)
...
@@ -211,7 +211,7 @@ regatoi(preg, localbuf)
...
@@ -211,7 +211,7 @@ regatoi(preg, localbuf)
const
regex_t
*
preg
;
const
regex_t
*
preg
;
char
*
localbuf
;
char
*
localbuf
;
{
{
register
struct
rerr
*
r
;
struct
rerr
*
r
;
for
(
r
=
rerrs
;
r
->
code
!=
0
;
r
++
)
for
(
r
=
rerrs
;
r
->
code
!=
0
;
r
++
)
if
(
strcmp
(
r
->
name
,
preg
->
re_endp
)
==
0
)
if
(
strcmp
(
r
->
name
,
preg
->
re_endp
)
==
0
)
...
...
src/backend/regex/regexec.c
View file @
24cab6bd
...
@@ -162,7 +162,7 @@ size_t nmatch;
...
@@ -162,7 +162,7 @@ size_t nmatch;
regmatch_t
pmatch
[];
regmatch_t
pmatch
[];
int
eflags
;
int
eflags
;
{
{
register
struct
re_guts
*
g
=
preg
->
re_g
;
struct
re_guts
*
g
=
preg
->
re_g
;
#ifdef REDEBUG
#ifdef REDEBUG
#define GOODFLAGS(f) (f)
#define GOODFLAGS(f) (f)
...
...
src/backend/regex/regfree.c
View file @
24cab6bd
...
@@ -58,7 +58,7 @@ void
...
@@ -58,7 +58,7 @@ void
pg95_regfree
(
preg
)
pg95_regfree
(
preg
)
regex_t
*
preg
;
regex_t
*
preg
;
{
{
register
struct
re_guts
*
g
;
struct
re_guts
*
g
;
if
(
preg
->
re_magic
!=
MAGIC1
)
/* oops */
if
(
preg
->
re_magic
!=
MAGIC1
)
/* oops */
return
;
/* nice to complain, but hard */
return
;
/* nice to complain, but hard */
...
...
src/backend/storage/buffer/bufmgr.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.3
3 1998/02/02 13:16:31 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.3
4 1998/02/11 19:11:42 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1197,7 +1197,7 @@ ResetBufferUsage()
...
@@ -1197,7 +1197,7 @@ ResetBufferUsage()
void
void
ResetBufferPool
()
ResetBufferPool
()
{
{
register
int
i
;
int
i
;
for
(
i
=
1
;
i
<=
NBuffers
;
i
++
)
for
(
i
=
1
;
i
<=
NBuffers
;
i
++
)
{
{
...
@@ -1225,7 +1225,7 @@ ResetBufferPool()
...
@@ -1225,7 +1225,7 @@ ResetBufferPool()
int
int
BufferPoolCheckLeak
()
BufferPoolCheckLeak
()
{
{
register
int
i
;
int
i
;
int
error
=
0
;
int
error
=
0
;
for
(
i
=
1
;
i
<=
NBuffers
;
i
++
)
for
(
i
=
1
;
i
<=
NBuffers
;
i
++
)
...
@@ -1444,7 +1444,7 @@ BufferGetBlock(Buffer buffer)
...
@@ -1444,7 +1444,7 @@ BufferGetBlock(Buffer buffer)
void
void
ReleaseRelationBuffers
(
Relation
rdesc
)
ReleaseRelationBuffers
(
Relation
rdesc
)
{
{
register
int
i
;
int
i
;
int
holding
=
0
;
int
holding
=
0
;
BufferDesc
*
buf
;
BufferDesc
*
buf
;
...
@@ -1501,7 +1501,7 @@ ReleaseRelationBuffers(Relation rdesc)
...
@@ -1501,7 +1501,7 @@ ReleaseRelationBuffers(Relation rdesc)
void
void
DropBuffers
(
Oid
dbid
)
DropBuffers
(
Oid
dbid
)
{
{
register
int
i
;
int
i
;
BufferDesc
*
buf
;
BufferDesc
*
buf
;
SpinAcquire
(
BufMgrLock
);
SpinAcquire
(
BufMgrLock
);
...
@@ -1587,7 +1587,7 @@ blockNum=%d, flags=0x%x, refcount=%d %d)\n",
...
@@ -1587,7 +1587,7 @@ blockNum=%d, flags=0x%x, refcount=%d %d)\n",
void
void
BufferPoolBlowaway
()
BufferPoolBlowaway
()
{
{
register
int
i
;
int
i
;
BufferSync
();
BufferSync
();
for
(
i
=
1
;
i
<=
NBuffers
;
i
++
)
for
(
i
=
1
;
i
<=
NBuffers
;
i
++
)
...
@@ -1618,7 +1618,7 @@ BufferPoolBlowaway()
...
@@ -1618,7 +1618,7 @@ BufferPoolBlowaway()
int
int
BlowawayRelationBuffers
(
Relation
rdesc
,
BlockNumber
block
)
BlowawayRelationBuffers
(
Relation
rdesc
,
BlockNumber
block
)
{
{
register
int
i
;
int
i
;
BufferDesc
*
buf
;
BufferDesc
*
buf
;
if
(
rdesc
->
rd_islocal
)
if
(
rdesc
->
rd_islocal
)
...
...
src/backend/storage/page/bufpage.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.1
3 1998/01/07 21:05:40
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/page/bufpage.c,v 1.1
4 1998/02/11 19:11:59
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -98,7 +98,7 @@ PageAddItem(Page page,
...
@@ -98,7 +98,7 @@ PageAddItem(Page page,
OffsetNumber
offsetNumber
,
OffsetNumber
offsetNumber
,
ItemIdFlags
flags
)
ItemIdFlags
flags
)
{
{
register
i
;
int
i
;
Size
alignedSize
;
Size
alignedSize
;
Offset
lower
;
Offset
lower
;
Offset
upper
;
Offset
upper
;
...
...
src/backend/utils/adt/acl.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.2
3 1998/01/05 16:39:39
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.2
4 1998/02/11 19:12:03
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -242,7 +242,7 @@ aclitemin(char *s)
...
@@ -242,7 +242,7 @@ aclitemin(char *s)
char
*
char
*
aclitemout
(
AclItem
*
aip
)
aclitemout
(
AclItem
*
aip
)
{
{
register
char
*
p
;
char
*
p
;
char
*
out
;
char
*
out
;
HeapTuple
htp
;
HeapTuple
htp
;
unsigned
i
;
unsigned
i
;
...
...
src/backend/utils/adt/chunk.c
View file @
24cab6bd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/chunk.c,v 1.1
4 1998/01/13 04:04:47 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/chunk.c,v 1.1
5 1998/02/11 19:12:08 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -191,7 +191,7 @@ _FindBestChunk(int size,
...
@@ -191,7 +191,7 @@ _FindBestChunk(int size,
* compute the number of page fetches for a given chunk size (d[])
* compute the number of page fetches for a given chunk size (d[])
* and access pattern (A[][])
* and access pattern (A[][])
*/
*/
register
int
i
,
int
i
,
j
,
j
,
nc
;
nc
;
...
@@ -224,7 +224,7 @@ _FindBestChunk(int size,
...
@@ -224,7 +224,7 @@ _FindBestChunk(int size,
static
int
static
int
get_next
(
int
d
[],
int
k
,
int
C
,
int
dmax
[])
get_next
(
int
d
[],
int
k
,
int
C
,
int
dmax
[])
{
{
register
int
i
,
int
i
,
j
,
j
,
temp
;
temp
;
...
...
src/backend/utils/adt/date.c
View file @
24cab6bd
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.2
2 1998/01/07 18:46:37
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/date.c,v 1.2
3 1998/02/11 19:12:19
momjian Exp $
*
*
* NOTES
* NOTES
* This code is actually (almost) unused.
* This code is actually (almost) unused.
...
@@ -206,7 +206,7 @@ reltime2tm(int32 time, struct tm * tm)
...
@@ -206,7 +206,7 @@ reltime2tm(int32 time, struct tm * tm)
#if FALSE
#if FALSE
char
*
timestring
;
char
*
timestring
;
long
quantity
;
long
quantity
;
register
int
i
;
int
i
;
int
unitnr
;
int
unitnr
;
timestring
=
(
char
*
)
palloc
(
Max
(
strlen
(
INVALID_RELTIME_STR
),
timestring
=
(
char
*
)
palloc
(
Max
(
strlen
(
INVALID_RELTIME_STR
),
...
@@ -966,8 +966,8 @@ isreltime(char *str)
...
@@ -966,8 +966,8 @@ isreltime(char *str)
}
/* isreltime() */
}
/* isreltime() */
#if FALSE
#if FALSE
register
char
*
p
;
char
*
p
;
register
char
c
;
char
c
;
int
i
;
int
i
;
char
unit
[
UNITMAXLEN
];
char
unit
[
UNITMAXLEN
];
char
direction
[
DIRMAXLEN
];
char
direction
[
DIRMAXLEN
];
...
@@ -1156,9 +1156,9 @@ istinterval(char *i_string,
...
@@ -1156,9 +1156,9 @@ istinterval(char *i_string,
AbsoluteTime
*
i_start
,
AbsoluteTime
*
i_start
,
AbsoluteTime
*
i_end
)
AbsoluteTime
*
i_end
)
{
{
register
char
*
p
,
char
*
p
,
*
p1
;
*
p1
;
register
char
c
;
char
c
;
p
=
i_string
;
p
=
i_string
;
/* skip leading blanks up to '[' */
/* skip leading blanks up to '[' */
...
...
src/backend/utils/adt/dt.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.5
0 1998/01/07 18:46:45
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.5
1 1998/02/11 19:12:33
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -4015,9 +4015,9 @@ DecodeUnits(int field, char *lowtoken, int *val)
...
@@ -4015,9 +4015,9 @@ DecodeUnits(int field, char *lowtoken, int *val)
static
datetkn
*
static
datetkn
*
datebsearch
(
char
*
key
,
datetkn
*
base
,
unsigned
int
nel
)
datebsearch
(
char
*
key
,
datetkn
*
base
,
unsigned
int
nel
)
{
{
register
datetkn
*
last
=
base
+
nel
-
1
,
datetkn
*
last
=
base
+
nel
-
1
,
*
position
;
*
position
;
register
int
result
;
int
result
;
while
(
last
>=
base
)
while
(
last
>=
base
)
{
{
...
...
src/backend/utils/adt/int.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.1
3 1998/01/07 18:46:49
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int.c,v 1.1
4 1998/02/11 19:12:37
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -80,7 +80,7 @@ int2out(int16 sh)
...
@@ -80,7 +80,7 @@ int2out(int16 sh)
int16
*
int16
*
int28in
(
char
*
shs
)
int28in
(
char
*
shs
)
{
{
register
int16
(
*
result
)[];
int16
(
*
result
)[];
int
nums
;
int
nums
;
if
(
shs
==
NULL
)
if
(
shs
==
NULL
)
...
@@ -109,9 +109,9 @@ int28in(char *shs)
...
@@ -109,9 +109,9 @@ int28in(char *shs)
char
*
char
*
int28out
(
int16
(
*
shs
)[])
int28out
(
int16
(
*
shs
)[])
{
{
register
int
num
;
int
num
;
register
int16
*
sp
;
int16
*
sp
;
register
char
*
rp
;
char
*
rp
;
char
*
result
;
char
*
result
;
if
(
shs
==
NULL
)
if
(
shs
==
NULL
)
...
@@ -145,7 +145,7 @@ int32 *
...
@@ -145,7 +145,7 @@ int32 *
int44in
(
char
*
input_string
)
int44in
(
char
*
input_string
)
{
{
int32
*
foo
=
(
int32
*
)
palloc
(
4
*
sizeof
(
int32
));
int32
*
foo
=
(
int32
*
)
palloc
(
4
*
sizeof
(
int32
));
register
int
i
=
0
;
int
i
=
0
;
i
=
sscanf
(
input_string
,
i
=
sscanf
(
input_string
,
"%d, %d, %d, %d"
,
"%d, %d, %d, %d"
,
...
...
src/backend/utils/adt/like.c
View file @
24cab6bd
...
@@ -150,7 +150,7 @@ textnlike(struct varlena * s, struct varlena * p)
...
@@ -150,7 +150,7 @@ textnlike(struct varlena * s, struct varlena * p)
}
}
/* $Revision: 1.1
0
$
/* $Revision: 1.1
1
$
** "like.c" A first attempt at a LIKE operator for Postgres95.
** "like.c" A first attempt at a LIKE operator for Postgres95.
**
**
** Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
** Originally written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
...
@@ -185,9 +185,9 @@ textnlike(struct varlena * s, struct varlena * p)
...
@@ -185,9 +185,9 @@ textnlike(struct varlena * s, struct varlena * p)
** Match text and p, return LIKE_TRUE, LIKE_FALSE, or LIKE_ABORT.
** Match text and p, return LIKE_TRUE, LIKE_FALSE, or LIKE_ABORT.
*/
*/
static
int
static
int
DoMatch
(
register
char
*
text
,
register
char
*
p
)
DoMatch
(
char
*
text
,
char
*
p
)
{
{
register
int
matched
;
int
matched
;
for
(;
*
p
;
text
++
,
p
++
)
for
(;
*
p
;
text
++
,
p
++
)
{
{
...
...
src/backend/utils/adt/numutils.c
View file @
24cab6bd
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.2
1 1998/01/05 16:40:0
9 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.2
2 1998/02/11 19:12:3
9 momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -184,9 +184,9 @@ ftoa(double value, char *ascii, int width, int prec1, char format)
...
@@ -184,9 +184,9 @@ ftoa(double value, char *ascii, int width, int prec1, char format)
#else
#else
auto
int
expon
;
auto
int
expon
;
auto
int
sign
;
auto
int
sign
;
register
int
avail
=
0
;
int
avail
=
0
;
register
char
*
a
=
NULL
;
char
*
a
=
NULL
;
register
char
*
p
=
NULL
;
char
*
p
=
NULL
;
char
mode
;
char
mode
;
int
lowercase
;
int
lowercase
;
int
prec
;
int
prec
;
...
@@ -370,13 +370,13 @@ frac_out:
...
@@ -370,13 +370,13 @@ frac_out:
int
int
atof1
(
char
*
str
,
double
*
val
)
atof1
(
char
*
str
,
double
*
val
)
{
{
register
char
*
p
;
char
*
p
;
double
v
;
double
v
;
double
fact
;
double
fact
;
int
minus
;
int
minus
;
register
char
c
;
char
c
;
int
expon
;
int
expon
;
register
int
gotmant
;
int
gotmant
;
v
=
0
.
0
;
v
=
0
.
0
;
p
=
str
;
p
=
str
;
...
...
src/backend/utils/adt/oid.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.1
3 1998/01/07 18:46:50
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oid.c,v 1.1
4 1998/02/11 19:12:41
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
Oid
*
Oid
*
oid8in
(
char
*
oidString
)
oid8in
(
char
*
oidString
)
{
{
register
Oid
(
*
result
)[];
Oid
(
*
result
)[];
int
nums
;
int
nums
;
if
(
oidString
==
NULL
)
if
(
oidString
==
NULL
)
...
@@ -60,9 +60,9 @@ oid8in(char *oidString)
...
@@ -60,9 +60,9 @@ oid8in(char *oidString)
char
*
char
*
oid8out
(
Oid
(
*
oidArray
)[])
oid8out
(
Oid
(
*
oidArray
)[])
{
{
register
int
num
;
int
num
;
register
Oid
*
sp
;
Oid
*
sp
;
register
char
*
rp
;
char
*
rp
;
char
*
result
;
char
*
result
;
if
(
oidArray
==
NULL
)
if
(
oidArray
==
NULL
)
...
...
src/backend/utils/adt/regproc.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.1
3 1998/01/31 04:38:46
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.1
4 1998/02/11 19:12:43
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -160,8 +160,8 @@ oid8types(Oid (*oidArray)[])
...
@@ -160,8 +160,8 @@ oid8types(Oid (*oidArray)[])
HeapTuple
typetup
;
HeapTuple
typetup
;
text
*
result
;
text
*
result
;
ScanKeyData
key
;
ScanKeyData
key
;
register
int
num
;
int
num
;
register
Oid
*
sp
;
Oid
*
sp
;
if
(
oidArray
==
NULL
)
if
(
oidArray
==
NULL
)
{
{
...
...
src/backend/utils/adt/selfuncs.c
View file @
24cab6bd
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.1
6 1998/02/05 21:19:21
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.1
7 1998/02/11 19:12:45
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -334,8 +334,8 @@ gethilokey(Oid relid,
...
@@ -334,8 +334,8 @@ gethilokey(Oid relid,
char
**
high
,
char
**
high
,
char
**
low
)
char
**
low
)
{
{
register
Relation
rdesc
;
Relation
rdesc
;
register
HeapScanDesc
sdesc
;
HeapScanDesc
sdesc
;
static
ScanKeyData
key
[
3
]
=
{
static
ScanKeyData
key
[
3
]
=
{
{
0
,
Anum_pg_statistic_starelid
,
F_OIDEQ
,
{
0
,
0
,
F_OIDEQ
}},
{
0
,
Anum_pg_statistic_starelid
,
F_OIDEQ
,
{
0
,
0
,
F_OIDEQ
}},
{
0
,
Anum_pg_statistic_staattnum
,
F_INT2EQ
,
{
0
,
0
,
F_INT2EQ
}},
{
0
,
Anum_pg_statistic_staattnum
,
F_INT2EQ
,
{
0
,
0
,
F_INT2EQ
}},
...
...
src/backend/utils/cache/catcache.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.2
1 1998/01/15 19:45:28 pgsql
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/catcache.c,v 1.2
2 1998/02/11 19:12:47 momjian
Exp $
*
*
* Notes:
* Notes:
* XXX This needs to use exception.h to handle recovery when
* XXX This needs to use exception.h to handle recovery when
...
@@ -287,7 +287,7 @@ CatalogCacheSetId(CatCache *cacheInOutP, int id)
...
@@ -287,7 +287,7 @@ CatalogCacheSetId(CatCache *cacheInOutP, int id)
* ----------------
* ----------------
*/
*/
static
long
static
long
comphash
(
long
l
,
register
char
*
v
)
comphash
(
long
l
,
char
*
v
)
{
{
long
i
;
long
i
;
NameData
n
;
NameData
n
;
...
@@ -654,7 +654,7 @@ InitSysCache(char *relname,
...
@@ -654,7 +654,7 @@ InitSysCache(char *relname,
HeapTuple
(
*
iScanfuncP
)
())
HeapTuple
(
*
iScanfuncP
)
())
{
{
CatCache
*
cp
;
CatCache
*
cp
;
register
int
i
;
int
i
;
MemoryContext
oldcxt
;
MemoryContext
oldcxt
;
char
*
indname
;
char
*
indname
;
...
...
src/backend/utils/cache/syscache.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.1
3 1998/01/31 04:38:54
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.1
4 1998/02/11 19:12:49
momjian Exp $
*
*
* NOTES
* NOTES
* These routines allow the parser/planner/executor to perform
* These routines allow the parser/planner/executor to perform
...
@@ -398,7 +398,7 @@ SearchSysCacheTuple(int cacheId, /* cache selection code */
...
@@ -398,7 +398,7 @@ SearchSysCacheTuple(int cacheId, /* cache selection code */
Datum
key3
,
Datum
key3
,
Datum
key4
)
Datum
key4
)
{
{
register
HeapTuple
tp
;
HeapTuple
tp
;
if
(
cacheId
<
0
||
cacheId
>=
SysCacheSize
)
if
(
cacheId
<
0
||
cacheId
>=
SysCacheSize
)
{
{
...
...
src/backend/utils/error/elog.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.2
5 1998/01/25 05:14:35
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.2
6 1998/02/11 19:12:50
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -45,8 +45,8 @@ elog(int lev, const char *fmt,...)
...
@@ -45,8 +45,8 @@ elog(int lev, const char *fmt,...)
va_list
ap
;
va_list
ap
;
char
buf
[
ELOG_MAXLEN
],
char
buf
[
ELOG_MAXLEN
],
line
[
ELOG_MAXLEN
];
line
[
ELOG_MAXLEN
];
register
char
*
bp
;
char
*
bp
;
register
const
char
*
cp
;
const
char
*
cp
;
extern
int
errno
,
extern
int
errno
,
sys_nerr
;
sys_nerr
;
...
...
src/backend/utils/error/exc.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.1
8 1997/09/08 21:49:00
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/Attic/exc.c,v 1.1
9 1998/02/11 19:12:52
momjian Exp $
*
*
* NOTE
* NOTE
* XXX this code needs improvement--check for state violations and
* XXX this code needs improvement--check for state violations and
...
@@ -179,7 +179,7 @@ ExcRaise(Exception *excP,
...
@@ -179,7 +179,7 @@ ExcRaise(Exception *excP,
ExcData
data
,
ExcData
data
,
ExcMessage
message
)
ExcMessage
message
)
{
{
register
ExcFrame
*
efp
;
ExcFrame
*
efp
;
efp
=
ExcCurFrameP
;
efp
=
ExcCurFrameP
;
if
(
efp
==
NULL
)
if
(
efp
==
NULL
)
...
...
src/backend/utils/fmgr/fmgr.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.1
3 1998/01/31 05:31:03
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/fmgr.c,v 1.1
4 1998/02/11 19:12:55
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -261,7 +261,7 @@ char *
...
@@ -261,7 +261,7 @@ char *
fmgr
(
Oid
procedureId
,...)
fmgr
(
Oid
procedureId
,...)
{
{
va_list
pvar
;
va_list
pvar
;
register
i
;
int
i
;
int
pronargs
;
int
pronargs
;
FmgrValues
values
;
FmgrValues
values
;
FmgrInfo
finfo
;
FmgrInfo
finfo
;
...
@@ -299,7 +299,7 @@ char *
...
@@ -299,7 +299,7 @@ char *
fmgr_ptr
(
FmgrInfo
*
finfo
,
...)
fmgr_ptr
(
FmgrInfo
*
finfo
,
...)
{
{
va_list
pvar
;
va_list
pvar
;
register
i
;
int
i
;
int
n_arguments
;
int
n_arguments
;
FmgrInfo
local_finfo
;
FmgrInfo
local_finfo
;
FmgrValues
values
;
FmgrValues
values
;
...
...
src/backend/utils/hash/dynahash.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.1
1 1997/09/18 20:22:30
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/hash/dynahash.c,v 1.1
2 1998/02/11 19:13:02
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -157,7 +157,7 @@ static long hash_accesses,
...
@@ -157,7 +157,7 @@ static long hash_accesses,
HTAB
*
HTAB
*
hash_create
(
int
nelem
,
HASHCTL
*
info
,
int
flags
)
hash_create
(
int
nelem
,
HASHCTL
*
info
,
int
flags
)
{
{
register
HHDR
*
hctl
;
HHDR
*
hctl
;
HTAB
*
hashp
;
HTAB
*
hashp
;
...
@@ -302,9 +302,9 @@ hdefault(HTAB *hashp)
...
@@ -302,9 +302,9 @@ hdefault(HTAB *hashp)
static
int
static
int
init_htab
(
HTAB
*
hashp
,
int
nelem
)
init_htab
(
HTAB
*
hashp
,
int
nelem
)
{
{
register
SEG_OFFSET
*
segp
;
SEG_OFFSET
*
segp
;
register
int
nbuckets
;
int
nbuckets
;
register
int
nsegs
;
int
nsegs
;
int
l2
;
int
l2
;
HHDR
*
hctl
;
HHDR
*
hctl
;
...
@@ -387,7 +387,7 @@ hash_destroy(HTAB *hashp)
...
@@ -387,7 +387,7 @@ hash_destroy(HTAB *hashp)
if
(
hashp
!=
NULL
)
if
(
hashp
!=
NULL
)
{
{
register
SEG_OFFSET
segNum
;
SEG_OFFSET
segNum
;
SEGMENT
segp
;
SEGMENT
segp
;
int
nsegs
=
hashp
->
hctl
->
nsegs
;
int
nsegs
=
hashp
->
hctl
->
nsegs
;
int
j
;
int
j
;
...
@@ -480,7 +480,7 @@ hash_search(HTAB *hashp,
...
@@ -480,7 +480,7 @@ hash_search(HTAB *hashp,
long
segment_num
;
long
segment_num
;
long
segment_ndx
;
long
segment_ndx
;
SEGMENT
segp
;
SEGMENT
segp
;
register
ELEMENT
*
curr
;
ELEMENT
*
curr
;
HHDR
*
hctl
;
HHDR
*
hctl
;
BUCKET_INDEX
currIndex
;
BUCKET_INDEX
currIndex
;
BUCKET_INDEX
*
prevIndexPtr
;
BUCKET_INDEX
*
prevIndexPtr
;
...
@@ -735,7 +735,7 @@ expand_table(HTAB *hashp)
...
@@ -735,7 +735,7 @@ expand_table(HTAB *hashp)
ELEMENT
*
chain
;
ELEMENT
*
chain
;
BUCKET_INDEX
*
old
,
BUCKET_INDEX
*
old
,
*
newbi
;
*
newbi
;
register
BUCKET_INDEX
chainIndex
,
BUCKET_INDEX
chainIndex
,
nextIndex
;
nextIndex
;
#ifdef HASH_STATISTICS
#ifdef HASH_STATISTICS
...
@@ -811,7 +811,7 @@ expand_table(HTAB *hashp)
...
@@ -811,7 +811,7 @@ expand_table(HTAB *hashp)
static
int
static
int
dir_realloc
(
HTAB
*
hashp
)
dir_realloc
(
HTAB
*
hashp
)
{
{
register
char
*
p
;
char
*
p
;
char
**
p_ptr
;
char
**
p_ptr
;
long
old_dirsize
;
long
old_dirsize
;
long
new_dirsize
;
long
new_dirsize
;
...
...
src/backend/utils/hash/hashfn.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/hash/hashfn.c,v 1.
5 1997/09/08 02:31:45
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/hash/hashfn.c,v 1.
6 1998/02/11 19:13:06
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -25,7 +25,7 @@ long
...
@@ -25,7 +25,7 @@ long
string_hash
(
char
*
key
,
int
keysize
)
string_hash
(
char
*
key
,
int
keysize
)
{
{
int
h
;
int
h
;
register
unsigned
char
*
k
=
(
unsigned
char
*
)
key
;
unsigned
char
*
k
=
(
unsigned
char
*
)
key
;
h
=
0
;
h
=
0
;
...
@@ -43,7 +43,7 @@ string_hash(char *key, int keysize)
...
@@ -43,7 +43,7 @@ string_hash(char *key, int keysize)
long
long
tag_hash
(
int
*
key
,
int
keysize
)
tag_hash
(
int
*
key
,
int
keysize
)
{
{
register
long
h
=
0
;
long
h
=
0
;
/*
/*
* Convert tag to integer; Use four byte chunks in a "jump table" to
* Convert tag to integer; Use four byte chunks in a "jump table" to
...
@@ -130,10 +130,10 @@ tag_hash(int *key, int keysize)
...
@@ -130,10 +130,10 @@ tag_hash(int *key, int keysize)
long
long
disk_hash
(
char
*
key
)
disk_hash
(
char
*
key
)
{
{
register
int
n
=
0
;
int
n
=
0
;
register
char
*
str
=
key
;
char
*
str
=
key
;
register
int
len
=
strlen
(
key
);
int
len
=
strlen
(
key
);
register
int
loop
;
int
loop
;
#define HASHC n = *str++ + 65599 * n
#define HASHC n = *str++ + 65599 * n
...
...
src/backend/utils/mmgr/oset.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.
6 1997/09/08 21:49:29
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/mmgr/Attic/oset.c,v 1.
7 1998/02/11 19:13:17
momjian Exp $
*
*
* NOTE
* NOTE
* XXX This is a preliminary implementation which lacks fail-fast
* XXX This is a preliminary implementation which lacks fail-fast
...
@@ -64,7 +64,7 @@ OrderedSetContains(OrderedSet set, OrderedElem elem)
...
@@ -64,7 +64,7 @@ OrderedSetContains(OrderedSet set, OrderedElem elem)
Pointer
Pointer
OrderedSetGetHead
(
OrderedSet
set
)
OrderedSetGetHead
(
OrderedSet
set
)
{
{
register
OrderedElem
elem
;
OrderedElem
elem
;
elem
=
set
->
head
;
elem
=
set
->
head
;
if
(
elem
->
next
)
if
(
elem
->
next
)
...
@@ -81,7 +81,7 @@ OrderedSetGetHead(OrderedSet set)
...
@@ -81,7 +81,7 @@ OrderedSetGetHead(OrderedSet set)
Pointer
Pointer
OrderedSetGetTail
(
OrderedSet
set
)
OrderedSetGetTail
(
OrderedSet
set
)
{
{
register
OrderedElem
elem
;
OrderedElem
elem
;
elem
=
set
->
tail
;
elem
=
set
->
tail
;
if
(
elem
->
prev
)
if
(
elem
->
prev
)
...
...
src/backend/utils/sort/lselect.c
View file @
24cab6bd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/lselect.c,v 1.1
1 1998/01/31 04:39:12
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/lselect.c,v 1.1
2 1998/02/11 19:13:37
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
struct
leftist
*
struct
leftist
*
lmerge
(
struct
leftist
*
pt
,
struct
leftist
*
qt
,
LeftistContext
context
)
lmerge
(
struct
leftist
*
pt
,
struct
leftist
*
qt
,
LeftistContext
context
)
{
{
register
struct
leftist
*
root
,
struct
leftist
*
root
,
*
majorLeftist
,
*
majorLeftist
,
*
minorLeftist
;
*
minorLeftist
;
int
dist
;
int
dist
;
...
@@ -76,7 +76,7 @@ lmerge(struct leftist * pt, struct leftist * qt, LeftistContext context)
...
@@ -76,7 +76,7 @@ lmerge(struct leftist * pt, struct leftist * qt, LeftistContext context)
static
struct
leftist
*
static
struct
leftist
*
linsert
(
struct
leftist
*
root
,
struct
leftist
*
new1
,
LeftistContext
context
)
linsert
(
struct
leftist
*
root
,
struct
leftist
*
new1
,
LeftistContext
context
)
{
{
register
struct
leftist
*
left
,
struct
leftist
*
left
,
*
right
;
*
right
;
if
(
!
tuplecmp
(
root
->
lt_tuple
,
new1
->
lt_tuple
,
context
))
if
(
!
tuplecmp
(
root
->
lt_tuple
,
new1
->
lt_tuple
,
context
))
...
@@ -129,7 +129,7 @@ gettuple(struct leftist ** treep,
...
@@ -129,7 +129,7 @@ gettuple(struct leftist ** treep,
short
*
devnum
,
/* device from which tuple came */
short
*
devnum
,
/* device from which tuple came */
LeftistContext
context
)
LeftistContext
context
)
{
{
register
struct
leftist
*
tp
;
struct
leftist
*
tp
;
HeapTuple
tup
;
HeapTuple
tup
;
tp
=
*
treep
;
tp
=
*
treep
;
...
@@ -159,8 +159,8 @@ puttuple(struct leftist ** treep,
...
@@ -159,8 +159,8 @@ puttuple(struct leftist ** treep,
short
devnum
,
short
devnum
,
LeftistContext
context
)
LeftistContext
context
)
{
{
register
struct
leftist
*
new1
;
struct
leftist
*
new1
;
register
struct
leftist
*
tp
;
struct
leftist
*
tp
;
new1
=
(
struct
leftist
*
)
palloc
((
unsigned
)
sizeof
(
struct
leftist
));
new1
=
(
struct
leftist
*
)
palloc
((
unsigned
)
sizeof
(
struct
leftist
));
new1
->
lt_dist
=
1
;
new1
->
lt_dist
=
1
;
...
@@ -186,7 +186,7 @@ puttuple(struct leftist ** treep,
...
@@ -186,7 +186,7 @@ puttuple(struct leftist ** treep,
int
int
tuplecmp
(
HeapTuple
ltup
,
HeapTuple
rtup
,
LeftistContext
context
)
tuplecmp
(
HeapTuple
ltup
,
HeapTuple
rtup
,
LeftistContext
context
)
{
{
register
Datum
lattr
,
Datum
lattr
,
rattr
;
rattr
;
int
nkey
=
0
;
int
nkey
=
0
;
int
result
=
0
;
int
result
=
0
;
...
...
src/backend/utils/sort/psort.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.3
6 1998/02/01 22:20
:47 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.3
7 1998/02/11 19:13
:47 momjian Exp $
*
*
* NOTES
* NOTES
* Sorts the first relation into the second relation.
* Sorts the first relation into the second relation.
...
@@ -175,8 +175,8 @@ psort_begin(Sort * node, int nkeys, ScanKey key)
...
@@ -175,8 +175,8 @@ psort_begin(Sort * node, int nkeys, ScanKey key)
static
void
static
void
inittapes
(
Sort
*
node
)
inittapes
(
Sort
*
node
)
{
{
register
int
i
;
int
i
;
register
struct
tape
*
tp
;
struct
tape
*
tp
;
Assert
(
node
!=
(
Sort
*
)
NULL
);
Assert
(
node
!=
(
Sort
*
)
NULL
);
Assert
(
PS
(
node
)
!=
(
Psortstate
*
)
NULL
);
Assert
(
PS
(
node
)
!=
(
Psortstate
*
)
NULL
);
...
@@ -276,8 +276,8 @@ inittapes(Sort * node)
...
@@ -276,8 +276,8 @@ inittapes(Sort * node)
static
void
static
void
initialrun
(
Sort
*
node
)
initialrun
(
Sort
*
node
)
{
{
/*
register
struct tuple *tup; */
/* struct tuple *tup; */
register
struct
tape
*
tp
;
struct
tape
*
tp
;
int
baseruns
;
/* D:(a) */
int
baseruns
;
/* D:(a) */
int
extrapasses
;
/* EOF */
int
extrapasses
;
/* EOF */
...
@@ -433,7 +433,7 @@ createfirstrun(Sort *node)
...
@@ -433,7 +433,7 @@ createfirstrun(Sort *node)
if
(
LACKMEM
(
node
)
)
/* in-memory sort is impossible */
if
(
LACKMEM
(
node
)
)
/* in-memory sort is impossible */
{
{
register
int
t
;
int
t
;
Assert
(
!
foundeor
);
Assert
(
!
foundeor
);
inittapes
(
node
);
inittapes
(
node
);
...
@@ -466,8 +466,8 @@ createfirstrun(Sort *node)
...
@@ -466,8 +466,8 @@ createfirstrun(Sort *node)
static
bool
static
bool
createrun
(
Sort
*
node
,
FILE
*
file
)
createrun
(
Sort
*
node
,
FILE
*
file
)
{
{
register
HeapTuple
lasttuple
;
HeapTuple
lasttuple
;
register
HeapTuple
tup
;
HeapTuple
tup
;
TupleTableSlot
*
cr_slot
;
TupleTableSlot
*
cr_slot
;
HeapTuple
*
memtuples
;
HeapTuple
*
memtuples
;
int
t_last
=
-
1
;
int
t_last
=
-
1
;
...
@@ -554,7 +554,7 @@ createrun(Sort * node, FILE * file)
...
@@ -554,7 +554,7 @@ createrun(Sort * node, FILE * file)
/* put tuples for the next run into leftist tree */
/* put tuples for the next run into leftist tree */
if
(
t_last
>=
1
)
if
(
t_last
>=
1
)
{
{
register
int
t
;
int
t
;
PsortTupDesc
=
PS
(
node
)
->
treeContext
.
tupDesc
;
PsortTupDesc
=
PS
(
node
)
->
treeContext
.
tupDesc
;
PsortKeys
=
PS
(
node
)
->
treeContext
.
scanKeys
;
PsortKeys
=
PS
(
node
)
->
treeContext
.
scanKeys
;
...
@@ -600,7 +600,7 @@ tuplecopy(HeapTuple tup)
...
@@ -600,7 +600,7 @@ tuplecopy(HeapTuple tup)
static
FILE
*
static
FILE
*
mergeruns
(
Sort
*
node
)
mergeruns
(
Sort
*
node
)
{
{
register
struct
tape
*
tp
;
struct
tape
*
tp
;
Assert
(
node
!=
(
Sort
*
)
NULL
);
Assert
(
node
!=
(
Sort
*
)
NULL
);
Assert
(
PS
(
node
)
!=
(
Psortstate
*
)
NULL
);
Assert
(
PS
(
node
)
!=
(
Psortstate
*
)
NULL
);
...
@@ -627,9 +627,9 @@ mergeruns(Sort * node)
...
@@ -627,9 +627,9 @@ mergeruns(Sort * node)
static
void
static
void
merge
(
Sort
*
node
,
struct
tape
*
dest
)
merge
(
Sort
*
node
,
struct
tape
*
dest
)
{
{
register
HeapTuple
tup
;
HeapTuple
tup
;
register
struct
tape
*
lasttp
;
/* (TAPE[P]) */
struct
tape
*
lasttp
;
/* (TAPE[P]) */
register
struct
tape
*
tp
;
struct
tape
*
tp
;
struct
leftist
*
tuples
;
struct
leftist
*
tuples
;
FILE
*
destfile
;
FILE
*
destfile
;
int
times
;
/* runs left to merge */
int
times
;
/* runs left to merge */
...
@@ -734,8 +734,8 @@ merge(Sort * node, struct tape * dest)
...
@@ -734,8 +734,8 @@ merge(Sort * node, struct tape * dest)
static
void
static
void
dumptuples
(
FILE
*
file
,
Sort
*
node
)
dumptuples
(
FILE
*
file
,
Sort
*
node
)
{
{
register
struct
leftist
*
tp
;
struct
leftist
*
tp
;
register
struct
leftist
*
newp
;
struct
leftist
*
newp
;
struct
leftist
**
treep
=
&
PS
(
node
)
->
Tuples
;
struct
leftist
**
treep
=
&
PS
(
node
)
->
Tuples
;
LeftistContext
context
=
&
PS
(
node
)
->
treeContext
;
LeftistContext
context
=
&
PS
(
node
)
->
treeContext
;
HeapTuple
tup
;
HeapTuple
tup
;
...
@@ -769,7 +769,7 @@ dumptuples(FILE * file, Sort * node)
...
@@ -769,7 +769,7 @@ dumptuples(FILE * file, Sort * node)
HeapTuple
HeapTuple
psort_grabtuple
(
Sort
*
node
,
bool
*
should_free
)
psort_grabtuple
(
Sort
*
node
,
bool
*
should_free
)
{
{
register
HeapTuple
tup
;
HeapTuple
tup
;
Assert
(
node
!=
(
Sort
*
)
NULL
);
Assert
(
node
!=
(
Sort
*
)
NULL
);
Assert
(
PS
(
node
)
!=
(
Psortstate
*
)
NULL
);
Assert
(
PS
(
node
)
!=
(
Psortstate
*
)
NULL
);
...
@@ -920,7 +920,7 @@ psort_restorepos(Sort * node)
...
@@ -920,7 +920,7 @@ psort_restorepos(Sort * node)
void
void
psort_end
(
Sort
*
node
)
psort_end
(
Sort
*
node
)
{
{
register
struct
tape
*
tp
;
struct
tape
*
tp
;
if
(
!
node
->
cleaned
)
if
(
!
node
->
cleaned
)
{
{
...
@@ -978,7 +978,7 @@ static struct tapelst *Tapes = NULL;
...
@@ -978,7 +978,7 @@ static struct tapelst *Tapes = NULL;
static
FILE
*
static
FILE
*
gettape
()
gettape
()
{
{
register
struct
tapelst
*
tp
;
struct
tapelst
*
tp
;
FILE
*
file
;
FILE
*
file
;
static
int
tapeinit
=
0
;
static
int
tapeinit
=
0
;
char
*
mktemp
();
char
*
mktemp
();
...
@@ -1020,8 +1020,8 @@ gettape()
...
@@ -1020,8 +1020,8 @@ gettape()
static
void
static
void
resettape
(
FILE
*
file
)
resettape
(
FILE
*
file
)
{
{
register
struct
tapelst
*
tp
;
struct
tapelst
*
tp
;
register
int
fd
;
int
fd
;
Assert
(
PointerIsValid
(
file
));
Assert
(
PointerIsValid
(
file
));
...
@@ -1052,9 +1052,9 @@ resettape(FILE * file)
...
@@ -1052,9 +1052,9 @@ resettape(FILE * file)
static
void
static
void
destroytape
(
FILE
*
file
)
destroytape
(
FILE
*
file
)
{
{
register
struct
tapelst
*
tp
,
struct
tapelst
*
tp
,
*
tq
;
*
tq
;
register
int
fd
;
int
fd
;
if
((
tp
=
Tapes
)
==
NULL
)
if
((
tp
=
Tapes
)
==
NULL
)
elog
(
FATAL
,
"destroytape: tape not found"
);
elog
(
FATAL
,
"destroytape: tape not found"
);
...
@@ -1089,7 +1089,7 @@ destroytape(FILE * file)
...
@@ -1089,7 +1089,7 @@ destroytape(FILE * file)
static
int
static
int
_psort_cmp
(
HeapTuple
*
ltup
,
HeapTuple
*
rtup
)
_psort_cmp
(
HeapTuple
*
ltup
,
HeapTuple
*
rtup
)
{
{
register
Datum
lattr
,
rattr
;
Datum
lattr
,
rattr
;
int
nkey
;
int
nkey
;
int
result
=
0
;
int
result
=
0
;
bool
isnull1
,
isnull2
;
bool
isnull1
,
isnull2
;
...
...
src/interfaces/libpgtcl/pgtclCmds.c
View file @
24cab6bd
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.
19 1997/11/21 19:12:41
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.
20 1998/02/11 19:13:54
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
static
inline
char
*
static
inline
char
*
translate_escape
(
char
*
p
,
int
isArray
)
translate_escape
(
char
*
p
,
int
isArray
)
{
{
register
char
c
,
char
c
,
*
q
,
*
q
,
*
s
;
*
s
;
...
@@ -155,7 +155,7 @@ tcl_value(char *value)
...
@@ -155,7 +155,7 @@ tcl_value(char *value)
{
{
int
literal
,
int
literal
,
last
;
last
;
register
char
*
p
;
char
*
p
;
if
(
!
value
)
if
(
!
value
)
{
{
...
...
src/test/regress/regress.c
View file @
24cab6bd
/*
/*
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.2
1 1998/01/07 18:47:07
momjian Exp $
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.2
2 1998/02/11 19:14:04
momjian Exp $
*/
*/
#include <float.h>
/* faked on sunos */
#include <float.h>
/* faked on sunos */
...
@@ -279,7 +279,7 @@ char *
...
@@ -279,7 +279,7 @@ char *
reverse_c16
(
string
)
reverse_c16
(
string
)
char
*
string
;
char
*
string
;
{
{
register
i
;
int
i
;
int
len
;
int
len
;
char
*
new_string
;
char
*
new_string
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment