Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
This commit is contained in:
@@ -130,8 +130,8 @@ void ExpInsert (const char* Name, const ObjData* Module)
|
||||
|
||||
const ObjData* ExpFind (const char* Name)
|
||||
/* Check for an identifier in the list. Return NULL if not found, otherwise
|
||||
* return a pointer to the module, that exports the identifer.
|
||||
*/
|
||||
** return a pointer to the module, that exports the identifer.
|
||||
*/
|
||||
{
|
||||
/* Get a pointer to the list with the symbols hash value */
|
||||
HashEntry* L = HashTab [HashStr (Name) % HASHTAB_SIZE];
|
||||
|
||||
@@ -59,8 +59,8 @@ void ExpInsert (const char* Name, const struct ObjData* Module);
|
||||
|
||||
const struct ObjData* ExpFind (const char* Name);
|
||||
/* Check for an identifier in the list. Return NULL if not found, otherwise
|
||||
* return a pointer to the module, that exports the identifer.
|
||||
*/
|
||||
** return a pointer to the module, that exports the identifer.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2003 Ullrich von Bassewitz */
|
||||
/* R<EFBFBD>merstrasse 52 */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
@@ -84,10 +84,10 @@ void WriteVar (FILE* F, unsigned long V)
|
||||
/* Write a variable sized value to the file in special encoding */
|
||||
{
|
||||
/* We will write the value to the file in 7 bit chunks. If the 8th bit
|
||||
* is clear, we're done, if it is set, another chunk follows. This will
|
||||
* allow us to encode smaller values with less bytes, at the expense of
|
||||
* needing 5 bytes if a 32 bit value is written to file.
|
||||
*/
|
||||
** is clear, we're done, if it is set, another chunk follows. This will
|
||||
** allow us to encode smaller values with less bytes, at the expense of
|
||||
** needing 5 bytes if a 32 bit value is written to file.
|
||||
*/
|
||||
do {
|
||||
unsigned char C = (V & 0x7F);
|
||||
V >>= 7;
|
||||
@@ -156,8 +156,8 @@ unsigned long ReadVar (FILE* F)
|
||||
/* Read a variable size value from the file */
|
||||
{
|
||||
/* The value was written to the file in 7 bit chunks LSB first. If there
|
||||
* are more bytes, bit 8 is set, otherwise it is clear.
|
||||
*/
|
||||
** are more bytes, bit 8 is set, otherwise it is clear.
|
||||
*/
|
||||
unsigned char C;
|
||||
unsigned long V = 0;
|
||||
unsigned Shift = 0;
|
||||
|
||||
@@ -216,9 +216,9 @@ static void WriteIndex (void)
|
||||
|
||||
void LibOpen (const char* Name, int MustExist, int NeedTemp)
|
||||
/* Open an existing library and a temporary copy. If MustExist is true, the
|
||||
* old library is expected to exist. If NeedTemp is true, a temporary library
|
||||
* is created.
|
||||
*/
|
||||
** old library is expected to exist. If NeedTemp is true, a temporary library
|
||||
** is created.
|
||||
*/
|
||||
{
|
||||
/* Remember the name */
|
||||
LibName = xstrdup (Name);
|
||||
@@ -268,8 +268,8 @@ void LibOpen (const char* Name, int MustExist, int NeedTemp)
|
||||
|
||||
unsigned long LibCopyTo (FILE* F, unsigned long Bytes)
|
||||
/* Copy data from F to the temp library file, return the start position in
|
||||
* the temporary library file.
|
||||
*/
|
||||
** the temporary library file.
|
||||
*/
|
||||
{
|
||||
unsigned char Buf [4096];
|
||||
|
||||
@@ -311,8 +311,8 @@ void LibCopyFrom (unsigned long Pos, unsigned long Bytes, FILE* F)
|
||||
|
||||
static void LibCheckExports (ObjData* O)
|
||||
/* Insert all exports from the given object file into the global list
|
||||
* checking for duplicates.
|
||||
*/
|
||||
** checking for duplicates.
|
||||
*/
|
||||
{
|
||||
unsigned I;
|
||||
|
||||
@@ -335,8 +335,8 @@ static void LibCheckExports (ObjData* O)
|
||||
|
||||
void LibClose (void)
|
||||
/* Write remaining data, close both files and copy the temp file to the old
|
||||
* filename
|
||||
*/
|
||||
** filename
|
||||
*/
|
||||
{
|
||||
/* Do we have a temporary library? */
|
||||
if (NewLib) {
|
||||
@@ -346,9 +346,9 @@ void LibClose (void)
|
||||
size_t Count;
|
||||
|
||||
/* Walk through the object file list, inserting exports into the
|
||||
* export list checking for duplicates. Copy any data that is still
|
||||
* in the old library into the new one.
|
||||
*/
|
||||
** export list checking for duplicates. Copy any data that is still
|
||||
** in the old library into the new one.
|
||||
*/
|
||||
for (I = 0; I < CollCount (&ObjPool); ++I) {
|
||||
|
||||
/* Get a pointer to the object */
|
||||
|
||||
@@ -61,22 +61,22 @@ extern const char* LibName;
|
||||
|
||||
void LibOpen (const char* Name, int MustExist, int NeedTemp);
|
||||
/* Open an existing library and a temporary copy. If MustExist is true, the
|
||||
* old library is expected to exist. If NeedTemp is true, a temporary library
|
||||
* is created.
|
||||
*/
|
||||
** old library is expected to exist. If NeedTemp is true, a temporary library
|
||||
** is created.
|
||||
*/
|
||||
|
||||
unsigned long LibCopyTo (FILE* F, unsigned long Bytes);
|
||||
/* Copy data from F to the temp library file, return the start position in
|
||||
* the temporary library file.
|
||||
*/
|
||||
** the temporary library file.
|
||||
*/
|
||||
|
||||
void LibCopyFrom (unsigned long Pos, unsigned long Bytes, FILE* F);
|
||||
/* Copy data from the library file into another file */
|
||||
|
||||
void LibClose (void);
|
||||
/* Write remaining data, close both files and copy the temp file to the old
|
||||
* filename
|
||||
*/
|
||||
** filename
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -122,8 +122,8 @@ void ClearObjData (ObjData* O)
|
||||
|
||||
ObjData* FindObjData (const char* Module)
|
||||
/* Search for the module with the given name and return it. Return NULL if the
|
||||
* module is not in the list.
|
||||
*/
|
||||
** module is not in the list.
|
||||
*/
|
||||
{
|
||||
unsigned I;
|
||||
|
||||
|
||||
@@ -97,8 +97,8 @@ void ClearObjData (ObjData* O);
|
||||
|
||||
ObjData* FindObjData (const char* Module);
|
||||
/* Search for the module with the given name and return it. Return NULL if the
|
||||
* module is not in the list.
|
||||
*/
|
||||
** module is not in the list.
|
||||
*/
|
||||
|
||||
void DelObjData (const char* Module);
|
||||
/* Delete the object module from the list */
|
||||
|
||||
@@ -168,8 +168,8 @@ static void SkipLineInfoList (FILE* F)
|
||||
|
||||
void ObjReadData (FILE* F, ObjData* O)
|
||||
/* Read object file data from the given file. The function expects the Name
|
||||
* and Start fields to be valid. Header and basic data are read.
|
||||
*/
|
||||
** and Start fields to be valid. Header and basic data are read.
|
||||
*/
|
||||
{
|
||||
unsigned long Count;
|
||||
|
||||
@@ -239,14 +239,14 @@ void ObjAdd (const char* Name)
|
||||
Error ("Could not open `%s': %s", Name, strerror (errno));
|
||||
}
|
||||
|
||||
/* Get the modification time of the object file. There a race condition
|
||||
* here, since we cannot use fileno() (non standard identifier in standard
|
||||
* header file), and therefore not fstat. When using stat with the
|
||||
* file name, there's a risk that the file was deleted and recreated
|
||||
* while it was open. Since mtime and size are only used to check
|
||||
* if a file has changed in the debugger, we will ignore this problem
|
||||
* here.
|
||||
*/
|
||||
/* Get the modification time of the object file. There's a race condition
|
||||
** here, since we cannot use fileno() (non-standard identifier in standard
|
||||
** header file), and therefore not fstat. When using stat with the
|
||||
** file name, there's a risk that the file was deleted and recreated
|
||||
** while it was open. Since mtime and size are only used to check
|
||||
** if a file has changed in the debugger, we will ignore this problem
|
||||
** here.
|
||||
*/
|
||||
if (FileStat (Name, &StatBuf) != 0) {
|
||||
Error ("Cannot stat object file `%s': %s", Name, strerror (errno));
|
||||
}
|
||||
@@ -264,8 +264,8 @@ void ObjAdd (const char* Name)
|
||||
O = NewObjData ();
|
||||
} else {
|
||||
/* Found - check the file modification times of the internal copy
|
||||
* and the external one.
|
||||
*/
|
||||
** and the external one.
|
||||
*/
|
||||
if (difftime ((time_t)O->MTime, StatBuf.st_mtime) > 0.0) {
|
||||
Warning ("Replacing module `%s' by older version in library `%s'",
|
||||
O->Name, LibName);
|
||||
@@ -289,8 +289,8 @@ void ObjAdd (const char* Name)
|
||||
ObjReadData (Obj, O);
|
||||
|
||||
/* Copy the complete object data to the library file and update the
|
||||
* starting offset
|
||||
*/
|
||||
** starting offset
|
||||
*/
|
||||
fseek (Obj, 0, SEEK_SET);
|
||||
O->Start = LibCopyTo (Obj, O->Size);
|
||||
|
||||
@@ -323,8 +323,8 @@ void ObjExtract (const char* Name)
|
||||
}
|
||||
|
||||
/* Copy the complete object file data from the library to the new object
|
||||
* file.
|
||||
*/
|
||||
** file.
|
||||
*/
|
||||
LibCopyFrom (O->Start, O->Size, Obj);
|
||||
|
||||
/* Close the file */
|
||||
|
||||
@@ -60,8 +60,8 @@ struct ObjData;
|
||||
|
||||
void ObjReadData (FILE* F, struct ObjData* O);
|
||||
/* Read object file data from the given file. The function expects the Name
|
||||
* and Start fields to be valid. Header and basic data are read.
|
||||
*/
|
||||
** and Start fields to be valid. Header and basic data are read.
|
||||
*/
|
||||
|
||||
void ObjAdd (const char* Name);
|
||||
/* Add an object file to the library */
|
||||
|
||||
Reference in New Issue
Block a user