commit ef9c75a0d02a24f5e1962f0a11fe834906cebef5
parent b5468b0a5a271f1e63ca19a4fe47dadaf60913ff
Author: vaplv <vaplv@free.fr>
Date: Thu, 11 Dec 2014 09:18:16 +0100
Add the string dynamic array
Diffstat:
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -63,6 +63,7 @@ set(RSYS_FILES_INC
dynamic_array_u32.h
dynamic_array_u64.h
dynamic_array_size_t.h
+ dynamic_array_str.h
floatX.h
float2.h
float3.h
diff --git a/src/dynamic_array_str.h b/src/dynamic_array_str.h
@@ -0,0 +1,31 @@
+/* Copyright (C) 2013-2014 Vincent Forest (vaplv@free.fr)
+ *
+ * The RSys library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * The RSys library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with the RSys library. If not, see <http://www.gnu.org/licenses/>. */
+
+#ifndef DYNAMIC_ARRAY_STR_H
+#define DYNAMIC_ARRAY_STR_H
+
+#include "dynamic_array.h"
+#include "str.h"
+
+#define DARRAY_NAME str
+#define DARRAY_DATA struct str
+#define DARRAY_FUNCTOR_INIT str_init
+#define DARRAY_FUNCTOR_COPY str_copy
+#define DARRAY_FUNCTOR_RELEASE str_release
+#define DARRAY_FUNCTOR_COPY_AND_RELEASE str_copy_and_release
+#include "dynamic_array.h"
+
+#endif /* DYNAMIC_ARRAY_STR_H */
+