EOR - AND mask inconsistency

John Tytgat John.Tytgat at aaug.net
Fri Mar 4 22:03:06 GMT 2005


In message <gemini.icttf1019ky2o051r.tony at mk-net.demon.co.uk>
          Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:

> John Tytgat <John.Tytgat at aaug.net> wrote in message
> <c11538404d.Jo at hobbes.bass-software.com>
> 
> [snip]
> > 
> > 3) EOR/AND values for IN only:
> > 
> > extern os_error *xbuffer_modify_flags (buffer_b b,
> >       bits eor_mask,
> >       bits and_mask);
> > 
> > But this is bad because this API doesn't allow me to read any of the
> > current buffer flag bits...
> > 
> > Could this be fixed please ?
> 
> Whilst I'm looking at OSLib, and you didn't reply to my earlier request,
> presumably what we need here is a new call, with a signature:
> 
>  extern os_error *xbuffer_modify_flags2 
>       (buffer_b b,
>        bits eor_mask,
>        bits and_mask,
>        bits *old_value,
>        bits *new_value	
>        );
> 
> OK?

Apologies for failing to properly following this up.  Of course this
would solve the problem.

Thanks,
John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven



More information about the oslib-user mailing list