lkml.org 
[lkml]   [2002]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][2.5] Single linked lists for Linux, overly complicated v2
Hi,

On Thu, 26 Sep 2002, Thunder from the hill wrote:
> /**
> * slist_del - remove an entry from list
> * @buf: a storage area, just as long as the entry
> * @entry: entry to be removed
> */
> #define slist_del(_entry_in,_buf) \
> do { \
> typeof(_entry_in) _entry = (_entry_in), \
> _head = (_buf), _free; \
> memcpy(_head, _entry, sizeof(_entry)); \
> _free = _entry; \
> _entry = _entry->next; \
> _head->next = NULL; \
> (_buf) = _head; \
^^^^^^^^^^^^^^^ Ignore this
> } while (0)


Thunder
--
assert(typeof((fool)->next) == typeof(fool)); /* wrong */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [from the cache]
©2003-2011 Jasper Spaans