From 82216030e97561ddd5d5184be8077423d6cc6c2b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 18 Jun 2011 08:45:45 +0000 Subject: py-api: store frequently used strings as unicode PyObject's to avoid creating/distroying every time. also fix for cmake warning --- source/blender/python/intern/bpy_intern_string.h | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 source/blender/python/intern/bpy_intern_string.h (limited to 'source/blender/python/intern/bpy_intern_string.h') diff --git a/source/blender/python/intern/bpy_intern_string.h b/source/blender/python/intern/bpy_intern_string.h new file mode 100644 index 00000000000..a974ccfb898 --- /dev/null +++ b/source/blender/python/intern/bpy_intern_string.h @@ -0,0 +1,37 @@ +/* + * $Id: + * + * ***** BEGIN GPL LICENSE BLOCK ***** + * + * 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. + * + * Contributor(s): Campbell Barton + * + * ***** END GPL LICENSE BLOCK ***** + */ + +/** \file blender/python/intern/bpy_intern_string.h + * \ingroup pythonintern + */ + +void bpy_intern_string_init(void); +void bpy_intern_string_exit(void); + +extern PyObject *bpy_intern_str_register; +extern PyObject *bpy_intern_str_unregister; +extern PyObject *bpy_intern_str_bl_rna; +extern PyObject *bpy_intern_str_order; +extern PyObject *bpy_intern_str_attr; +extern PyObject *bpy_intern_str___slots__; -- cgit v1.2.3