diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 03:21:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 03:21:11 +0400 |
commit | 5fe5a8c2838edc62585e0ed72da23fbeb08ae5e1 (patch) | |
tree | 88e9e8828a78f49624a47a6485c634f0e12a28db /source/blender/makesrna | |
parent | c0bd076bfd27fab3f2d468c85206b59d1c7ab29e (diff) |
style cleanup: function definitions
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 6 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_controller.c | 3 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 6 |
3 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 0a07887f196..70f6afd664d 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -701,7 +701,8 @@ FunctionRNA *RNA_struct_find_function(PointerRNA *ptr, const char *identifier) #endif } -const struct ListBase *RNA_struct_type_functions(StructRNA *srna){ +const ListBase *RNA_struct_type_functions(StructRNA *srna) +{ return &srna->functions; } @@ -4851,7 +4852,8 @@ PropertyRNA *RNA_function_find_parameter(PointerRNA *UNUSED(ptr), FunctionRNA *f return BLI_findstring(&func->cont.properties, identifier, offsetof(PropertyRNA, identifier)); } -const struct ListBase *RNA_function_defined_parameters(FunctionRNA *func){ +const ListBase *RNA_function_defined_parameters(FunctionRNA *func) +{ return &func->cont.properties; } diff --git a/source/blender/makesrna/intern/rna_controller.c b/source/blender/makesrna/intern/rna_controller.c index 6936c5b4324..44c8a2b412b 100644 --- a/source/blender/makesrna/intern/rna_controller.c +++ b/source/blender/makesrna/intern/rna_controller.c @@ -51,7 +51,8 @@ EnumPropertyItem controller_type_items[] = { #include "BKE_sca.h" #include "DNA_actuator_types.h" -static struct StructRNA *rna_Controller_refine(struct PointerRNA *ptr){ +static StructRNA *rna_Controller_refine(struct PointerRNA *ptr) +{ bController *controller = (bController *)ptr->data; switch (controller->type) { diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index cecd890ef13..024265c3d18 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -196,7 +196,8 @@ void rna_Main_objects_remove(Main *bmain, ReportList *reports, struct Object *ob } } -struct Material *rna_Main_materials_new(Main *UNUSED(bmain), const char *name){ +Material *rna_Main_materials_new(Main *UNUSED(bmain), const char *name) +{ ID *id = (ID *)BKE_material_add(name); id_us_min(id); return (Material *)id; @@ -212,7 +213,8 @@ void rna_Main_materials_remove(Main *bmain, ReportList *reports, struct Material /* XXX python now has invalid pointer? */ } -struct bNodeTree *rna_Main_nodetree_new(Main *UNUSED(bmain), const char *name, int type){ +bNodeTree *rna_Main_nodetree_new(Main *UNUSED(bmain), const char *name, int type) +{ bNodeTree *tree = ntreeAddTree(name, type, NODE_GROUP); id_us_min(&tree->id); |