Fix parsing of for-loops.

This commit is contained in:
Ilmir Usmanov
2014-07-23 20:47:31 +04:00
parent 2ff5d14b06
commit 764efa41b8
8 changed files with 35 additions and 98 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ __fseek(_FILE * fp, /**< stream pointer */
_whence_t whence) /**< specifies position type
to add offset to */
{
int whence_real;
int whence_real = SEEK_CUR;
switch ( whence )
{
case __SEEK_SET:
+2 -2
View File
@@ -79,11 +79,11 @@ serializer_dump_opcode (const void *opcode)
}
void
serializer_rewrite_opcode (const int8_t offset, const void *opcode)
serializer_rewrite_opcode (const uint8_t loc, const void *opcode)
{
uint8_t i;
__printf ("%03d: %20s ", opcode_counter + offset, massive[(int)((char*)opcode)[0]]);
__printf ("%03d: %20s ", loc, massive[(int)((char*)opcode)[0]]);
for (i = 1; i < 4; i++)
__printf ("%4d ", ((char*)opcode)[i]);