From: Lauri Kasanen Date: Sat, 13 Apr 2019 16:43:44 +0000 (+0300) Subject: Fix missing spaces X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9cbb5305c3863b3385c54d7112bd587e8d075c4;p=cc65 Fix missing spaces --- diff --git a/src/cc65/codeseg.c b/src/cc65/codeseg.c index 297d09c4f..e2fd84a7c 100644 --- a/src/cc65/codeseg.c +++ b/src/cc65/codeseg.c @@ -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 ** 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 */ Label = CS_NewCodeLabel (S, Arg, Hash); } diff --git a/src/cc65/expr.c b/src/cc65/expr.c index a4b58b723..fad1c9514 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -704,7 +704,7 @@ static void Primary (ExprDesc* E) /* output its label */ E->Flags = E_RTYPE_RVAL | E_LOC_STATIC; E->Name = Entry->V.L.Label; - E->Type = PointerTo(type_void); + E->Type = PointerTo (type_void); NextToken (); } else { Error ("Computed gotos are a C extension, not supported with this --standard"); diff --git a/src/cc65/goto.c b/src/cc65/goto.c index 1b99a9803..08a7033c3 100644 --- a/src/cc65/goto.c +++ b/src/cc65/goto.c @@ -90,12 +90,12 @@ void GotoStatement (void) ConsumeLBrack (); /* Find array size */ - if (!IsTypeArray(arr->Type) || SizeOf(arr->Type) == 0 || - SizeOf(GetElementType(arr->Type)) != 2) + if (!IsTypeArray (arr->Type) || SizeOf (arr->Type) == 0 || + SizeOf (GetElementType(arr->Type)) != 2) Error ("Expected array"); - if (GetElementCount(arr->Type) > 127) + if (GetElementCount (arr->Type) > 127) Error ("Only arrays with <= 127 labels are supported, got %lu", - GetElementCount(arr->Type)); + GetElementCount (arr->Type)); if (CurTok.Tok == TOK_ICONST) { val = CurTok.IVal; diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index 52ef04e42..a31c11bfc 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -745,7 +745,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags) */ if (DOR->Flags & SC_GOTO) { SymEntry *E; - g_userodata(); + g_userodata (); g_defdatalabel (DOR->LateSP_Label); g_defdata (CF_CONST | CF_INT, StackPtr - DOR->StackPtr, 0);