code cleanup: some structs were declaring data when only typedef's were intended...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 7 Aug 2013 03:44:05 +0000 (03:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 7 Aug 2013 03:44:05 +0000 (03:44 +0000)
intern/mikktspace/mikktspace.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/interface/interface_ops.c
source/blender/editors/sculpt_paint/paint_utils.c
source/blender/editors/space_file/space_file.c
source/blender/editors/space_nla/nla_buttons.c
source/blender/editors/transform/transform.c
source/blender/python/bmesh/bmesh_py_ops.c
source/blender/python/bmesh/bmesh_py_types_meshdata.c
source/blender/python/intern/bpy_rna.c

index a6597986c0a6b5e3a1cc07e5afb90a8fbb546225..018869f36b6caccd6cc36d3c6d5a6584f3bcd95d 100644 (file)
@@ -426,7 +426,7 @@ typedef struct {
        int index;
 } STmpVert;
 
-const int g_iCells = 2048;
+static const int g_iCells = 2048;
 
 #ifdef _MSC_VER
        #define NOINLINE __declspec(noinline)
index 80a09b4701cfc941f8f9d1097367f22a8f8d9246..b1c89846e90e1d2f846f9b908b6462ed8b0b8cac 100644 (file)
@@ -7278,7 +7278,7 @@ static void link_global(FileData *fd, BlendFileData *bfd)
        }
 }
 
-void convert_tface_mt(FileData *fd, Main *main)
+static void convert_tface_mt(FileData *fd, Main *main)
 {
        Main *gmain;
        
index 5910909142c48673e01b27831ab514f3150dc355..cfe6e313c580a9ee2b48692d35de3671b2cc5b64 100644 (file)
@@ -704,12 +704,12 @@ static void UI_OT_reports_to_textblock(wmOperatorType *ot)
 /* EditSource Utility funcs and operator,
  * note, this includes utility functions and button matching checks */
 
-struct uiEditSourceStore {
+typedef struct uiEditSourceStore {
        uiBut but_orig;
        GHash *hash;
 } uiEditSourceStore;
 
-struct uiEditSourceButStore {
+typedef struct uiEditSourceButStore {
        char py_dbg_fn[FILE_MAX];
        int py_dbg_ln;
 } uiEditSourceButStore;
index 3ecde56b5d0956b80ee43fc5c597e59b1dda9226..d376bd3180fa27411a28562c89e913d837b33c62 100644 (file)
@@ -412,7 +412,7 @@ void BRUSH_OT_curve_preset(wmOperatorType *ot)
 /* face-select ops */
 static int paint_select_linked_exec(bContext *C, wmOperator *UNUSED(op))
 {
-       paintface_select_linked(C, CTX_data_active_object(C), NULL, 2);
+       paintface_select_linked(C, CTX_data_active_object(C), NULL, true);
        ED_region_tag_redraw(CTX_wm_region(C));
        return OPERATOR_FINISHED;
 }
index 8b1df0f0d8f90864189b87ce94817d27f4c52f75..6f3d0367574d8d3a4f9a0d967f0b1927755b2fca 100644 (file)
@@ -500,12 +500,14 @@ static void file_channel_area_draw(const bContext *C, ARegion *ar)
        ED_region_panels(C, ar, 1, NULL, -1);
 }
 
-static void file_channel_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *UNUSED(ar), wmNotifier *wmn)
+static void file_channel_area_listener(bScreen *UNUSED(sc), ScrArea *UNUSED(sa), ARegion *UNUSED(ar), wmNotifier *UNUSED(wmn))
 {
+#if 0
        /* context changes */
        switch (wmn->category) {
                
        }
+#endif
 }
 
 /* add handlers, stuff you only do once or on area/region changes */
index d3bef34670509cdf9c0342040e6a03da4ef42af6..ce7d537a5181ef34316af41a4af5b791eb0d8d9f 100644 (file)
 
 /* -------------- */
 
-static void do_nla_region_buttons(bContext *C, void *UNUSED(arg), int event)
+static void do_nla_region_buttons(bContext *C, void *UNUSED(arg), int UNUSED(event))
 {
        //Scene *scene = CTX_data_scene(C);
-       
+#if 0
        switch (event) {
 
        }
-       
+#endif
        /* default for now */
        WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL);
        WM_event_add_notifier(C, NC_SCENE | ND_TRANSFORM, NULL);
index f67fab3429afb8d30de558d91cb584292e469083..ed466186d6323b5b6408a33f91a48f0f06dd1d07 100644 (file)
@@ -5706,7 +5706,7 @@ int handleEventEdgeSlide(struct TransInfo *t, const struct wmEvent *event)
        return 0;
 }
 
-void drawEdgeSlide(const struct bContext *C, TransInfo *t)
+static void drawEdgeSlide(const struct bContext *C, TransInfo *t)
 {
        if (t->mode == TFM_EDGE_SLIDE) {
                EdgeSlideData *sld = (EdgeSlideData *)t->customData;
index 8826baf81b72c48e6124fce5a45fa9e65e0590aa..4fc0160bbd649603abca6176414a0d32844aff00 100644 (file)
@@ -50,7 +50,7 @@
 
 /* bmesh operator 'bmesh.ops.*' callable types
  * ******************************************* */
-PyTypeObject bmesh_op_Type;
+static PyTypeObject bmesh_op_Type;
 
 static PyObject *bpy_bmesh_op_CreatePyObject(const char *opname)
 {
@@ -140,7 +140,7 @@ static PyGetSetDef bpy_bmesh_op_getseters[] = {
 /* Types
  * ===== */
 
-PyTypeObject bmesh_op_Type = {
+static PyTypeObject bmesh_op_Type = {
        PyVarObject_HEAD_INIT(NULL, 0)
        "BMeshOpFunc",              /* tp_name */
        sizeof(BPy_BMeshOpFunc),    /* tp_basicsize */
index b8572baa7f90bf7e4dd0411622d80260f4ae9532..06b11f02b2ab322dfc8da721205ee80cf47bf3a3 100644 (file)
@@ -310,7 +310,7 @@ static int mathutils_bmloopcol_set_index(BaseMathObject *bmo, int subtype, int i
        return mathutils_bmloopcol_set(bmo, subtype);
 }
 
-Mathutils_Callback mathutils_bmloopcol_cb = {
+static Mathutils_Callback mathutils_bmloopcol_cb = {
        mathutils_bmloopcol_check,
        mathutils_bmloopcol_get,
        mathutils_bmloopcol_set,
index 9f7c589630a5d982e93e8eefe3fa80c70f0177f6..3cd030e9b0821e6036c5f26f5ae2257f012ce3f7 100644 (file)
@@ -5948,7 +5948,7 @@ PyTypeObject pyrna_func_Type = {
 static void pyrna_prop_collection_iter_dealloc(BPy_PropertyCollectionIterRNA *self);
 static PyObject *pyrna_prop_collection_iter_next(BPy_PropertyCollectionIterRNA *self);
 
-PyTypeObject pyrna_prop_collection_iter_Type = {
+static PyTypeObject pyrna_prop_collection_iter_Type = {
        PyVarObject_HEAD_INIT(NULL, 0)
        "bpy_prop_collection_iter", /* tp_name */
        sizeof(BPy_PropertyCollectionIterRNA), /* tp_basicsize */