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:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-06-12 08:51:50 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-06-12 08:51:50 +0400
commit6cc45538efefe1062aa0bc0909903af3db5d338d (patch)
tree64cb07ec5761c70f06ac15c2d4633dd9602cbcb0 /source/blender/python/api2_2x/Text.h
parented6885d72891c63c39bb63a0eb936b454fef753c (diff)
* Small changes in many files:
- Trying to fix linking problems in OSX; - Making module .Get functions behave like the ones in Blender 2.25 - 2.27 (Guignot pointed the incompatibility); - Included more types to Blender.Types; - Found by luck and corrected two bugs that were making Blender crash; - Added/updated some simple functions.
Diffstat (limited to 'source/blender/python/api2_2x/Text.h')
-rw-r--r--source/blender/python/api2_2x/Text.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/python/api2_2x/Text.h b/source/blender/python/api2_2x/Text.h
index 80311f06a15..be3df043f31 100644
--- a/source/blender/python/api2_2x/Text.h
+++ b/source/blender/python/api2_2x/Text.h
@@ -51,7 +51,7 @@
#define EXPP_TEXT_MODE_FOLLOW TXT_FOLLOW
/*****************************************************************************/
-/* Python API function prototypes for the Text module. */
+/* Python API function prototypes for the Text module. */
/*****************************************************************************/
static PyObject *M_Text_New (PyObject *self, PyObject *args,
PyObject *keywords);
@@ -62,7 +62,7 @@ static PyObject *M_Text_unlink (PyObject *self, PyObject *args);
/*****************************************************************************/
/* The following string definitions are used for documentation strings. */
/* In Python these will be written to the console when doing a */
-/* Blender.Text.__doc__ */
+/* Blender.Text.__doc__ */
/*****************************************************************************/
static char M_Text_doc[] =
"The Blender Text module\n\n";
@@ -83,7 +83,7 @@ static char M_Text_unlink_doc[] =
"(text) - remove text object 'text' from the text window";
/*****************************************************************************/
-/* Python method structure definition for Blender.Text module: */
+/* Python method structure definition for Blender.Text module: */
/*****************************************************************************/
struct PyMethodDef M_Text_methods[] = {
{"New",(PyCFunction)M_Text_New, METH_VARARGS|METH_KEYWORDS,
@@ -96,15 +96,16 @@ struct PyMethodDef M_Text_methods[] = {
};
/*****************************************************************************/
-/* Python C_Text structure definition: */
+/* Python C_Text structure definition: */
/*****************************************************************************/
typedef struct {
PyObject_HEAD
Text *text;
+
} C_Text;
/*****************************************************************************/
-/* Python C_Text methods declarations: */
+/* Python C_Text methods declarations: */
/*****************************************************************************/
static PyObject *Text_getName(C_Text *self);
static PyObject *Text_getFilename(C_Text *self);
@@ -116,7 +117,7 @@ static PyObject *Text_set(C_Text *self, PyObject *args);
static PyObject *Text_asLines(C_Text *self, PyObject *args);
/*****************************************************************************/
-/* Python C_Text methods table: */
+/* Python C_Text methods table: */
/*****************************************************************************/
static PyMethodDef C_Text_methods[] = {
/* name, method, flags, doc */
@@ -140,7 +141,7 @@ static PyMethodDef C_Text_methods[] = {
};
/*****************************************************************************/
-/* Python Text_Type callback function prototypes: */
+/* Python Text_Type callback function prototypes: */
/*****************************************************************************/
static void TextDeAlloc (C_Text *self);
static int TextPrint (C_Text *self, FILE *fp, int flags);
@@ -150,7 +151,7 @@ static int TextCompare (C_Text *a, C_Text *b);
static PyObject *TextRepr (C_Text *self);
/*****************************************************************************/
-/* Python Text_Type structure definition: */
+/* Python Text_Type structure definition: */
/*****************************************************************************/
PyTypeObject Text_Type =
{