From: Dan White Date: Mon, 6 May 2013 05:08:36 +0000 (-0500) Subject: msp4th: cleanup X-Git-Tag: bootrom-initial-submission~7 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=45f45a4a47a9f0003538f5f963aacdce05606e5a;p=430.git msp4th: cleanup --- diff --git a/msp4th/msp4th.c b/msp4th/msp4th.c index 2dba1d1..b588f17 100644 --- a/msp4th/msp4th.c +++ b/msp4th/msp4th.c @@ -719,12 +719,10 @@ void dfnFunc(){ // this function adds a new def to the list and creats a new opcode i = 0; while(wordBuffer[i]){ - cmdList[cmdListPtr] = wordBuffer[i]; - cmdListPtr = cmdListPtr + 1; + cmdList[cmdListPtr++] = wordBuffer[i]; i = i + 1; } - cmdList[cmdListPtr] = ' '; - cmdListPtr = cmdListPtr + 1; + cmdList[cmdListPtr++] = ' '; cmdList[cmdListPtr] = 0; i = lookupToken(wordBuffer,cmdList); progOps[i] = progPtr;