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

Commit7d717f2

Browse files
committed
Rename static variables to avoid possible name conflicts on systems with
dirty standard headers (eg AIX).
1 parent40296aa commit7d717f2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎src/bin/pg_dump/common.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.81 2004/03/03 21:28:54 tgl Exp $
14+
* $PostgreSQL: pgsql/src/bin/pg_dump/common.c,v 1.82 2004/05/20 17:13:52 tgl Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -50,8 +50,8 @@ static intnumCatalogIds = 0;
5050
* them into findTableByOid() and friends.
5151
*/
5252
staticTableInfo*tblinfo;
53-
staticTypeInfo*tinfo;
54-
staticFuncInfo*finfo;
53+
staticTypeInfo*typinfo;
54+
staticFuncInfo*funinfo;
5555
staticOprInfo*oprinfo;
5656
staticintnumTables;
5757
staticintnumTypes;
@@ -101,12 +101,12 @@ getSchemaData(int *numTablesPtr,
101101

102102
if (g_verbose)
103103
write_msg(NULL,"reading user-defined functions\n");
104-
finfo=getFuncs(&numFuncs);
104+
funinfo=getFuncs(&numFuncs);
105105

106106
/* this must be after getFuncs */
107107
if (g_verbose)
108108
write_msg(NULL,"reading user-defined types\n");
109-
tinfo=getTypes(&numTypes);
109+
typinfo=getTypes(&numTypes);
110110

111111
/* this must be after getFuncs, too */
112112
if (g_verbose)
@@ -631,7 +631,7 @@ findTableByOid(Oid oid)
631631

632632
/*
633633
* findTypeByOid
634-
* finds the entry (intinfo) of the type with the given oid
634+
* finds the entry (intypinfo) of the type with the given oid
635635
* returns NULL if not found
636636
*
637637
* NOTE: should hash this, but just do linear search for now
@@ -643,15 +643,15 @@ findTypeByOid(Oid oid)
643643

644644
for (i=0;i<numTypes;i++)
645645
{
646-
if (tinfo[i].dobj.catId.oid==oid)
647-
return&tinfo[i];
646+
if (typinfo[i].dobj.catId.oid==oid)
647+
return&typinfo[i];
648648
}
649649
returnNULL;
650650
}
651651

652652
/*
653653
* findFuncByOid
654-
* finds the entry (infinfo) of the function with the given oid
654+
* finds the entry (infuninfo) of the function with the given oid
655655
* returns NULL if not found
656656
*
657657
* NOTE: should hash this, but just do linear search for now
@@ -663,8 +663,8 @@ findFuncByOid(Oid oid)
663663

664664
for (i=0;i<numFuncs;i++)
665665
{
666-
if (finfo[i].dobj.catId.oid==oid)
667-
return&finfo[i];
666+
if (funinfo[i].dobj.catId.oid==oid)
667+
return&funinfo[i];
668668
}
669669
returnNULL;
670670
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp