| 1 |
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 2 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 3 |
/****************************************************************************/ |
| 4 |
/* */ |
| 5 |
/* File: sll.ht */ |
| 6 |
/* */ |
| 7 |
/* Purpose: single linked list templates, header file */ |
| 8 |
/* */ |
| 9 |
/* Author: Klaus Birken */ |
| 10 |
/* Institut fuer Computeranwendungen III */ |
| 11 |
/* Universitaet Stuttgart */ |
| 12 |
/* Pfaffenwaldring 27 */ |
| 13 |
/* 70569 Stuttgart */ |
| 14 |
/* internet: [email protected] */ |
| 15 |
/* */ |
| 16 |
/* History: 960826 kb created */ |
| 17 |
/* */ |
| 18 |
/* Remarks: */ |
| 19 |
/* */ |
| 20 |
/****************************************************************************/ |
| 21 |
|
| 22 |
|
| 23 |
/****************************************************************************/ |
| 24 |
/* */ |
| 25 |
/* function declarations */ |
| 26 |
/* */ |
| 27 |
/****************************************************************************/ |
| 28 |
|
| 29 |
/* from sll.ct */ |
| 30 |
T *New(T) (DDD::DDDContext&); |
| 31 |
T **SortedArray(T) (DDD::DDDContext&, int (*) (const void *, const void *)); |
| 32 |
int Unify(T) (const DDD::DDDContext&, T **, int (*) (const DDD::DDDContext&, T **, T **)); |
| 33 |
#ifdef SLL_WithOrigOrder |
| 34 |
void OrigOrder(T) (DDD::DDDContext&, T **, int); |
| 35 |
#endif |
| 36 |
void Init(T) (DDD::DDDContext&); |
| 37 |
void FreeAll(T) (DDD::DDDContext&); |
| 38 |
void GetSizes(T) (const DDD::DDDContext&, int *, int *, size_t *, size_t *); |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
/****************************************************************************/ |
| 43 |
|
| 44 |
/* undefine switches and helper macros */ |
| 45 |
|
| 46 |
#ifdef SLL_WithOrigOrder |
| 47 |
#undef SLL_WithOrigOrder |
| 48 |
#endif |
| 49 |
|
| 50 |
/****************************************************************************/ |
| 51 |
|