mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Inline memset() as MemSet().
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.12 1997/09/08 20:54:15 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.13 1997/09/18 20:19:49 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Postgres btree pages look like ordinary relation pages. The opaque
|
||||
@@ -418,7 +418,7 @@ _bt_pageinit(Page page, Size size)
|
||||
* good when I know they're empty.
|
||||
*/
|
||||
|
||||
memset(page, 0, size);
|
||||
MemSet(page, 0, size);
|
||||
|
||||
PageInit(page, size, sizeof(BTPageOpaqueData));
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Id: nbtsort.c,v 1.23 1997/09/08 21:41:28 momjian Exp $
|
||||
* $Id: nbtsort.c,v 1.24 1997/09/18 20:19:53 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -565,7 +565,7 @@ _bt_spoolinit(Relation index, int ntapes, bool isunique)
|
||||
{
|
||||
elog(WARN, "_bt_spoolinit: out of memory");
|
||||
}
|
||||
memset((char *) btspool, 0, sizeof(BTSpool));
|
||||
MemSet((char *) btspool, 0, sizeof(BTSpool));
|
||||
btspool->bts_ntapes = ntapes;
|
||||
btspool->bts_tape = 0;
|
||||
btspool->isunique = isunique;
|
||||
@@ -852,7 +852,7 @@ _bt_pagestate(Relation index, int flags, int level, bool doupper)
|
||||
{
|
||||
BTPageState *state = (BTPageState *) palloc(sizeof(BTPageState));
|
||||
|
||||
memset((char *) state, 0, sizeof(BTPageState));
|
||||
MemSet((char *) state, 0, sizeof(BTPageState));
|
||||
_bt_blnewpage(index, &(state->btps_buf), &(state->btps_page), flags);
|
||||
state->btps_firstoff = InvalidOffsetNumber;
|
||||
state->btps_lastoff = P_HIKEY;
|
||||
@@ -1216,7 +1216,7 @@ _bt_merge(Relation index, BTSpool *btspool)
|
||||
* _bt_taperead will return 0 only if the tape is actually at
|
||||
* EOF.
|
||||
*/
|
||||
memset((char *) &q, 0, sizeof(BTPriQueue));
|
||||
MemSet((char *) &q, 0, sizeof(BTPriQueue));
|
||||
goodtapes = 0;
|
||||
for (t = 0; t < btspool->bts_ntapes; ++t)
|
||||
{
|
||||
|
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.14 1997/09/08 21:41:31 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtutils.c,v 1.15 1997/09/18 20:19:55 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -139,7 +139,7 @@ _bt_orderkeys(Relation relation, BTScanOpaque so)
|
||||
nbytes = BTMaxStrategyNumber * sizeof(ScanKeyData);
|
||||
xform = (ScanKey) palloc(nbytes);
|
||||
|
||||
memset(xform, 0, nbytes);
|
||||
MemSet(xform, 0, nbytes);
|
||||
map = IndexStrategyGetStrategyMap(RelationGetIndexStrategy(relation),
|
||||
BTMaxStrategyNumber,
|
||||
attno);
|
||||
@@ -243,7 +243,7 @@ _bt_orderkeys(Relation relation, BTScanOpaque so)
|
||||
|
||||
/* initialization for new attno */
|
||||
attno = cur->sk_attno;
|
||||
memset(xform, 0, nbytes);
|
||||
MemSet(xform, 0, nbytes);
|
||||
map = IndexStrategyGetStrategyMap(RelationGetIndexStrategy(relation),
|
||||
BTMaxStrategyNumber,
|
||||
attno);
|
||||
|
Reference in New Issue
Block a user