/usr/include/ug/sll.h is in libug-dev 3.11.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/****************************************************************************/
/* */
/* File: sll.h */
/* */
/* Purpose: header file for sll templates */
/* */
/* Author: Klaus Birken */
/* Institut fuer Computeranwendungen III */
/* Universitaet Stuttgart */
/* Pfaffenwaldring 27 */
/* 70569 Stuttgart */
/* internet: birken@ica3.uni-stuttgart.de */
/* */
/* History: 960826 kb begin */
/* */
/* Remarks: */
/* */
/****************************************************************************/
/* RCS_ID
$Header$
*/
/****************************************************************************/
/* */
/* auto include mechanism and other include files */
/* */
/****************************************************************************/
#ifndef __SLL_H__
#define __SLL_H__
/****************************************************************************/
/* configure debugging of New(T) calls.
NOTE: this will add additional data to each sll-item!! */
/*
#define SLL_DebugNew
*/
/* size of segments for memory allocation */
#define SEGM_SIZE 256
/****************************************************************************/
#ifdef SLL_DebugNew
#define SLLNewArgProtos char * file, int line
#define SLLNewArgs __FILE__, __LINE__
#define SLL_NAMELEN 30
#define SLL_INFO(T) \
struct T *sll_next; /* linked list */ \
char sll_file[SLL_NAMELEN]; /* filename of New-call */ \
int sll_line /* lineno of New-call */
#define SLL_INFO_WITH_COUNTER(T) \
int sll_n; /* unique index number */ \
struct T *sll_next; /* linked list */ \
char sll_file[SLL_NAMELEN]; /* filename of New-call */ \
int sll_line /* lineno of New-call */
#else
#define SLLNewArgProtos void /* none */
#define SLLNewArgs /* none */
#define SLL_INFO(T) \
struct T *sll_next /* linked list */
#define SLL_INFO_WITH_COUNTER(T) \
int sll_n; /* unique index number */ \
struct T *sll_next /* linked list */
#endif
/****************************************************************************/
/*
macros for template support: datatypes
*/
#define _aSegm(T) aSegm ## T
#define aSegm(T) _aSegm(T)
#define _Segm(T) Segm ## T
#define Segm(T) _Segm(T)
/*
macros for template support: variables
*/
#define _segms(T) segms ## T
#define segms(T) _segms(T)
#define _list(T) list ## T
#define list(T) _list(T)
#define _n(T) n ## T
#define n(T) _n(T)
/*
macros for template support: functions
*/
#define _NewSegm(T) NewSegm ## T
#define NewSegm(T) _NewSegm(T)
#define _FreeSegms(T) FreeSegms ## T
#define FreeSegms(T) _FreeSegms(T)
#define _New(T) New ## T
#define New(T) _New(T)
#define _SortedArray(T) SortedArray ## T
#define SortedArray(T) _SortedArray(T)
#define _sort_OrigOrder(T) sort_OrigOrder ## T
#define sort_OrigOrder(T) _sort_OrigOrder(T)
#define _OrigOrder(T) OrigOrder ## T
#define OrigOrder(T) _OrigOrder(T)
#define _Unify(T) Unify ## T
#define Unify(T) _Unify(T)
#define _Init(T) Init ## T
#define Init(T) _Init(T)
#define _FreeAll(T) FreeAll ## T
#define FreeAll(T) _FreeAll(T)
#define _GetSizes(T) GetSizes ## T
#define GetSizes(T) _GetSizes(T)
/****************************************************************************/
#endif
|