summaryrefslogtreecommitdiff
path: root/darray.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-17 21:38:37 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-17 21:38:37 +0000
commit02496faab558fa758adf3a24006201cf5ab557fb (patch)
treeb6249838b3a9d5044bedcb8f1978a55d0ed4181c /darray.h
parenta61ad1cef9ef77f9afd67230df5470b6b55525be (diff)
downloaddm-02496faab558fa758adf3a24006201cf5ab557fb.tar.gz
dm-02496faab558fa758adf3a24006201cf5ab557fb.zip
Fixed structure order in syntax.h to compile on NetBSD
Diffstat (limited to 'darray.h')
-rw-r--r--darray.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/darray.h b/darray.h
index 8d8f9e9..0ed64e2 100644
--- a/darray.h
+++ b/darray.h
@@ -8,16 +8,18 @@
#include <string.h>
#include <sys/types.h>
-//#include "debug.h"
-//#include "mmm.h"
+/*
+#include "debug.h"
+#include "mmm.h"
+*/
#define DEFAULT_EXPAND_RATE 10
typedef struct darray {
- int end; //element amount. end <= max
- int max; //maximal element number
- size_t size; //single element size
- size_t expand; //expand size
+ int end; /*element amount. end <= max */
+ int max; /*maximal element number */
+ size_t size; /*single element size */
+ size_t expand; /*expand size */
void **data;
} darray;