Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
This commit is contained in:
@@ -112,12 +112,12 @@ static void DoUnexpected (void);
|
||||
|
||||
static void DoInvalid (void);
|
||||
/* Handle a token that is invalid here, since it should have been handled on
|
||||
* a much lower level of the expression hierarchy. Getting this sort of token
|
||||
* means that the lower level code has bugs.
|
||||
* This function differs to DoUnexpected in that the latter may be triggered
|
||||
* by the user by using keywords in the wrong location. DoUnexpected is not
|
||||
* an error in the assembler itself, while DoInvalid is.
|
||||
*/
|
||||
** a much lower level of the expression hierarchy. Getting this sort of token
|
||||
** means that the lower level code has bugs.
|
||||
** This function differs to DoUnexpected in that the latter may be triggered
|
||||
** by the user by using keywords in the wrong location. DoUnexpected is not
|
||||
** an error in the assembler itself, while DoInvalid is.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -129,8 +129,8 @@ static void DoInvalid (void);
|
||||
|
||||
static unsigned char OptionalAddrSize (void)
|
||||
/* If a colon follows, parse an optional address size spec and return it.
|
||||
* Otherwise return ADDR_SIZE_DEFAULT.
|
||||
*/
|
||||
** Otherwise return ADDR_SIZE_DEFAULT.
|
||||
*/
|
||||
{
|
||||
unsigned AddrSize = ADDR_SIZE_DEFAULT;
|
||||
if (CurTok.Tok == TOK_COLON) {
|
||||
@@ -183,8 +183,8 @@ static void ExportWithAssign (SymEntry* Sym, unsigned char AddrSize, unsigned Fl
|
||||
/* Allow to assign the value of an export in an .export statement */
|
||||
{
|
||||
/* The name and optional address size spec may be followed by an assignment
|
||||
* or equal token.
|
||||
*/
|
||||
** or equal token.
|
||||
*/
|
||||
if (CurTok.Tok == TOK_ASSIGN || CurTok.Tok == TOK_EQ) {
|
||||
|
||||
/* Assignment means the symbol is a label */
|
||||
@@ -249,8 +249,8 @@ static void ExportImport (void (*Func) (SymEntry*, unsigned char, unsigned),
|
||||
|
||||
static long IntArg (long Min, long Max)
|
||||
/* Read an integer argument and check a range. Accept the token "unlimited"
|
||||
* and return -1 in this case.
|
||||
*/
|
||||
** and return -1 in this case.
|
||||
*/
|
||||
{
|
||||
if (CurTok.Tok == TOK_IDENT && SB_CompareStr (&CurTok.SVal, "unlimited") == 0) {
|
||||
NextTok ();
|
||||
@@ -301,9 +301,9 @@ static StrBuf* GenArrayType (StrBuf* Type, unsigned SpanSize,
|
||||
const char* ElementType,
|
||||
unsigned ElementTypeLen)
|
||||
/* Create an array (or single data) of the given type. SpanSize is the size
|
||||
* of the span, ElementType is a string that encodes the element data type.
|
||||
* The function returns Type.
|
||||
*/
|
||||
** of the span, ElementType is a string that encodes the element data type.
|
||||
** The function returns Type.
|
||||
*/
|
||||
{
|
||||
/* Get the size of the element type */
|
||||
unsigned ElementSize = GT_GET_SIZE (ElementType[0]);
|
||||
@@ -504,8 +504,8 @@ static void DoAssert (void)
|
||||
NextTok ();
|
||||
|
||||
/* We can have an optional message. If no message is present, use
|
||||
* "Assertion failed".
|
||||
*/
|
||||
** "Assertion failed".
|
||||
*/
|
||||
if (CurTok.Tok == TOK_COMMA) {
|
||||
|
||||
/* Skip the comma */
|
||||
@@ -518,8 +518,8 @@ static void DoAssert (void)
|
||||
}
|
||||
|
||||
/* Translate the message into a string id. We can then skip the input
|
||||
* string.
|
||||
*/
|
||||
** string.
|
||||
*/
|
||||
Msg = GetStrBufId (&CurTok.SVal);
|
||||
NextTok ();
|
||||
|
||||
@@ -1253,14 +1253,14 @@ static void DoIncBin (void)
|
||||
fseek (F, 0, SEEK_END);
|
||||
Size = ftell (F);
|
||||
|
||||
/* Stat the file and remember the values. 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.
|
||||
*/
|
||||
/* Stat the file and remember the values. 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.
|
||||
*/
|
||||
SB_Terminate (&Name);
|
||||
if (FileStat (SB_GetConstBuf (&Name), &StatBuf) != 0) {
|
||||
Fatal ("Cannot stat input file `%m%p': %s", &Name, strerror (errno));
|
||||
@@ -1364,12 +1364,12 @@ static void DoInterruptor (void)
|
||||
|
||||
static void DoInvalid (void)
|
||||
/* Handle a token that is invalid here, since it should have been handled on
|
||||
* a much lower level of the expression hierarchy. Getting this sort of token
|
||||
* means that the lower level code has bugs.
|
||||
* This function differs to DoUnexpected in that the latter may be triggered
|
||||
* by the user by using keywords in the wrong location. DoUnexpected is not
|
||||
* an error in the assembler itself, while DoInvalid is.
|
||||
*/
|
||||
** a much lower level of the expression hierarchy. Getting this sort of token
|
||||
** means that the lower level code has bugs.
|
||||
** This function differs to DoUnexpected in that the latter may be triggered
|
||||
** by the user by using keywords in the wrong location. DoUnexpected is not
|
||||
** an error in the assembler itself, while DoInvalid is.
|
||||
*/
|
||||
{
|
||||
Internal ("Unexpected token: %m%p", &Keyword);
|
||||
}
|
||||
@@ -1494,8 +1494,8 @@ static void DoOut (void)
|
||||
ErrorSkip ("String constant expected");
|
||||
} else {
|
||||
/* Output the string and be sure to flush the output to keep it in
|
||||
* sync with any error messages if the output is redirected to a file.
|
||||
*/
|
||||
** sync with any error messages if the output is redirected to a file.
|
||||
*/
|
||||
printf ("%.*s\n",
|
||||
(int) SB_GetLen (&CurTok.SVal),
|
||||
SB_GetConstBuf (&CurTok.SVal));
|
||||
@@ -1794,8 +1794,8 @@ static void DoSetCPU (void)
|
||||
SetCPU (CPU);
|
||||
|
||||
/* Skip the identifier. If the CPU switch was successful, the scanner
|
||||
* will treat the input now correctly for the new CPU.
|
||||
*/
|
||||
** will treat the input now correctly for the new CPU.
|
||||
*/
|
||||
NextTok ();
|
||||
}
|
||||
}
|
||||
@@ -1861,10 +1861,10 @@ static void DoUnDef (void)
|
||||
/* Undefine a define style macro */
|
||||
{
|
||||
/* The function is called with the .UNDEF token in place, because we need
|
||||
* to disable .define macro expansions before reading the next token.
|
||||
* Otherwise the name of the macro would be expanded, so we would never
|
||||
* see it.
|
||||
*/
|
||||
** to disable .define macro expansions before reading the next token.
|
||||
** Otherwise the name of the macro would be expanded, so we would never
|
||||
** see it.
|
||||
*/
|
||||
DisableDefineStyleMacros ();
|
||||
NextTok ();
|
||||
EnableDefineStyleMacros ();
|
||||
|
||||
Reference in New Issue
Block a user