MessageTrans problems

Tom Hughes tom at compton.nu
Mon Oct 29 23:23:37 GMT 2001


In message <Pine.GSO.4.10.10110292127360.2996-100000 at glenlivet.ohm.york.ac.uk>
          Carl Hetherington <cth at carlh.net> wrote:

> PRM 3-745
> MessageTrans_Lookup returns a pointer to the token terminator in r1
> messagetrans_lookup() doesn't return this.

I actually noticed this over the weekend but I decided that it
must be deliberate on the grounds that R1=R2+R3 and R1 is therefore
redundant if you have the other two values.

> PRM 3-755
> Messagetrans_GSLookup returns a pointer to the result string in r2
> messagetrans_gs_lookup() doesn't return this.

This looks like a bug.

> PRM 3-751
> MessageTrans_EnumerateTokens preserves r2 as a string buffer pointer
> unless there is a problem, in which case r2 is returned as zero.
> messagetrans_enumerate_tokens uses an osbool* for this value; is this in
> line with OSLib's general rules?

Not really - looks like another bug to me.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the oslib-user mailing list