forked from bartvdbraak/blender
code cleanup: some structs were declaring data when only typedef's were intended, make local vars and functions static.
This commit is contained in:
parent
f97a4bd254
commit
4f29aeeff2
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 */
|
||||
|
@ -68,14 +68,14 @@
|
||||
|
||||
/* -------------- */
|
||||
|
||||
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);
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
@ -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,
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user