AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1994.02.14 12:43 "'b' and 'l' versus 'M' and 'I'", by Soren Pingel Dalsgaard
1994.02.15 04:28 "Re: 'b' and 'l' versus 'M' and 'I' -- libtiff++?", by Richard Minner
1994.02.18 19:31 "Re: 'b' and 'l' versus 'M' and 'I' -- libtiff++? (really what's up with libtiff)", by Sam Leffler

1994.02.14 12:43 "'b' and 'l' versus 'M' and 'I'", by Soren Pingel Dalsgaard

It has been pointed out that 'b' is used on some computers to signify binary mode (as opposed to text mode). As a result is has been suggested that 'M' and 'I' are used instead.

But since the mode string isn't actually passed to fopen but parsed by the library it doesn't really matter if 'b' is used in another context. You can ofcourse make your own private modifications and implement 'M' and 'I' checking.

I was thinking of adding '#ifdef NO_READ_SUPPORT' and '#ifdef NO_WRITE_SUPPORT' to all modules to make the library smaller in cases where only writing is needed. Any comments?

--
Soren Pingel Dalsgaard
pingel@daimi.aau.dk
Department of Computer Science
Aarhus University
Ny Munkegade 116
DK-8000 Aarhus C
DENMARK