Browse Source

Mark internal routines static.

git-svn-id: file:///var/svn/tigccpp/trunk/tigcc/ld-tigcc@157 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 19 years ago
parent
commit
4bc0a46620
1 changed files with 6 additions and 6 deletions
  1. 6 6
      reorder.c

+ 6 - 6
reorder.c

@@ -57,7 +57,7 @@ static int SectionComparisonFunction (const void *Section1Ptr, const void *Secti
 	return (Section2->Relocs.OptRefCount * Section1->Size - Section1->Relocs.OptRefCount * Section2->Size);
 }
 
-COUNT GetRelocCountFromTo (const SECTION *Src, const SECTION *Dest)
+static COUNT GetRelocCountFromTo (const SECTION *Src, const SECTION *Dest)
 {
 	COUNT Result = 0;
 	RELOC *Reloc;
@@ -70,12 +70,12 @@ COUNT GetRelocCountFromTo (const SECTION *Src, const SECTION *Dest)
 	return Result;
 }
 
-COUNT GetRelocCountBetween (const SECTION *Section1, const SECTION *Section2)
+static COUNT GetRelocCountBetween (const SECTION *Section1, const SECTION *Section2)
 {
 	return (GetRelocCountFromTo (Section1, Section2) + GetRelocCountFromTo (Section2, Section1));
 }
 
-BOOLEAN AreSectionsRelated (const SECTION *Section1, const SECTION *Section2)
+static BOOLEAN AreSectionsRelated (const SECTION *Section1, const SECTION *Section2)
 {
 	if (Section1 && Section2)
 	{
@@ -85,12 +85,12 @@ BOOLEAN AreSectionsRelated (const SECTION *Section1, const SECTION *Section2)
 	return FALSE;
 }
 
-BOOLEAN CanMoveSection (const SECTION *Section)
+static BOOLEAN CanMoveSection (const SECTION *Section)
 {
 	return (!(AreSectionsRelated (GetPrev (Section), Section) || AreSectionsRelated (Section, GetNext (Section))));
 }
 
-BOOLEAN CanMoveSectionToFront (const SECTION *Section, const SECTION *Dest)
+static BOOLEAN CanMoveSectionToFront (const SECTION *Section, const SECTION *Dest)
 {
 	if (!(CanMoveSection (Section)))
 		return FALSE;
@@ -108,7 +108,7 @@ BOOLEAN CanMoveSectionToFront (const SECTION *Section, const SECTION *Dest)
 	}
 }
 
-BOOLEAN CanMoveSectionToBack (const SECTION *Section, const SECTION *Dest)
+static BOOLEAN CanMoveSectionToBack (const SECTION *Section, const SECTION *Dest)
 {
 	if (!(CanMoveSection (Section)))
 		return FALSE;