From 255b19e51bbe7b19f07a4d81c506c3a061302b6e Mon Sep 17 00:00:00 2001 From: Joseph Poirier Date: Thu, 18 Jun 2015 23:20:10 -0500 Subject: [PATCH] formatting --- expression.c | 1 - heap.c | 2 +- lex.c | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/expression.c b/expression.c index 1584e2c..1b5a997 100644 --- a/expression.c +++ b/expression.c @@ -1909,7 +1909,6 @@ long ExpressionParseInt(struct ParseState *Parser) ProgramFail(Parser, "expression expected"); if (Parser->Mode == RunModeRun) { - // if (!IS_NUMERIC_COERCIBLE(Val)) if (!IS_NUMERIC_COERCIBLE_PLUS_POINTERS(Val, true)) ProgramFail(Parser, "integer value expected instead of %t", Val->Typ); diff --git a/heap.c b/heap.c index 5f21be4..5cbd628 100644 --- a/heap.c +++ b/heap.c @@ -36,7 +36,7 @@ void HeapInit(Picoc *pc, int StackOrHeapSize) pc->HeapStackTop = &(pc->HeapMemory)[AlignOffset]; *(void **)(pc->StackFrame) = NULL; pc->HeapBottom = - &(pc->HeapMemory)[StackOrHeapSize-sizeof(ALIGN_TYPE)+AlignOffset]; + &(pc->HeapMemory)[StackOrHeapSize-sizeof(ALIGN_TYPE)+AlignOffset]; pc->FreeListBig = NULL; for (Count = 0; Count < FREELIST_BUCKETS; Count++) pc->FreeListBucket[Count] = NULL; diff --git a/lex.c b/lex.c index bee7f56..d10ecdf 100644 --- a/lex.c +++ b/lex.c @@ -53,7 +53,7 @@ struct ReservedWord { }; static struct ReservedWord ReservedWords[] = { - /* wrf, when optimizations are set escaping certain chars is required or they disappear */ + /* wtf, when optimizations are set escaping certain chars is required or they disappear */ {"#define", TokenHashDefine}, {"#else", TokenHashElse}, {"#endif", TokenHashEndif}, @@ -109,7 +109,7 @@ void LexInit(Picoc *pc) Count++) { TableSet(pc, &pc->ReservedWordTable, TableStrRegister(pc, ReservedWords[Count].Word), - (struct Value *)&ReservedWords[Count], NULL, 0, 0); + (struct Value*)&ReservedWords[Count], NULL, 0, 0); } pc->LexValue.Typ = NULL; @@ -140,7 +140,7 @@ enum LexToken LexCheckReservedWord(Picoc *pc, const char *Word) struct Value *val; if (TableGet(&pc->ReservedWordTable, Word, &val, NULL, NULL, NULL)) - return ((struct ReservedWord *)val)->Token; + return ((struct ReservedWord*)val)->Token; else return TokenNone; }