Changed multi-line C comments into another style.

The left side doesn't look unbalanced.
This commit is contained in:
Greg King
2014-06-30 05:10:35 -04:00
parent 132d57f1ad
commit 0390c34e88
502 changed files with 8869 additions and 8884 deletions

View File

@@ -123,9 +123,9 @@ static Import* NewImport (unsigned char AddrSize, ObjData* Obj)
void FreeImport (Import* I)
/* Free an import. NOTE: This won't remove the import from the exports table,
* so it may only be called for unused imports (imports from modules that
* aren't referenced).
*/
** so it may only be called for unused imports (imports from modules that
** aren't referenced).
*/
{
/* Safety */
PRECONDITION ((I->Flags & IMP_INLIST) == 0);
@@ -161,9 +161,9 @@ Import* ReadImport (FILE* F, ObjData* Obj)
/* Check the address size */
if (I->AddrSize == ADDR_SIZE_DEFAULT || I->AddrSize > ADDR_SIZE_LONG) {
/* Beware: This function may be called in cases where the object file
* is not read completely into memory. In this case, the file list is
* invalid. Be sure not to access it in this case.
*/
** is not read completely into memory. In this case, the file list is
** invalid. Be sure not to access it in this case.
*/
if (ObjHasFiles (I->Obj)) {
const LineInfo* LI = GetImportPos (I);
Error ("Invalid import size in for `%s', imported from %s(%u): 0x%02X",
@@ -197,8 +197,8 @@ Import* GenImport (unsigned Name, unsigned char AddrSize)
/* Check the address size */
if (I->AddrSize == ADDR_SIZE_DEFAULT || I->AddrSize > ADDR_SIZE_LONG) {
/* We have no object file information and no line info for a new
* import
*/
** import
*/
Error ("Invalid import size 0x%02X for symbol `%s'",
I->AddrSize,
GetString (I->Name));
@@ -246,8 +246,8 @@ Import* InsertImport (Import* I)
}
/* Ok, E now points to a valid exports entry for the given import. Insert
* the import into the imports list and update the counters.
*/
** the import into the imports list and update the counters.
*/
I->Exp = E;
I->Next = E->ImpList;
E->ImpList = I;
@@ -321,9 +321,9 @@ static Export* NewExport (unsigned Type, unsigned char AddrSize,
void FreeExport (Export* E)
/* Free an export. NOTE: This won't remove the export from the exports table,
* so it may only be called for unused exports (exports from modules that
* aren't referenced).
*/
** so it may only be called for unused exports (exports from modules that
** aren't referenced).
*/
{
/* Safety */
PRECONDITION ((E->Flags & EXP_INLIST) == 0);
@@ -367,9 +367,9 @@ Export* ReadExport (FILE* F, ObjData* O)
ReadData (F, ConDes, ConDesCount);
/* Re-order the data. In the file, each decl is encoded into a byte
* which contains the type and the priority. In memory, we will use
* an array of types which contain the priority.
*/
** which contains the type and the priority. In memory, we will use
** an array of types which contain the priority.
*/
for (I = 0; I < ConDesCount; ++I) {
E->ConDes[CD_GET_TYPE (ConDes[I])] = CD_GET_PRIO (ConDes[I]);
}
@@ -395,8 +395,8 @@ Export* ReadExport (FILE* F, ObjData* O)
ReadLineInfoList (F, O, &E->RefLines);
/* If this symbol is exported as a condes, and the condes type declares a
* forced import, add this import to the object module.
*/
** forced import, add this import to the object module.
*/
for (I = 0; I < CD_TYPE_COUNT; ++I) {
const ConDesImport* CDI;
@@ -410,10 +410,10 @@ Export* ReadExport (FILE* F, ObjData* O)
CollAppend (&O->Imports, Imp);
/* Add line info for the export that is actually the condes that
* forces the import. Then, add line info for the config. file.
* The export's info is added first because the import pretends
* that it came from the object module instead of the config. file.
*/
** forces the import. Then, add line info for the config. file.
** The export's info is added first because the import pretends
** that it came from the object module instead of the config. file.
*/
for (J = 0; J < CollCount (&E->DefLines); ++J) {
CollAppend (&Imp->RefLines, DupLineInfo (CollAt (&E->DefLines, J)));
}
@@ -461,8 +461,8 @@ void InsertExport (Export* E)
if (L->Expr == 0) {
/* This *is* an unresolved external. Use the actual export
* in E instead of the dummy one in L.
*/
** in E instead of the dummy one in L.
*/
E->Next = L->Next;
E->ImpCount = L->ImpCount;
E->ImpList = L->ImpList;
@@ -474,8 +474,8 @@ void InsertExport (Export* E)
ImpOpen -= E->ImpCount; /* Decrease open imports now */
xfree (L);
/* We must run through the import list and change the
* export pointer now.
*/
** export pointer now.
*/
Imp = E->ImpList;
while (Imp) {
Imp->Exp = E;
@@ -606,8 +606,8 @@ Export* CreateSectionExport (unsigned Name, Section* Sec, unsigned long Offs)
Export* FindExport (unsigned Name)
/* Check for an identifier in the list. Return 0 if not found, otherwise
* return a pointer to the export.
*/
** return a pointer to the export.
*/
{
/* Get a pointer to the list with the symbols hash value */
Export* L = HashTab[Name & HASHTAB_MASK];
@@ -685,9 +685,9 @@ static void CheckSymType (const Export* E)
const LineInfo* ImportLI = GetImportPos (I);
/* Generate strings that describe the location of the im- and
* exports. This depends on the place from where they come:
* Object file or linker config.
*/
** exports. This depends on the place from where they come:
** Object file or linker config.
*/
if (E->Obj) {
/* The export comes from an object file */
SB_Printf (&ExportLoc, "%s, %s(%u)",
@@ -707,15 +707,15 @@ static void CheckSymType (const Export* E)
GetSourceLine (ImportLI));
} else if (ImportLI) {
/* The import is linker generated and we have line
* information
*/
** information
*/
SB_Printf (&ImportLoc, "%s(%u)",
GetSourceName (ImportLI),
GetSourceLine (ImportLI));
} else {
/* The import is linker generated and we don't have line
* information
*/
** information
*/
SB_Printf (&ImportLoc, "%s", GetObjFileName (I->Obj));
}
@@ -758,8 +758,8 @@ static void CheckSymTypes (void)
static void PrintUnresolved (ExpCheckFunc F, void* Data)
/* Print a list of unresolved symbols. On unresolved symbols, F is
* called (see the comments on ExpCheckFunc in the data section).
*/
** called (see the comments on ExpCheckFunc in the data section).
*/
{
unsigned I;
@@ -827,8 +827,8 @@ static void CreateExportPool (void)
void CheckExports (void)
/* Setup the list of all exports and check for export/import symbol type
* mismatches.
*/
** mismatches.
*/
{
/* Create an export pool */
CreateExportPool ();
@@ -841,8 +841,8 @@ void CheckExports (void)
void CheckUnresolvedImports (ExpCheckFunc F, void* Data)
/* Check if there are any unresolved imports. On unresolved imports, F is
* called (see the comments on ExpCheckFunc in the data section).
*/
** called (see the comments on ExpCheckFunc in the data section).
*/
{
/* Check for unresolved externals */
if (ImpOpen != 0) {
@@ -970,8 +970,8 @@ void PrintImportMap (FILE* F)
const Export* Exp = ExpPool [I];
/* Print the symbol only if there are imports, or if a verbose map
* file is requested.
*/
** file is requested.
*/
if (VerboseMap || Exp->ImpCount > 0) {
/* Print the export */
@@ -985,9 +985,9 @@ void PrintImportMap (FILE* F)
while (Imp) {
/* Print the import. Beware: The import might be linker
* generated, in which case there is no object file and
* sometimes no line information.
*/
** generated, in which case there is no object file and
** sometimes no line information.
*/
const LineInfo* LI = GetImportPos (Imp);
if (LI) {
fprintf (F,