From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1720fe559fc2273e7dcbaa798c6f5d7a@ladd.quanstro.net> References: <1720fe559fc2273e7dcbaa798c6f5d7a@ladd.quanstro.net> Date: Sun, 4 Apr 2010 21:03:32 +0000 Message-ID: From: Sir Guenther To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0016e6d778db86a7da04836f8bd0 Subject: Re: [9fans] acid. cormap vs. symmap Topicbox-Message-UUID: fc54acc4-ead5-11e9-9d60-3106f5b1d025 --0016e6d778db86a7da04836f8bd0 Content-Type: text/plain; charset=ISO-8859-1 int fmtsize(Value *v) { int ret; switch(v->store.fmt) { default: return fsize[(unsigned char)v->store.fmt]; case 'i': case 'I': if(v->type != TINT || mach == 0) error("no size for i fmt pointer ++/--"); ret = (*mach->instsize)(symmap, v->store.u.ival); if(ret < 0) { ret = (*mach->instsize)(symmap, v->store.u.ival); if(ret < 0) error("%r"); } return ret; } } --- it's always using symmap. replacing it with cormap fixed my problems. Andre --0016e6d778db86a7da04836f8bd0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable int
fmtsize(Value *v)
{
=A0 =A0 =A0 =A0int ret;

=A0 =A0 =A0 =A0switch(v->store.fmt) {
=A0 =A0 =A0 =A0default:
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return =A0fsize[(unsigned char)v->store.= fmt];
=A0 =A0 =A0 =A0case 'i':
=A0 =A0 =A0 =A0case 'I':
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if(v->type !=3D TINT || mach =3D=3D 0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0error("no size for i f= mt pointer ++/--");
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ret =3D (*mach->instsize)(symmap, v->= store.u.ival);
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if(ret < 0) {
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ret =3D (*mach->instsize= )(symmap, v->store.u.ival);
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if(ret < 0)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0error("= ;%r");
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return ret;
=A0 =A0 =A0 =A0}
}

---
it's always using symmap. replacing it with cormap fixed my problems.
Andre
--0016e6d778db86a7da04836f8bd0--