mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
core: remove structured_list.h
No more users of this, since we switched to C++ containers. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
5805b14734
commit
82fc9de40b
4 changed files with 0 additions and 32 deletions
|
@ -26,7 +26,6 @@
|
|||
#include "sample.h"
|
||||
#include "tag.h"
|
||||
#include "trip.h"
|
||||
#include "structured_list.h"
|
||||
#include "fulltext.h"
|
||||
|
||||
// For user visible text but still not translated
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "extradata.h"
|
||||
#include "pref.h"
|
||||
#include "sample.h"
|
||||
#include "structured_list.h"
|
||||
#include "subsurface-string.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#ifndef STRUCTURED_LIST_H
|
||||
#define STRUCTURED_LIST_H
|
||||
|
||||
/* Clear whole list; this works for taglist and dive computers */
|
||||
#define STRUCTURED_LIST_FREE(_type, _start, _free) \
|
||||
{ \
|
||||
_type *_ptr = _start; \
|
||||
while (_ptr) { \
|
||||
_type *_next = _ptr->next; \
|
||||
_free(_ptr); \
|
||||
_ptr = _next; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define STRUCTURED_LIST_COPY(_type, _first, _dest, _cpy) \
|
||||
{ \
|
||||
_type *_sptr = _first; \
|
||||
_type **_dptr = &_dest; \
|
||||
while (_sptr) { \
|
||||
*_dptr = (_type *)malloc(sizeof(_type)); \
|
||||
_cpy(_sptr, *_dptr); \
|
||||
_sptr = _sptr->next; \
|
||||
_dptr = &(*_dptr)->next; \
|
||||
} \
|
||||
*_dptr = 0; \
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,7 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
#include "tag.h"
|
||||
#include "structured_list.h"
|
||||
#include "subsurface-string.h"
|
||||
#include "membuffer.h"
|
||||
#include "gettext.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue