mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Inline memset() as MemSet().
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.43 1997/09/18 14:32:15 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.44 1997/09/18 20:20:58 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -2325,7 +2325,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs, int *curr_resno)
|
||||
* transform relation name arguments into * varnodes of the
|
||||
* appropriate form.
|
||||
*/
|
||||
memset(&oid_array[0], 0, 8 * sizeof(Oid));
|
||||
MemSet(&oid_array[0], 0, 8 * sizeof(Oid));
|
||||
|
||||
nargs = 0;
|
||||
foreach(i, fargs)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.27 1997/09/13 03:11:51 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.28 1997/09/18 20:21:05 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1036,7 +1036,7 @@ func_get_candidates(char *funcname, int nargs)
|
||||
palloc(sizeof(struct _CandidateList));
|
||||
current_candidate->args = (Oid *)
|
||||
palloc(8 * sizeof(Oid));
|
||||
memset(current_candidate->args, 0, 8 * sizeof(Oid));
|
||||
MemSet(current_candidate->args, 0, 8 * sizeof(Oid));
|
||||
for (i = 0; i < nargs; i++)
|
||||
{
|
||||
current_candidate->args[i] =
|
||||
@@ -1475,7 +1475,7 @@ genxprod(InhPaths *arginh, int nargs)
|
||||
for (;;)
|
||||
{
|
||||
oneres = (Oid *) palloc(MAXFARGS * sizeof(Oid));
|
||||
memset(oneres, 0, MAXFARGS * sizeof(Oid));
|
||||
MemSet(oneres, 0, MAXFARGS * sizeof(Oid));
|
||||
|
||||
for (i = nargs - 1; i >= 0 && cur[i] > arginh[i].nsupers; i--)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user