3 * ----------------------------------------------------------------------
\r
4 * Deque for struct type with only one link pointer (x->next).
\r
5 * ----------------------------------------------------------------------
\r
6 * Created : Fri Dec 5 11:19:37 1997 tri
\r
7 * Last modified: Thu Apr 16 17:35:57 1998 tri
\r
8 * ----------------------------------------------------------------------
\r
9 * Copyright © 1995-1998
\r
10 * Timo J. Rinne <tri@iki.fi>
\r
11 * All rights reserved. See file COPYRIGHT for details.
\r
13 * Address: Cirion oy, PO-BOX 250, 00121 Helsinki, Finland
\r
14 * ----------------------------------------------------------------------
\r
15 * Any express or implied warranties are disclaimed. In no event
\r
16 * shall the author be liable for any damages caused (directly or
\r
17 * otherwise) by the use of this software.
\r
19 * Please, send your patches to <tri@iki.fi>.
\r
20 * ----------------------------------------------------------------------
\r
25 * Revision 1.1 2001/07/23 11:07:56 priikone
28 * Revision 1.1.1.1 2000/10/31 19:59:30 priikone
\r
29 * Imported TRQ and SilList and SilcDList API's.
\r
31 * Revision 1.1 1998/04/16 14:39:42 tri
\r
36 #ifndef __TRQ_CONF__H__
\r
37 #define __TRQ_CONF__H__ 1
\r
40 * stddef.h is included here if such file exists.
\r
41 * offsetof should be defined there.
\r
46 * If compiler supports inline functions, __TRQ__INLINE__FUNCTION__
\r
47 * is defined to the correct keyword. Usually this is defined
\r
48 * as inline, __inline__ or __inline. If inline functions are
\r
49 * not supported, __TRQ__INLINE__FUNCTION__ is undefined.
\r
51 #define __TRQ__INLINE__FUNCTION__ __inline
\r
53 typedef unsigned long trq_p_i_t; /* Integral type size of an pointer */
\r
56 #define _Q_STRUCT_OFFSET(t, m) ((trq_p_i_t)(offsetof(t, m)))
\r
58 #define _Q_STRUCT_OFFSET(t, m) (((trq_p_i_t)(&(((t *)0)->m))))
\r
61 #endif /* !__TRQ_CONF__H__ */
\r
62 /* eof (trq_conf.h) */
\r