synched with trunk at revision 36569
[blender.git] / source / blender / blenkernel / intern / sca.c
index 202a236..ee410e7 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * $Id$
  *
  * ***** BEGIN GPL LICENSE BLOCK *****
  * all data is 'direct data', not Blender lib data.
  */
 
+/** \file blender/blenkernel/intern/sca.c
+ *  \ingroup bke
+ */
+
+
 #include <stdio.h>
 #include <string.h>
 #include <float.h>
@@ -86,7 +91,7 @@ void copy_sensors(ListBase *lbn, ListBase *lbo)
 {
        bSensor *sens, *sensn;
        
-       lbn->first= lbn->last= 0;
+       lbn->first= lbn->last= NULL;
        sens= lbo->first;
        while(sens) {
                sensn= copy_sensor(sens);
@@ -253,7 +258,7 @@ void copy_controllers(ListBase *lbn, ListBase *lbo)
 {
        bController *cont, *contn;
        
-       lbn->first= lbn->last= 0;
+       lbn->first= lbn->last= NULL;
        cont= lbo->first;
        while(cont) {
                contn= copy_controller(cont);
@@ -267,7 +272,7 @@ void init_controller(bController *cont)
        /* also use when controller changes type, leave actuators... */
        
        if(cont->data) MEM_freeN(cont->data);
-       cont->data= 0;
+       cont->data= NULL;
        
        switch(cont->type) {
        case CONT_EXPRESSION:
@@ -328,12 +333,12 @@ void free_actuator(bActuator *act)
 
        if(act->data) {
                switch (act->type) {
-                       case ACT_SOUND:
-                               sa = (bSoundActuator *) act->data;
-                               if(sa->sound)
-                                       id_us_min((ID *) sa->sound);
-                               break;
-               }
+               case ACT_SOUND:
+                       sa = (bSoundActuator *) act->data;
+                       if(sa->sound)
+                               id_us_min((ID *) sa->sound);
+                       break;
+               }
 
                MEM_freeN(act->data);
        }
@@ -375,7 +380,7 @@ void copy_actuators(ListBase *lbn, ListBase *lbo)
 {
        bActuator *act, *actn;
        
-       lbn->first= lbn->last= 0;
+       lbn->first= lbn->last= NULL;
        act= lbo->first;
        while(act) {
                actn= copy_actuator(act);
@@ -394,7 +399,7 @@ void init_actuator(bActuator *act)
        bSteeringActuator *sta;
        
        if(act->data) MEM_freeN(act->data);
-       act->data= 0;
+       act->data= NULL;
        
        switch(act->type) {
        case ACT_ACTION:
@@ -523,7 +528,7 @@ void clear_sca_new_poins_ob(Object *ob)
        }
 }
 
-void clear_sca_new_poins()
+void clear_sca_new_poins(void)
 {
        Object *ob;
        
@@ -611,7 +616,7 @@ void set_sca_new_poins_ob(Object *ob)
 }
 
 
-void set_sca_new_poins()
+void set_sca_new_poins(void)
 {
        Object *ob;