3
Copyright (C) 1994-1997 University of Dortmund
4
Department of Electrical Engineering, AG SIV
6
VAUL is free software; you can redistribute it and/or modify it
7
under the terms of the GNU Library General Public License as
8
published by the Free Software Foundation; either version 2 of the
9
License, or (at your option) any later version.
11
VAUL is distributed in the hope that it will be useful, but WITHOUT
12
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General
14
Public License for more details.
16
You should have received a copy of the GNU Library General Public
17
License along with VAUL; see the file COPYING.LIB. If not, write
18
to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19
Boston, MA 02111-1307 USA.
26
#include <freehdl/vaul-list.h>
28
#define memberat(type, ptr, off) (*((type *)(((char *)(ptr))+(off))))
30
void *generic_reverse(void *l, size_t noff)
34
n = memberat(void *, l, noff);
35
memberat(void *, l, noff) = rl;
42
void *generic_concat(void *l1, void *l2, size_t noff)
48
for(l = &l1; *l; l = &memberat(void *, *l, noff))