On Mon, 24 May 2004, Arkady V.Belousov wrote:
> STATIC void swap_deleted(char *name)
> {
> /* DELETED (0x5) || EXT_DELETED (0xe5) ? */
> if ((UBYTE)(name[0] & ~0xE0) == DELETED)
> >---------------------^^^^^^^^^^^^^^^^^^^
> *name ^= EXT_DELETED ^ DELETED; /* 0xe0 */
> >------------------------^
How about
0x25 & ~0xe0 = 0x25 & 0x1f = 0x5 (DELETED)
0x25 ^ 0xe0 = 197 (0xc5)
Your code is much harder to understand and I'm not even sure if it works!
Bart
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel