formatting

This commit is contained in:
Joseph Poirier 2015-06-18 23:20:10 -05:00
parent 9c05060820
commit 255b19e51b
3 changed files with 4 additions and 5 deletions

View file

@ -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);

2
heap.c
View file

@ -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;

6
lex.c
View file

@ -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;
}