Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-12 09:03:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-12 09:09:57 +0300
commitd968db82b7aac37cd788a490997376004b5ce9eb (patch)
tree77724503d5638cbcc226e6a94b16a6ff8fe0275a /source/blender/makesdna/intern/dna_utils.h
parentf96bfde4a5ef3c3c0b2878dec3828a967fda86cc (diff)
makesdna: add shared utility module
Currently only a single function was duplicated which isn't so bad, this change is to allow DNA versioning code to be shared between dna_genfile.c and makesdna.c.
Diffstat (limited to 'source/blender/makesdna/intern/dna_utils.h')
-rw-r--r--source/blender/makesdna/intern/dna_utils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/dna_utils.h b/source/blender/makesdna/intern/dna_utils.h
new file mode 100644
index 00000000000..69b265be27a
--- /dev/null
+++ b/source/blender/makesdna/intern/dna_utils.h
@@ -0,0 +1,25 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/** \file \ingroup DNA
+ */
+
+#ifndef __DNA_UTILS_H__
+#define __DNA_UTILS_H__
+
+int DNA_elem_array_size(const char *str);
+
+#endif /* __DNA_UTILS_H__ */