1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-12 06:30:42 +00:00

Fix missing spaces

This commit is contained in:
Lauri Kasanen 2019-04-13 19:43:44 +03:00 committed by greg-king5
parent 304473d857
commit a9cbb5305c
4 changed files with 7 additions and 7 deletions

View File

@ -429,7 +429,7 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
/* If we don't have the label, it's a forward ref - create it unless /* If we don't have the label, it's a forward ref - create it unless
** it's an external function. ** it's an external function.
*/ */
if (Label == 0 && (OPC->OPC != OP65_JMP || IsLocalLabelName(Arg)) ) { if (Label == 0 && (OPC->OPC != OP65_JMP || IsLocalLabelName (Arg)) ) {
/* Generate a new label */ /* Generate a new label */
Label = CS_NewCodeLabel (S, Arg, Hash); Label = CS_NewCodeLabel (S, Arg, Hash);
} }

View File

@ -704,7 +704,7 @@ static void Primary (ExprDesc* E)
/* output its label */ /* output its label */
E->Flags = E_RTYPE_RVAL | E_LOC_STATIC; E->Flags = E_RTYPE_RVAL | E_LOC_STATIC;
E->Name = Entry->V.L.Label; E->Name = Entry->V.L.Label;
E->Type = PointerTo(type_void); E->Type = PointerTo (type_void);
NextToken (); NextToken ();
} else { } else {
Error ("Computed gotos are a C extension, not supported with this --standard"); Error ("Computed gotos are a C extension, not supported with this --standard");

View File

@ -90,12 +90,12 @@ void GotoStatement (void)
ConsumeLBrack (); ConsumeLBrack ();
/* Find array size */ /* Find array size */
if (!IsTypeArray(arr->Type) || SizeOf(arr->Type) == 0 || if (!IsTypeArray (arr->Type) || SizeOf (arr->Type) == 0 ||
SizeOf(GetElementType(arr->Type)) != 2) SizeOf (GetElementType(arr->Type)) != 2)
Error ("Expected array"); Error ("Expected array");
if (GetElementCount(arr->Type) > 127) if (GetElementCount (arr->Type) > 127)
Error ("Only arrays with <= 127 labels are supported, got %lu", Error ("Only arrays with <= 127 labels are supported, got %lu",
GetElementCount(arr->Type)); GetElementCount (arr->Type));
if (CurTok.Tok == TOK_ICONST) { if (CurTok.Tok == TOK_ICONST) {
val = CurTok.IVal; val = CurTok.IVal;

View File

@ -745,7 +745,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
*/ */
if (DOR->Flags & SC_GOTO) { if (DOR->Flags & SC_GOTO) {
SymEntry *E; SymEntry *E;
g_userodata(); g_userodata ();
g_defdatalabel (DOR->LateSP_Label); g_defdatalabel (DOR->LateSP_Label);
g_defdata (CF_CONST | CF_INT, StackPtr - DOR->StackPtr, 0); g_defdata (CF_CONST | CF_INT, StackPtr - DOR->StackPtr, 0);