// add {} to a statement if it isn't a block already // i = beginning of statement or block svoid tok_statementToBlock(LS tok, int i) { if (neqGet(tok, i, "{")) { int iEnd = tok_findEndOfStatement(tok, i)-1; tokAppend_reTok(tok, iEnd, " }"); tokPrepend_reTok(tok, i, "{ "); } }