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:
authorStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
commita509b8adc9b8952cdb395c69406e821f57a9a6c7 (patch)
tree7c0e3c7b81007acc6b3e268e59a6af5fcb4bd93f /source/blender/python/api2_2x/gen_utils.h
parentbd371ddb9ff947d4e598ad04af9402d89fa80d5e (diff)
Another round in the Great BPy Cleanup:
Run everything thru indent to cleanup spaces vs tabs. Clean up some of the comments by hand. BGL.c was not touched due to all that macro wackyness. There are no functional changes to the code. Pre-indent versions of source are tagged with tag bpy-cleanup-20040925 , just in case.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r--source/blender/python/api2_2x/gen_utils.h54
1 files changed, 28 insertions, 26 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h
index 8ef41114ffb..514542ada71 100644
--- a/source/blender/python/api2_2x/gen_utils.h
+++ b/source/blender/python/api2_2x/gen_utils.h
@@ -1,4 +1,5 @@
/*
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -34,7 +35,7 @@
#include <Python.h>
#include "compile.h"
-#include "eval.h" /* for PyEval_GetLocals */
+#include "eval.h" /* for PyEval_GetLocals */
#include <stdio.h>
#include <string.h>
@@ -50,24 +51,24 @@
#define Py_PI 3.14159265358979323846
-int StringEqual (const char * string1, const char * string2);
-char * GetIdName (ID *id);
-ID *GetIdFromList(ListBase *list, char *name);
+int StringEqual( const char *string1, const char *string2 );
+char *GetIdName( ID * id );
+ID *GetIdFromList( ListBase * list, char *name );
-PyObject *PythonReturnErrorObject (PyObject * type, char * error_msg);
-PyObject *PythonIncRef (PyObject *object);
+PyObject *PythonReturnErrorObject( PyObject * type, char *error_msg );
+PyObject *PythonIncRef( PyObject * object );
-char * event_to_name (short event);
+char *event_to_name( short event );
-float EXPP_ClampFloat (float value, float min, float max);
-int EXPP_ClampInt (int value, int min, int max);
+float EXPP_ClampFloat( float value, float min, float max );
+int EXPP_ClampInt( int value, int min, int max );
-PyObject *EXPP_incr_ret (PyObject *object);
-PyObject *EXPP_ReturnPyObjError (PyObject * type, char * error_msg);
-int EXPP_ReturnIntError (PyObject *type, char *error_msg);
+PyObject *EXPP_incr_ret( PyObject * object );
+PyObject *EXPP_ReturnPyObjError( PyObject * type, char *error_msg );
+int EXPP_ReturnIntError( PyObject * type, char *error_msg );
-int EXPP_check_sequence_consistency (PyObject *seq, PyTypeObject *against);
-PyObject *EXPP_tuple_repr(PyObject *self, int size);
+int EXPP_check_sequence_consistency( PyObject * seq, PyTypeObject * against );
+PyObject *EXPP_tuple_repr( PyObject * self, int size );
/* mapping utilities - see Texture.c for an example of how to use these */
typedef struct {
@@ -76,18 +77,19 @@ typedef struct {
} EXPP_map_pair;
/* maps must end with a pair that has NULL as sval */
-int EXPP_map_getIntVal (const EXPP_map_pair *map,
- const char *sval, int *ival);
-int EXPP_map_case_getIntVal (const EXPP_map_pair *map,
- const char *sval, int *ival);
-int EXPP_map_getShortVal (const EXPP_map_pair *map,
- const char *sval, short *ival);
-int EXPP_map_getStrVal (const EXPP_map_pair *map,
- int ival, const char **sval);
+int EXPP_map_getIntVal( const EXPP_map_pair * map,
+ const char *sval, int *ival );
+int EXPP_map_case_getIntVal( const EXPP_map_pair * map,
+ const char *sval, int *ival );
+int EXPP_map_getShortVal( const EXPP_map_pair * map,
+ const char *sval, short *ival );
+int EXPP_map_getStrVal( const EXPP_map_pair * map,
+ int ival, const char **sval );
/* scriplinks-related: */
-PyObject *EXPP_getScriptLinks (ScriptLink *slink, PyObject *args, int is_scene);
-int EXPP_clearScriptLinks (ScriptLink *slink);
-int EXPP_addScriptLink (ScriptLink *slink, PyObject *args, int is_scene);
+PyObject *EXPP_getScriptLinks( ScriptLink * slink, PyObject * args,
+ int is_scene );
+int EXPP_clearScriptLinks( ScriptLink * slink );
+int EXPP_addScriptLink( ScriptLink * slink, PyObject * args, int is_scene );
-#endif /* EXPP_gen_utils_h */
+#endif /* EXPP_gen_utils_h */