comparison th_datastruct.h @ 459:7fca448847a3

Oops, fix C++ guards in headers.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 17 Feb 2018 23:35:20 +0200
parents 85fa3d333556
children e4ce60239d16
comparison
equal deleted inserted replaced
458:694c85f4e354 459:7fca448847a3
8 #ifndef TH_DATASTRUCT_H 8 #ifndef TH_DATASTRUCT_H
9 #define TH_DATASTRUCT_H 9 #define TH_DATASTRUCT_H
10 10
11 #include "th_util.h" 11 #include "th_util.h"
12 12
13 13 #ifdef __cplusplus
14 #ifdef HAVE_CONFIG_H 14 extern "C" {
15 #include "config.h"
16 #endif 15 #endif
17 16
18 17
19 /* Doubly linked list handling 18 /* Doubly linked list handling
20 */ 19 */
21 typedef struct _th_llist_t 20 typedef struct _th_llist_t
22 { 21 {
23 void *data; // Pointer to data payload of this node
24 size_t num; // Number of nodes in the list, meaningful ONLY in the current root node of the list 22 size_t num; // Number of nodes in the list, meaningful ONLY in the current root node of the list
25 struct _th_llist_t *prev, *next; 23 struct _th_llist_t *prev, *next;
24 void *data; // Pointer to data payload of this node
26 } th_llist_t; 25 } th_llist_t;
27 26
28 27
29 th_llist_t * th_llist_new(void *data); 28 th_llist_t * th_llist_new(void *data);
30 void th_llist_free(th_llist_t *list); 29 void th_llist_free(th_llist_t *list);