Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7306 → Rev 7307

/programs/cmm/python/library/head.h
27,7 → 27,9
#define PY_DCT 16
 
#define PY_NA_STR 32
#define PY_SYM_STR 33
 
 
#define PY_ADD 0
#define PY_POW 1
#define PY_MUL 2
/programs/cmm/python/library/opcode.h
377,6 → 377,8
dword x = 0;
dword y = 0;
dword l = 0;
byte t = 0;
x = popStack();
y = popStack();
389,9 → 391,21
IF(l<=x) test("error max list",0);
IF(0>l) test("error min list",0);
t = DSBYTE[y+4];
IF(t==PY_LST)
{
y = DSDWORD[y];
pushStack(DSDWORD[x*4+y]);
return;
}
IF(t==PY_STR)
{
y = DSDWORD[y];
load_const(y+x,PY_STR,1);
return;
}
}
 
/*