style cleanup
authorCampbell Barton <ideasman42@gmail.com>
Sun, 27 May 2012 19:40:36 +0000 (19:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 27 May 2012 19:40:36 +0000 (19:40 +0000)
55 files changed:
intern/ghost/test/multitest/MultiTest.c
release/plugins/sequence/gamma.c
source/blender/blenfont/intern/blf.c
source/blender/blenkernel/intern/anim_sys.c
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/bullet.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/context.c
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/editderivedmesh.c
source/blender/blenkernel/intern/fmodifier.c
source/blender/blenkernel/intern/group.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/lattice.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/material.c
source/blender/blenkernel/intern/mball.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/multires.c
source/blender/blenkernel/intern/particle.c
source/blender/blenkernel/intern/scene.c
source/blender/blenkernel/intern/seqeffects.c
source/blender/blenkernel/intern/sequencer.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/blenkernel/intern/text.c
source/blender/blenlib/intern/threads.c
source/blender/blenloader/intern/runtime.c
source/blender/bmesh/intern/bmesh_core.c
source/blender/editors/animation/anim_channels_defines.c
source/blender/editors/animation/anim_channels_edit.c
source/blender/editors/animation/drivers.c
source/blender/editors/armature/poselib.c
source/blender/editors/armature/poseobject.c
source/blender/editors/curve/editcurve.c
source/blender/editors/datafiles/Bfont.c
source/blender/editors/interface/interface_panel.c
source/blender/editors/interface/interface_regions.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/interface/interface_widgets.c
source/blender/editors/interface/resources.c
source/blender/editors/interface/view2d.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/imbuf/intern/jp2.c
source/blender/imbuf/intern/targa.c
source/blender/makesdna/intern/dna_genfile.c
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_access.c
source/blender/nodes/intern/node_common.c
source/blender/windowmanager/intern/wm_cursors.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_gesture.c
source/blender/windowmanager/intern/wm_operators.c
source/blender/windowmanager/intern/wm_subwindow.c
source/blender/windowmanager/intern/wm_window.c

index b6fe785cba7823c3d27da364740af17f15f3dcc2..da1c56d0a3ab2809b4d465306e63c4249f4a54ce 100644 (file)
@@ -656,7 +656,8 @@ typedef struct {
        int size[2];
 } ExtraWindow;
 
-static void extrawindow_do_draw(ExtraWindow *ew) {
+static void extrawindow_do_draw(ExtraWindow *ew)
+{
        GHOST_ActivateWindowDrawingContext(ew->win);
 
        glClearColor(1, 1, 1, 1);
@@ -668,7 +669,8 @@ static void extrawindow_do_draw(ExtraWindow *ew) {
        GHOST_SwapWindowBuffers(ew->win);
 }
 
-static void extrawindow_do_reshape(ExtraWindow *ew) {
+static void extrawindow_do_reshape(ExtraWindow *ew)
+{
        GHOST_RectangleHandle bounds = GHOST_GetClientBounds(ew->win);
 
        GHOST_ActivateWindowDrawingContext(ew->win);
@@ -687,7 +689,8 @@ static void extrawindow_do_reshape(ExtraWindow *ew) {
        glLoadIdentity();
 }
 
-static void extrawindow_do_key(ExtraWindow *ew, GHOST_TKey key, int press) {
+static void extrawindow_do_key(ExtraWindow *ew, GHOST_TKey key, int press)
+{
        switch (key) {
                case GHOST_kKeyE:
                        if (press)
@@ -696,7 +699,8 @@ static void extrawindow_do_key(ExtraWindow *ew, GHOST_TKey key, int press) {
        }
 }
 
-static void extrawindow_spin_cursor(ExtraWindow *ew, GHOST_TUns64 time) {
+static void extrawindow_spin_cursor(ExtraWindow *ew, GHOST_TUns64 time)
+{
        GHOST_TUns8 bitmap[16][2];
        GHOST_TUns8 mask[16][2];
        double ftime = (double) ((GHOST_TInt64) time) / 1000;
@@ -728,7 +732,8 @@ static void extrawindow_spin_cursor(ExtraWindow *ew, GHOST_TUns64 time) {
        GHOST_SetCustomCursorShape(ew->win, bitmap, mask, 0, 0);
 }
 
-static void extrawindow_handle(void *priv, GHOST_EventHandle evt) {
+static void extrawindow_handle(void *priv, GHOST_EventHandle evt)
+{
        ExtraWindow *ew = priv;
        GHOST_TEventType type = GHOST_GetEventType(evt);
        char buf[256];
@@ -785,7 +790,8 @@ ExtraWindow *extrawindow_new(MultiTestApp *app) {
        }
 }
 
-void extrawindow_free(ExtraWindow *ew) {
+void extrawindow_free(ExtraWindow *ew)
+{
        GHOST_SystemHandle sys = multitestapp_get_system(ew->app);
 
        windowdata_free(GHOST_GetWindowUserData(ew->win));
@@ -806,7 +812,8 @@ struct _MultiTestApp {
        int exit;
 };
 
-static int multitest_event_handler(GHOST_EventHandle evt, GHOST_TUserDataPtr data) {
+static int multitest_event_handler(GHOST_EventHandle evt, GHOST_TUserDataPtr data)
+{
        MultiTestApp *app = data;
        GHOST_WindowHandle win;
        
@@ -876,12 +883,14 @@ GHOST_SystemHandle multitestapp_get_system(MultiTestApp *app) {
        return app->sys;
 }
 
-void multitestapp_free_extrawindow(MultiTestApp *app) {
+void multitestapp_free_extrawindow(MultiTestApp *app)
+{
        extrawindow_free(app->extra);
        app->extra = NULL;
 }
 
-void multitestapp_toggle_extra_window(MultiTestApp *app) {
+void multitestapp_toggle_extra_window(MultiTestApp *app)
+{
        if (app->extra) {
                multitestapp_free_extrawindow(app);
        }
index d6181eb0e9def0dfd8935239d7c96ac675309911..db04902413d3c90ce85e528e6d2c9d7d4295aa18 100644 (file)
@@ -176,8 +176,8 @@ void plugin_seq_doit(Cast *cast, float facf0, float facf1, int width,
                                        o[l]=CLAMP(i[l],0.f,1.f);
                                o[3]=1.0;
                        }
-                       i+=4;
-                       o+=4;
+                       i += 4;
+                       o += 4;
                }
        }
 }
index 626c591c40f4fb54967207a31a0ac64264e6c704..70794a11ff2e14334b857111f155db4f35b37662 100644 (file)
@@ -154,7 +154,7 @@ int BLF_load(const char *name)
        /* check if we already load this font. */
        i = blf_search(name);
        if (i >= 0) {
-               /*font= global_font[i];*/ /*UNUSED*/
+               /*font = global_font[i];*/ /*UNUSED*/
                return i;
        }
 
@@ -237,7 +237,7 @@ int BLF_load_mem(const char *name, unsigned char *mem, int mem_size)
 
        i = blf_search(name);
        if (i >= 0) {
-               /*font= global_font[i];*/ /*UNUSED*/
+               /*font = global_font[i];*/ /*UNUSED*/
                return i;
        }
 
index b66a90ab911ecadcf01486858b0bda46141e7999..805db8f5171b8790807cea30c86b58d641fb78de 100644 (file)
@@ -1577,7 +1577,7 @@ static NlaEvalChannel *nlaevalchan_verify(PointerRNA *ptr, ListBase *channels, N
        PropertyRNA *prop;
        PointerRNA new_ptr;
        char *path = NULL;
-       /* short free_path=0; */
+       /* short free_path = 0; */
        
        /* sanity checks */
        if (channels == NULL)
@@ -1585,7 +1585,7 @@ static NlaEvalChannel *nlaevalchan_verify(PointerRNA *ptr, ListBase *channels, N
        
        /* get RNA pointer+property info from F-Curve for more convenient handling */
        /* get path, remapped as appropriate to work in its new environment */
-       /* free_path= */ /* UNUSED */ animsys_remap_path(strip->remap, fcu->rna_path, &path);
+       /* free_path = */ /* UNUSED */ animsys_remap_path(strip->remap, fcu->rna_path, &path);
        
        /* a valid property must be available, and it must be animatable */
        if (RNA_path_resolve(ptr, path, &new_ptr, &prop) == 0) {
index e6333ed74aae41c7c669a57612a2f3defd8f6af6..0def299c24ae61f00b035063deae1cb155f82ec2 100644 (file)
@@ -518,7 +518,7 @@ void BKE_write_undo(bContext *C, const char *name)
        if ( (U.uiflag & USER_GLOBALUNDO) == 0) return;
        if (U.undosteps == 0) return;
        
-       /* remove all undos after (also when curundo==NULL) */
+       /* remove all undos after (also when curundo == NULL) */
        while (undobase.last != curundo) {
                uel = undobase.last;
                BLI_remlink(&undobase, uel);
@@ -564,7 +564,7 @@ void BKE_write_undo(bContext *C, const char *name)
                BLI_snprintf(numstr, sizeof(numstr), "%d.blend", counter);
                BLI_make_file_string("/", filepath, BLI_temporary_dir(), numstr);
        
-               /* success= */ /* UNUSED */ BLO_write_file(CTX_data_main(C), filepath, fileflags, NULL, NULL);
+               /* success = */ /* UNUSED */ BLO_write_file(CTX_data_main(C), filepath, fileflags, NULL, NULL);
                
                BLI_strncpy(curundo->str, filepath, sizeof(curundo->str));
        }
@@ -574,7 +574,7 @@ void BKE_write_undo(bContext *C, const char *name)
                if (curundo->prev) prevfile = &(curundo->prev->memfile);
                
                memused = MEM_get_memory_in_use();
-               /* success= */ /* UNUSED */ BLO_write_file_mem(CTX_data_main(C), prevfile, &curundo->memfile, G.fileflags);
+               /* success = */ /* UNUSED */ BLO_write_file_mem(CTX_data_main(C), prevfile, &curundo->memfile, G.fileflags);
                curundo->undosize = MEM_get_memory_in_use() - memused;
        }
 
index 9fcb4389c6208b9a5731e968dd2c5d23f50bbdf8..7defa7e1be3019ec495a9b4533545a77c78a0213 100644 (file)
@@ -45,7 +45,7 @@ BulletSoftBody *bsbNew(void)
 {
        BulletSoftBody *bsb;
        
-       bsb= MEM_callocN(sizeof(BulletSoftBody), "bulletsoftbody");
+       bsb = MEM_callocN(sizeof(BulletSoftBody), "bulletsoftbody");
                
        bsb->flag = OB_BSB_BENDING_CONSTRAINTS | OB_BSB_SHAPE_MATCHING | OB_BSB_AERO_VPOINT;
        bsb->linStiff = 0.5f;
index f6eee44b92c43da7548051d84a4881611a042d62..4e6a4b4a43cc044dcf3fc154f312066ed3f247f1 100644 (file)
@@ -927,7 +927,7 @@ static void cdDM_drawMappedFaces(DerivedMesh *dm,
                                        //int actualFace = dm->drawObject->triangle_to_mface[i];
                                        int actualFace = next_actualFace;
                                        MFace *mface = mf + actualFace;
-                                       /*int drawSmooth= (flag & DM_DRAW_ALWAYS_SMOOTH) ? 1 : (mface->flag & ME_SMOOTH);*/ /* UNUSED */
+                                       /*int drawSmooth = (flag & DM_DRAW_ALWAYS_SMOOTH) ? 1 : (mface->flag & ME_SMOOTH);*/ /* UNUSED */
                                        DMDrawOption draw_option = DM_DRAW_OPTION_NORMAL;
                                        int flush = 0;
 
@@ -1208,7 +1208,7 @@ static void cdDM_drawMappedFacesGLSL(DerivedMesh *dm,
                                                else {
                                                        /* if the buffer was set, don't use it again.
                                                         * prevdraw was assumed true but didnt run so set to false - [#21036] */
-                                                       /* prevdraw= 0; */ /* UNUSED */
+                                                       /* prevdraw = 0; */ /* UNUSED */
                                                        buffer = NULL;
                                                }
                                        }
index 4cdb4e1b66e40caa26f86da08f51a2824415855f..3c8f29d84409719e9363953d35a34da01a28a0d2 100644 (file)
@@ -267,7 +267,7 @@ static int ctx_data_get(bContext *C, const char *member, bContextDataResult *res
         * loops requesting data from ourselfs in a context callback */
 
        /* Ok, this looks evil...
-        * if (ret) done= -(-ret | -done);
+        * if (ret) done = -(-ret | -done);
         *
         * Values in order of importance
         * (0, -1, 1) - Where 1 is highest priority
index 2b08c08541708fc06638c46eb42303312cd02145..a6ce5daf24749e795591de3b3d888433e11155b2 100644 (file)
@@ -2938,7 +2938,7 @@ void DAG_pose_sort(Object *ob)
        queue_delete(nqueue);
        
 //     printf("\nordered\n");
-//     for (pchan = pose->chanbase.first; pchan; pchan= pchan->next) {
+//     for (pchan = pose->chanbase.first; pchan; pchan = pchan->next) {
 //             printf(" %s\n", pchan->name);
 //     }
        
index e0c3b257273dfb670a54125f93e662a6f89354ff..335758fec111227f72518c198bcedddad53d9794 100644 (file)
@@ -594,7 +594,7 @@ static void emDM_drawMappedFaces(DerivedMesh *dm,
                float (*vertexCos)[3] = bmdm->vertexCos;
                float (*vertexNos)[3] = bmdm->vertexNos;
                float (*polyNos)[3]   = bmdm->polyNos;
-               // int *triPolyMap= bmdm->triPolyMap;
+               // int *triPolyMap = bmdm->triPolyMap;
 
                BM_mesh_elem_index_ensure(bmdm->tc->bm, BM_VERT | BM_FACE);
 
@@ -802,7 +802,7 @@ static void emDM_drawFacesTex_common(DerivedMesh *dm,
                        BMLoop **ls = em->looptris[i];
                        MTexPoly *tp = has_uv ? CustomData_bmesh_get(&bm->pdata, ls[0]->f->head.data, CD_MTEXPOLY) : NULL;
                        MTFace mtf = {{{0}}};
-                       /*unsigned char *cp= NULL;*/ /*UNUSED*/
+                       /*unsigned char *cp = NULL;*/ /*UNUSED*/
                        int drawSmooth = BM_elem_flag_test(ls[0]->f, BM_ELEM_SMOOTH);
                        DMDrawOption draw_option;
 
@@ -874,7 +874,7 @@ static void emDM_drawFacesTex_common(DerivedMesh *dm,
                        BMLoop **ls = em->looptris[i];
                        MTexPoly *tp = has_uv ? CustomData_bmesh_get(&bm->pdata, ls[0]->f->head.data, CD_MTEXPOLY) : NULL;
                        MTFace mtf = {{{0}}};
-                       /*unsigned char *cp= NULL;*/ /*UNUSED*/
+                       /*unsigned char *cp = NULL;*/ /*UNUSED*/
                        int drawSmooth = BM_elem_flag_test(ls[0]->f, BM_ELEM_SMOOTH);
                        DMDrawOption draw_option;
 
index 59c8a529d8557e0603c7fd922672a60fa8f12c88..b7ede15d00bbaac27fcbf03f007918374405bc3b 100644 (file)
@@ -613,7 +613,7 @@ static float fcm_cycles_time(FCurve *fcu, FModifier *fcm, float UNUSED(cvalue),
                
                /* check that cyclic is still enabled for the specified time */
                if (cycles == 0) {
-                       /* catch this case so that we don't exit when we have cycles=0
+                       /* catch this case so that we don't exit when we have (cycles = 0)
                         * as this indicates infinite cycles...
                         */
                }
@@ -810,7 +810,7 @@ static void fcm_python_copy(FModifier *fcm, FModifier *src)
 static void fcm_python_evaluate(FCurve *UNUSED(fcu), FModifier *UNUSED(fcm), float *UNUSED(cvalue), float UNUSED(evaltime))
 {
 #ifdef WITH_PYTHON
-       //FMod_Python *data= (FMod_Python *)fcm->data;
+       //FMod_Python *data = (FMod_Python *)fcm->data;
        
        /* FIXME... need to implement this modifier...
         *      It will need it execute a script using the custom properties 
index 8f077ab107c800b69016b4f027060952b876cc5f..0725b1732d303da55a62d52e63944cb687b4b1aa 100644 (file)
@@ -196,7 +196,7 @@ int add_to_group(Group *group, Object *object, Scene *scene, Base *base)
        }
 }
 
-/* also used for ob==NULL */
+/* also used for (ob == NULL) */
 static int rem_from_group_internal(Group *group, Object *ob)
 {
        GroupObject *go, *gon;
index 80b192c7a42b9d1e6753d34b5e7147ecf43a607b..a2b1fb105006c7fdae7055d5952195bc3cd9db32 100644 (file)
@@ -290,7 +290,7 @@ static void image_assign_ibuf(Image *ima, ImBuf *ibuf, int index, int frame)
                else
                        ibuf->flags &= ~IB_cm_predivide;
 
-               /* this function accepts link==NULL */
+               /* this function accepts (link == NULL) */
                BLI_insertlinkbefore(&ima->ibufs, link, ibuf);
 
                /* now we don't want copies? */
@@ -802,7 +802,7 @@ void BKE_image_free_all_textures(void)
 {
        Tex *tex;
        Image *ima;
-       /* unsigned int totsize= 0; */
+       /* unsigned int totsize = 0; */
        
        for (ima = G.main->image.first; ima; ima = ima->id.next)
                ima->id.flag &= ~LIB_DOIT;
index 15db290ff14887313cd13487999495a026ee841c..e3495a158718bc785e4c2c629b6a90063141e128 100644 (file)
@@ -305,7 +305,7 @@ void init_latt_deform(Object *oblatt, Object *ob)
        
        fp = lt->latticedata = MEM_mallocN(sizeof(float) * 3 * lt->pntsu * lt->pntsv * lt->pntsw, "latticedata");
        
-       /* for example with a particle system: ob==0 */
+       /* for example with a particle system: (ob == NULL) */
        if (ob == NULL) {
                /* in deformspace, calc matrix  */
                invert_m4_m4(lt->latmat, oblatt->obmat);
index 26516b62aa31dd6622aca436569789834a1a9037..de67119d85024339ceefefa4d3bd5f90770bf6f0 100644 (file)
@@ -645,7 +645,7 @@ static ID *alloc_libblock_notest(short type)
                        id = MEM_callocN(sizeof(Text), "text");
                        break;
                case ID_SCRIPT:
-                       //XXX id= MEM_callocN(sizeof(Script), "script");
+                       //XXX id = MEM_callocN(sizeof(Script), "script");
                        break;
                case ID_SPK:
                        id = MEM_callocN(sizeof(Speaker), "speaker");
@@ -1032,7 +1032,7 @@ static void IDnames_to_dyn_pupstring(DynStr *pupds, ListBase *lb, ID *link, shor
 
 
 /* used by headerbuttons.c buttons.c editobject.c editseq.c */
-/* if nr==NULL no MAX_IDPUP, this for non-header browsing */
+/* if (nr == NULL) no MAX_IDPUP, this for non-header browsing */
 void IDnames_to_pupstring(const char **str, const char *title, const char *extraops, ListBase *lb, ID *link, short *nr)
 {
        DynStr *pupds = BLI_dynstr_new();
index 0eeb16be6993a2f5bdd35d6b9b423e2ab8b2964a..55ae7e4d11aa4a2e4c5ce109a70a87f39de39c03 100644 (file)
@@ -607,7 +607,7 @@ Material *give_current_material(Object *ob, short act)
        
        if (ob == NULL) return NULL;
        
-       /* if object cannot have material, totcolp==NULL */
+       /* if object cannot have material, (totcolp == NULL) */
        totcolp = give_totcolp(ob);
        if (totcolp == NULL || ob->totcol == 0) return NULL;
        
@@ -1179,7 +1179,7 @@ int object_remove_material_slot(Object *ob)
 }
 
 
-/* r_col = current value, col = new value, fac==0 is no change */
+/* r_col = current value, col = new value, (fac == 0) is no change */
 void ramp_blend(int type, float r_col[3], const float fac, const float col[3])
 {
        float tmp, facm = 1.0f - fac;
index bef5f2e18a369253bbdf5136a0b0f3ae2e806ca7..b5b03a8924f9d4b9cefc58bceac3d7e46f585822 100644 (file)
@@ -816,7 +816,7 @@ static int totindex, curindex;
 static void accum_mballfaces(int i1, int i2, int i3, int i4)
 {
        int *newi, *cur;
-       /* static int i=0; I would like to delete altogether, but I don't dare to, yet */
+       /* static int i = 0; I would like to delete altogether, but I don't dare to, yet */
 
        if (totindex == curindex) {
                totindex += 256;
@@ -1701,7 +1701,7 @@ static float init_meta(Scene *scene, Object *ob)    /* return totsize */
        MetaBall *mb;
        MetaElem *ml;
        float size, totsize, obinv[4][4], obmat[4][4], vec[3];
-       //float max=0.0;
+       //float max = 0.0f;
        int a, obnr, zero_size = 0;
        char obname[MAX_ID_NAME];
        
index 9eb74986b29de30f843fa5963d0cdbebe4efad37..fd952b7b518dda1d4fe8ea47caaa0f9829d3ffa1 100644 (file)
@@ -1823,7 +1823,7 @@ void BKE_mesh_calc_normals_mapping_ex(MVert *mverts, int numVerts,
        }
 
        if (origIndexFace &&
-           /* fnors==faceNors_r */ /* NO NEED TO ALLOC YET */
+           /* fnors == faceNors_r */ /* NO NEED TO ALLOC YET */
            fnors != NULL &&
            numFaces)
        {
@@ -2004,7 +2004,7 @@ static void bm_corners_to_loops(Mesh *me, int findex, int loopstart, int numTex,
                if (corners == 0) {
                        /* Empty MDisp layers appear in at least one of the sintel.blend files.
                         * Not sure why this happens, but it seems fine to just ignore them here.
-                        * If corners==0 for a non-empty layer though, something went wrong. */
+                        * If (corners == 0) for a non-empty layer though, something went wrong. */
                        BLI_assert(fd->totdisp == 0);
                }
                else {
index 4e8b67bd55b21cc9cf568bb5ed1f91b7ec4c1d3b..d818ca09f20e3ad6846e0b36ef914cd814e8dd53 100644 (file)
@@ -685,7 +685,7 @@ static void multires_del_higher(MultiresModifierData *mmd, Object *ob, int lvl)
        multires_set_tot_level(ob, mmd, lvl);
 }
 
-/* direction=1 for delete higher, direction=0 for lower (not implemented yet) */
+/* (direction = 1) for delete higher, (direction = 0) for lower (not implemented yet) */
 void multiresModifier_del_levels(MultiresModifierData *mmd, Object *ob, int direction)
 {
        Mesh *me = BKE_mesh_from_object(ob);
index cd5efb9951bbf1e0fb0da52605c0c022b57ca6ee..9537a31838cce65560c1dd19e87b6637e51aa0f8 100644 (file)
@@ -2411,7 +2411,7 @@ static void get_strand_normal(Material *ma, const float surfnor[3], float surfdi
 static int psys_threads_init_path(ParticleThread *threads, Scene *scene, float cfra, int editupdate)
 {
        ParticleThreadContext *ctx = threads[0].ctx;
-/*     Object *ob= ctx->sim.ob; */
+/*     Object *ob = ctx->sim.ob; */
        ParticleSystem *psys = ctx->sim.psys;
        ParticleSettings *part = psys->part;
 /*     ParticleEditSettings *pset = &scene->toolsettings->particle; */
index f2b963a7edbfb2e77f7ec12ee31a34099630c813..63efd194932ad83b6b9b7015e0855c99ef97a352 100644 (file)
@@ -604,7 +604,7 @@ void BKE_scene_set_background(Main *bmain, Scene *scene)
                base->flag |= flag;
                
                /* not too nice... for recovering objects with lost data */
-               //if (ob->pose==NULL) base->flag &= ~OB_POSEMODE;
+               //if (ob->pose == NULL) base->flag &= ~OB_POSEMODE;
                ob->flag = base->flag;
                
                ob->ctime = -1234567.0;  /* force ipo to be calculated later */
index 915f55579255c584e73151b899206cbc65b7f670..252ddb788878578785582f55f670a2c792de9c08 100644 (file)
@@ -143,7 +143,7 @@ static void open_plugin_seq(PluginSeq *pis, const char *seqname)
        BLI_dynlib_get_error_as_string(NULL);
 
        /* if (pis->handle) BLI_dynlib_close(pis->handle); */
-       /* pis->handle= 0; */
+       /* pis->handle = 0; */
 
        /* open the needed object */
        pis->handle = BLI_dynlib_open(pis->name);
@@ -1480,8 +1480,8 @@ static void do_mul_effect_byte(float facf0, float facf1, int x, int y,
        fac3 = (int)(256.0f * facf1);
 
        /* formula:
-        *              fac*(a*b) + (1-fac)*a  => fac*a*(b-1)+axaux= c*px + py*s ;//+centx
-        *              yaux= -s*px + c*py;//+centy
+        *              fac * (a * b) + (1-fac)*a  => fac * a * (b - 1) + axaux = c * px + py * s; //+centx
+        *              yaux = -s * px + c * py; //+centy
         */
 
        while (y--) {
@@ -2339,7 +2339,7 @@ static void RVBlurBitmap2_byte(unsigned char *map, int width, int height,
 
 
        /*      Swap buffers */
-       swap = temp; temp = map; /* map=swap; */ /* UNUSED */
+       swap = temp; temp = map; /* map = swap; */ /* UNUSED */
 
        /*      Tidy up  */
        MEM_freeN(filter);
@@ -2509,7 +2509,7 @@ static void RVBlurBitmap2_float(float *map, int width, int height,
 
 
        /*      Swap buffers */
-       swap = temp; temp = map; /* map=swap; */ /* UNUSED */
+       swap = temp; temp = map; /* map = swap; */ /* UNUSED */
 
        /*      Tidy up  */
        MEM_freeN(filter);
index 8fbb3ee9800256318e0e144c970a374e570be45c..8cb8a5a1bf11471dd0822391fe755587bceed6b8 100644 (file)
@@ -612,8 +612,8 @@ void calc_sequence(Scene *scene, Sequence *seq)
 
                /* we take the largest start and smallest end */
 
-               // seq->start= seq->startdisp= MAX2(seq->seq1->startdisp, seq->seq2->startdisp);
-               // seq->enddisp= MIN2(seq->seq1->enddisp, seq->seq2->enddisp);
+               // seq->start = seq->startdisp = MAX2(seq->seq1->startdisp, seq->seq2->startdisp);
+               // seq->enddisp = MIN2(seq->seq1->enddisp, seq->seq2->enddisp);
 
                if (seq->seq1) {
                        /* XXX These resets should not be necessary, but users used to be able to
index 22e702d59304c418d86a50c80667a8ee5b62e520..5c387e8cee0fa2469c73cb693811696dfd559048 100644 (file)
@@ -125,7 +125,7 @@ static CCGSubSurf *_getSubSurf(CCGSubSurf *prevSS, int subdivLevels,
        int useArena = flags & CCG_USE_ARENA;
        int normalOffset = 0;
 
-       /* subdivLevels==0 is not allowed */
+       /* (subdivLevels == 0) is not allowed */
        subdivLevels = MAX2(subdivLevels, 1);
 
        if (prevSS) {
index 7bfd4189cc3ee64db3d7e91f31fd90578fc5af9b..eefdb31c001f50e2b3b276d9218d7add250ab4a5 100644 (file)
@@ -813,7 +813,7 @@ void txt_move_up(Text *text, short sel)
        if (sel) txt_curs_sel(text, &linep, &charp);
        else { txt_pop_first(text); txt_curs_cur(text, &linep, &charp); }
        if (!*linep) return;
-       /* old= *charp; */ /* UNUSED */
+       /* old = *charp; */ /* UNUSED */
 
        if ((*linep)->prev) {
                int index = txt_utf8_offset_to_index((*linep)->line, *charp);
@@ -841,7 +841,7 @@ void txt_move_down(Text *text, short sel)
        if (sel) txt_curs_sel(text, &linep, &charp);
        else { txt_pop_last(text); txt_curs_cur(text, &linep, &charp); }
        if (!*linep) return;
-       /* old= *charp; */ /* UNUSED */
+       /* old = *charp; */ /* UNUSED */
 
        if ((*linep)->next) {
                int index = txt_utf8_offset_to_index((*linep)->line, *charp);
@@ -3226,8 +3226,8 @@ short txt_clear_marker_region(Text *text, TextLine *line, int start, int end, in
 }
 
 /* Clears all markers in the specified group (if given) with at least the
- * specified flags set. Useful for clearing temporary markers (group=0,
- * flags=TMARK_TEMP) */
+ * specified flags set. Useful for clearing temporary markers (group = 0,
+ * flags = TMARK_TEMP) */
 short txt_clear_markers(Text *text, int group, int flags)
 {
        TextMarker *marker, *next;
@@ -3276,7 +3276,7 @@ TextMarker *txt_prev_marker(Text *text, TextMarker *marker)
                if (tmp->group == marker->group)
                        return tmp;
        }
-       return NULL; /* Only if marker==NULL */
+       return NULL; /* Only if (marker == NULL) */
 }
 
 /* Finds the next marker in the same group. If no other is found, the same
@@ -3290,7 +3290,7 @@ TextMarker *txt_next_marker(Text *text, TextMarker *marker)
                if (tmp->group == marker->group)
                        return tmp;
        }
-       return NULL; /* Only if marker==NULL */
+       return NULL; /* Only if (marker == NULL) */
 }
 
 
index 4f5ea0b23bd8e39fad4b172bed88123f98e89bf7..f9f677d7c224ec7adfbe1228aedd6c21494a504f 100644 (file)
@@ -71,8 +71,8 @@ static void *thread_tls_data;
  * A sample loop can look like this (pseudo c);
  *
  *     ListBase lb;
- *     int maxthreads= 2;
- *     int cont= 1;
+ *     int maxthreads = 2;
+ *     int cont = 1;
  * 
  *     BLI_init_threads(&lb, do_something_func, maxthreads);
  * 
@@ -85,14 +85,14 @@ static void *thread_tls_data;
  *         else PIL_sleep_ms(50);
  *         
  *         // find if a job is ready, this the do_something_func() should write in job somewhere
- *         cont= 0;
+ *         cont = 0;
  *         for (go over all jobs)
  *             if (job is ready) {
  *                 if (job was not removed) {
  *                     BLI_remove_thread(&lb, job);
  *                 }
  *             }
- *             else cont= 1;
+ *             else cont = 1;
  *         }
  *         // conditions to exit loop 
  *         if (if escape loop event) {
index 2f86c810da0370d0c043d876a474301e5165fa84..a7dae22cda22d9bc0b52d331361a3c589b7f0c80 100644 (file)
 #include <errno.h>
 
 #ifdef WIN32
-#  include <io.h>              // read, open
+#  include <io.h>       // read, open
 #  include "BLI_winstuff.h"
 #else // ! WIN32
-#  include <unistd.h>          // read
+#  include <unistd.h>       // read
 #endif
 
 #include "BLO_readfile.h"
@@ -63,33 +63,33 @@ static int handle_read_msb_int(int handle)
        if (read(handle, buf, 4) != 4)
                return -1;
 
-       return (buf[0]<<24) + (buf[1]<<16) + (buf[2]<<8) + (buf[3]<<0);
+       return (buf[0] << 24) + (buf[1] << 16) + (buf[2] << 8) + (buf[3] << 0);
 }
 
 int BLO_is_a_runtime(const char *path)
 {
-       int res= 0, fd= BLI_open(path, O_BINARY|O_RDONLY, 0);
+       int res = 0, fd = BLI_open(path, O_BINARY | O_RDONLY, 0);
        int datastart;
        char buf[8];
 
-       if (fd==-1)
+       if (fd == -1)
                goto cleanup;
        
        lseek(fd, -12, SEEK_END);
        
-       datastart= handle_read_msb_int(fd);
+       datastart = handle_read_msb_int(fd);
 
-       if (datastart==-1)
+       if (datastart == -1)
                goto cleanup;
-       else if (read(fd, buf, 8)!=8)
+       else if (read(fd, buf, 8) != 8)
                goto cleanup;
-       else if (memcmp(buf, "BRUNTIME", 8)!=0)
+       else if (memcmp(buf, "BRUNTIME", 8) != 0)
                goto cleanup;
        else
-               res= 1;
+               res = 1;
 
 cleanup:
-       if (fd!=-1)
+       if (fd != -1)
                close(fd);
 
        return res;     
@@ -97,45 +97,45 @@ cleanup:
 
 BlendFileData *BLO_read_runtime(const char *path, ReportList *reports)
 {
-       BlendFileData *bfd= NULL;
+       BlendFileData *bfd = NULL;
        size_t actualsize;
        int fd, datastart;
        char buf[8];
 
-       fd= BLI_open(path, O_BINARY|O_RDONLY, 0);
+       fd = BLI_open(path, O_BINARY | O_RDONLY, 0);
 
-       if (fd==-1) {
+       if (fd == -1) {
                BKE_reportf(reports, RPT_ERROR, "Unable to open \"%s\": %s.", path, strerror(errno));
                goto cleanup;
        }
        
-       actualsize= BLI_file_descriptor_size(fd);
+       actualsize = BLI_file_descriptor_size(fd);
 
        lseek(fd, -12, SEEK_END);
 
-       datastart= handle_read_msb_int(fd);
+       datastart = handle_read_msb_int(fd);
 
-       if (datastart==-1) {
+       if (datastart == -1) {
                BKE_reportf(reports, RPT_ERROR, "Unable to read  \"%s\" (problem seeking)", path);
                goto cleanup;
        }
-       else if (read(fd, buf, 8)!=8) {
+       else if (read(fd, buf, 8) != 8) {
                BKE_reportf(reports, RPT_ERROR, "Unable to read  \"%s\" (truncated header)", path);
                goto cleanup;
        }
-       else if (memcmp(buf, "BRUNTIME", 8)!=0) {
+       else if (memcmp(buf, "BRUNTIME", 8) != 0) {
                BKE_reportf(reports, RPT_ERROR, "Unable to read  \"%s\" (not a blend file)", path);
                goto cleanup;
        }
        else {  
                //printf("starting to read runtime from %s at datastart %d\n", path, datastart);
                lseek(fd, datastart, SEEK_SET);
-               bfd = blo_read_blendafterruntime(fd, path, actualsize-datastart, reports);
-               fd= -1; // file was closed in blo_read_blendafterruntime()
+               bfd = blo_read_blendafterruntime(fd, path, actualsize - datastart, reports);
+               fd = -1; // file was closed in blo_read_blendafterruntime()
        }
        
 cleanup:
-       if (fd!=-1)
+       if (fd != -1)
                close(fd);
        
        return bfd;
index 736a43e16761b93da325a7c4546f43d3a8475891..5e5726d92443eda7b6c7b7ec998c4b9cf5ab62e6 100644 (file)
@@ -92,7 +92,7 @@ BMVert *BM_vert_create(BMesh *bm, const float co[3], const BMVert *example)
  * \brief Main function for creating a new edge.
  *
  * \note Duplicate edges are supported by the API however users should _never_ see them.
- * so unless you need a unique edge or know the edge won't exist, you should call wih \a nodouble=TRUE
+ * so unless you need a unique edge or know the edge won't exist, you should call wih \a nodouble = TRUE
  */
 BMEdge *BM_edge_create(BMesh *bm, BMVert *v1, BMVert *v2, const BMEdge *example, int nodouble)
 {
index c4fca2d4ea541119cdbe4d1b94fbbbb2e625c6a2..9bbba20c15eca5ce75b685fef83ca8ccbc7cfa42 100644 (file)
@@ -850,7 +850,7 @@ static int acf_group_setting_flag(bAnimContext *ac, int setting, short *neg)
                        return AGRP_MUTED;
                        
                case ACHANNEL_SETTING_PROTECT: /* protected */
-                       // *neg= 1; - if we change this to edtiability
+                       // *neg = 1; - if we change this to edtiability
                        return AGRP_PROTECTED;
                        
                case ACHANNEL_SETTING_VISIBLE: /* visiblity - graph editor */
@@ -938,7 +938,7 @@ static int acf_fcurve_setting_flag(bAnimContext *UNUSED(ac), int setting, short
                        return FCURVE_MUTED;
                        
                case ACHANNEL_SETTING_PROTECT: /* protected */
-                       // *neg= 1; - if we change this to edtiability
+                       // *neg = 1; - if we change this to edtiability
                        return FCURVE_PROTECTED;
                        
                case ACHANNEL_SETTING_VISIBLE: /* visiblity - graph editor */
@@ -2483,7 +2483,7 @@ static int acf_gpl_setting_flag(bAnimContext *UNUSED(ac), int setting, short *ne
                        return GP_LAYER_HIDE;
                        
                case ACHANNEL_SETTING_PROTECT: /* protected */
-                       // *neg= 1; - if we change this to edtiability
+                       // *neg = 1; - if we change this to edtiability
                        return GP_LAYER_LOCKED;
                        
                default: /* unsupported */
@@ -3096,7 +3096,7 @@ static void draw_setting_widget(bAnimContext *ac, bAnimListElem *ale, bAnimChann
        /* get the base icon for the setting */
        switch (setting) {
                case ACHANNEL_SETTING_VISIBLE:  /* visibility eyes */
-                       //icon= ((enabled)? ICON_VISIBLE_IPO_ON : ICON_VISIBLE_IPO_OFF);
+                       //icon = ((enabled) ? ICON_VISIBLE_IPO_ON : ICON_VISIBLE_IPO_OFF);
                        icon = ICON_VISIBLE_IPO_OFF;
                        
                        if (ale->type == ANIMTYPE_FCURVE)
index 159c4681951bb483a1bf3087e9e0c33351667ae9..dc0886a473e420c6a5ffb4bf1e6deafcd9021887 100644 (file)
@@ -496,7 +496,7 @@ void ANIM_flush_setting_anim_channels(bAnimContext *ac, ListBase *anim_data, bAn
                                break;
                        
                        /* store this level as the 'old' level now */
-                       // prevLevel= level; // XXX: prevLevel is unused
+                       // prevLevel = level; // XXX: prevLevel is unused
                }
        }
 }
@@ -2017,7 +2017,7 @@ static int animchannels_rename_invoke(bContext *C, wmOperator *UNUSED(op), wmEve
        v2d = &ar->v2d;
        
        /* figure out which channel user clicked in 
-        * Note: although channels technically start at y= ACHANNEL_FIRST, we need to adjust by half a channel's height
+        * Note: although channels technically start at (y = ACHANNEL_FIRST), we need to adjust by half a channel's height
         *              so that the tops of channels get caught ok. Since ACHANNEL_FIRST is really ACHANNEL_HEIGHT, we simply use
         *              ACHANNEL_HEIGHT_HALF.
         */
@@ -2330,7 +2330,7 @@ static int animchannels_mouseclick_invoke(bContext *C, wmOperator *op, wmEvent *
                selectmode = SELECT_REPLACE;
        
        /* figure out which channel user clicked in 
-        * Note: although channels technically start at y= ACHANNEL_FIRST, we need to adjust by half a channel's height
+        * Note: although channels technically start at (y = ACHANNEL_FIRST), we need to adjust by half a channel's height
         *              so that the tops of channels get caught ok. Since ACHANNEL_FIRST is really ACHANNEL_HEIGHT, we simply use
         *              ACHANNEL_HEIGHT_HALF.
         */
index 416df6bccba78ba53f34b85e1a83753d9c606551..4a5966948aea2dea1d551b4ae1289c48f2530bb0 100644 (file)
@@ -521,7 +521,7 @@ void ANIM_OT_driver_button_add(wmOperatorType *ot)
        
        /* callbacks */
        ot->exec = add_driver_button_exec; 
-       //op->poll= ??? // TODO: need to have some animatable property to do this
+       //op->poll = ??? // TODO: need to have some animatable property to do this
        
        /* flags */
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
@@ -573,7 +573,7 @@ void ANIM_OT_driver_button_remove(wmOperatorType *ot)
        
        /* callbacks */
        ot->exec = remove_driver_button_exec; 
-       //op->poll= ??? // TODO: need to have some driver to be able to do this...
+       //op->poll = ??? // TODO: need to have some driver to be able to do this...
        
        /* flags */
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
@@ -620,7 +620,7 @@ void ANIM_OT_copy_driver_button(wmOperatorType *ot)
        
        /* callbacks */
        ot->exec = copy_driver_button_exec; 
-       //op->poll= ??? // TODO: need to have some driver to be able to do this...
+       //op->poll = ??? // TODO: need to have some driver to be able to do this...
        
        /* flags */
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
@@ -664,7 +664,7 @@ void ANIM_OT_paste_driver_button(wmOperatorType *ot)
        
        /* callbacks */
        ot->exec = paste_driver_button_exec; 
-       //op->poll= ??? // TODO: need to have some driver to be able to do this...
+       //op->poll = ??? // TODO: need to have some driver to be able to do this...
        
        /* flags */
        ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
index 36c15c50809c392478a7eeeb3ceb82365b99bebe..18e3d9678354d06fe02919c2e6948483dfe67d1b 100644 (file)
@@ -1236,7 +1236,7 @@ static int poselib_preview_handle_event(bContext *UNUSED(C), wmOperator *op, wmE
                        case PAD5: case PAD6: case PAD7: case PAD8: case PAD9:
                        case PADPLUSKEY: case PADMINUS: 
                        case MIDDLEMOUSE: case MOUSEMOVE:
-                               //pld->redraw= PL_PREVIEW_REDRAWHEADER;
+                               //pld->redraw = PL_PREVIEW_REDRAWHEADER;
                                ret = OPERATOR_PASS_THROUGH;
                                break;
                                
@@ -1365,7 +1365,7 @@ static int poselib_preview_handle_event(bContext *UNUSED(C), wmOperator *op, wmE
                 * even though we still maintain control (as RUNNING_MODAL flag is still set too)
                 */
                case MIDDLEMOUSE: case MOUSEMOVE:
-                       //pld->redraw= PL_PREVIEW_REDRAWHEADER;
+                       //pld->redraw = PL_PREVIEW_REDRAWHEADER;
                        ret = OPERATOR_PASS_THROUGH;
                        break;
                        
@@ -1379,7 +1379,7 @@ static int poselib_preview_handle_event(bContext *UNUSED(C), wmOperator *op, wmE
                        }
                        else {
                                /* view manipulation (see above) */
-                               //pld->redraw= PL_PREVIEW_REDRAWHEADER;
+                               //pld->redraw = PL_PREVIEW_REDRAWHEADER;
                                ret = OPERATOR_PASS_THROUGH;
                        }
                        break;
index df970171a54318e92b27d44bcf54bfff40d84791..a8e841166998860d855642774bc6db96a6953721 100644 (file)
@@ -119,8 +119,8 @@ void ED_armature_exit_posemode(bContext *C, Base *base)
        }       
 }
 
-/* if a selected or active bone is protected, throw error (oonly if warn==1) and return 1 */
-/* only_selected==1 : the active bone is allowed to be protected */
+/* if a selected or active bone is protected, throw error (oonly if warn == 1) and return 1 */
+/* only_selected == 1: the active bone is allowed to be protected */
 #if 0 /* UNUSED 2.5 */
 static short pose_has_protected_selected(Object *ob, short warn)
 {
@@ -571,7 +571,7 @@ static short pose_select_same_group(bContext *C, Object *ob, short extend)
                
        /* alloc a small array to keep track of the groups to use 
         *  - each cell stores on/off state for whether group should be used
-        *      - size is numGroups + 1, since index=0 is used for no-group
+        *      - size is (numGroups + 1), since (index = 0) is used for no-group
         */
        group_flags = MEM_callocN(numGroups + 1, "pose_select_same_group");
        
index 431ce15a26da80f0ef394361f6f98e2fff9c45bb..492111ff8e7d537daa6c12ad1170ce17c3a4bb63 100644 (file)
@@ -1448,7 +1448,7 @@ static short isNurbselUV(Nurb *nu, int *u, int *v, int flag)
                        if (*u == -1) *u = b;
                        else return 0;
                }
-               else if (sel > 1) return 0;  /* because sel==1 is still ok */
+               else if (sel > 1) return 0;  /* because sel == 1 is still ok */
        }
 
        for (a = 0; a < nu->pntsu; a++) {
@@ -2965,7 +2965,7 @@ static void subdividenurb(Object *obedit, int number_cuts)
                                        BKE_nurb_knot_calc_u(nu);
                                }
                        }
-               } /* End of 'else if (nu->pntsv==1)' */
+               } /* End of 'else if (nu->pntsv == 1)' */
                else if (nu->type == CU_NURBS) {
                        /* This is a very strange test ... */
                        /**
@@ -3085,7 +3085,7 @@ static void subdividenurb(Object *obedit, int number_cuts)
                                nu->pntsv = (number_cuts + 1) * nu->pntsv - number_cuts;
                                BKE_nurb_knot_calc_u(nu);
                                BKE_nurb_knot_calc_v(nu);
-                       } /* End of 'if (sel== nu->pntsu*nu->pntsv)' (subdivide entire NURB) */
+                       } /* End of 'if (sel == nu->pntsu*nu->pntsv)' (subdivide entire NURB) */
                        else {
                                /* subdivide in v direction? */
                                sel = 0;
@@ -3258,7 +3258,7 @@ static void findnearestNurbvert__doClosest(void *userData, Nurb *nu, BPoint *bp,
 
 static short findnearestNurbvert(ViewContext *vc, short sel, const int mval[2], Nurb **nurb, BezTriple **bezt, BPoint **bp)
 {
-       /* sel==1: selected gets a disadvantage */
+       /* (sel == 1): selected gets a disadvantage */
        /* in nurb and bezt or bp the nearest is written */
        /* return 0 1 2: handlepunt */
        struct { BPoint *bp; BezTriple *bezt; Nurb *nurb; int dist, hpoint, select, mval[2]; } data = {NULL};
@@ -3765,8 +3765,8 @@ static void merge_2_nurb(wmOperator *op, ListBase *editnurb, Nurb *nu1, Nurb *nu
        
        if (is_u_selected(nu1, nu1->pntsu - 1) ) ;
        else {
-               /* For 2D curves blender uses orderv=0. It doesn't make any sense mathematically. */
-               /* but after rotating orderu=0 will be confusing. */
+               /* For 2D curves blender uses (orderv = 0). It doesn't make any sense mathematically. */
+               /* but after rotating (orderu = 0) will be confusing. */
                if (nu1->orderv == 0) nu1->orderv = 1;
 
                rotate_direction_nurb(nu1);
index 969bc5a844de700ab0d2a82e30d6ed511afa59af..30126c97d348e8aa6f8c18ad210462aec773a8c6 100644 (file)
@@ -30,8 +30,8 @@
  *  \brief DataToC output of file <Bfont>
  */
 
-int datatoc_Bfont_size= 25181;
-char datatoc_Bfont[25181]= {
+int datatoc_Bfont_size = 25181;
+char datatoc_Bfont[25181] = {
 128, 1, 228, 1, 0, 0, 37, 33, 80, 83, 45, 65, 100, 111, 98, 101,
 70, 111, 110, 116, 45, 49, 46, 48, 58, 32, 66, 102, 111, 110, 116, 32,
 48, 48, 49, 46, 48, 48, 49, 10, 49, 49, 32, 100, 105, 99, 116, 32,
index cbe4450526391d0f8e8711dfc51208ef488d7542..e2dbb06fa2f026bd0760cc869cea374e374c3d3f 100644 (file)
@@ -932,7 +932,7 @@ static void check_panel_overlap(ARegion *ar, Panel *panel)
 {
        Panel *pa;
 
-       /* also called with panel==NULL for clear */
+       /* also called with (panel == NULL) for clear */
        
        for (pa = ar->panels.first; pa; pa = pa->next) {
                pa->flag &= ~PNL_OVERLAP;
@@ -1024,7 +1024,7 @@ static void ui_handle_panel_header(const bContext *C, uiBlock *block, int mx, in
        else if (block->panel->control & UI_PNL_CLOSE) {
                /* whole of header can be used to collapse panel (except top-right corner) */
                if (mx <= block->maxx - 8 - PNL_ICON) button = 2;
-               //else if (mx <= block->minx+10+2*PNL_ICON+2) button= 1;
+               //else if (mx <= block->minx + 10 + 2 * PNL_ICON + 2) button = 1;
        }
        else if (mx <= block->maxx - PNL_ICON - 12) {
                button = 1;
index b690d1f9dc9abd964b5e7de69e8b95775bf986bd..dd6be9141ca431faf2faa3dffc098a48d0b6cebe 100644 (file)
@@ -1304,16 +1304,16 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
                }
        }
        
-       /*aspect= (float)(block->maxx - block->minx + 4);*/ /*UNUSED*/
+       /* aspect = (float)(block->maxx - block->minx + 4);*/ /*UNUSED*/
        ui_block_to_window_fl(butregion, but->block, &block->minx, &block->miny);
        ui_block_to_window_fl(butregion, but->block, &block->maxx, &block->maxy);
 
-       //block->minx-= 2.0; block->miny-= 2.0;
-       //block->maxx+= 2.0; block->maxy+= 2.0;
+       //block->minx -= 2.0; block->miny -= 2.0;
+       //block->maxx += 2.0; block->maxy += 2.0;
        
        xsize = block->maxx - block->minx + 4; // 4 for shadow
        ysize = block->maxy - block->miny + 4;
-       /*aspect/= (float)xsize;*/ /*UNUSED*/
+       /* aspect /= (float)xsize;*/ /*UNUSED*/
 
        {
                int left = 0, right = 0, top = 0, down = 0;
@@ -2706,7 +2706,7 @@ void uiPupBlockEx(bContext *C, uiBlockCreateFunc func, uiBlockHandleFunc popup_f
        handle->popup_arg = arg;
        handle->popup_func = popup_func;
        handle->cancel_func = cancel_func;
-       // handle->opcontext= opcontext;
+       // handle->opcontext = opcontext;
        
        UI_add_popup_handlers(C, &window->modalhandlers, handle);
        WM_event_add_mousemove(C);
index 6d1766c8bf18d119ba6677d7621fc53827a317ce..59ef0c00283d08f04feb3a0bb87d3fcbfa86b2d4 100644 (file)
@@ -350,7 +350,7 @@ static void template_ID(bContext *C, uiLayout *layout, TemplateID *template, Str
        idptr = RNA_property_pointer_get(&template->ptr, template->prop);
        id = idptr.data;
        idfrom = template->ptr.id.data;
-       // lb= template->idlb;
+       // lb = template->idlb;
 
        block = uiLayoutGetBlock(layout);
        uiBlockBeginAlign(block);
@@ -2299,7 +2299,7 @@ static void list_item_row(bContext *C, uiLayout *layout, PointerRNA *ptr, Pointe
 
 void uiTemplateList(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *activeptr, const char *activepropname, const char *prop_list, int rows, int maxrows, int listtype)
 {
-       //Scene *scene= CTX_data_scene(C);
+       //Scene *scene = CTX_data_scene(C);
        PropertyRNA *prop = NULL, *activeprop;
        PropertyType type, activetype;
        StructRNA *ptype;
index 87c2f2dc20b489d4f6a06b4e533000b4b9c67036..1a7fc98ef74149bfa7b50b089f4a0e585fda1162 100644 (file)
@@ -2245,7 +2245,7 @@ void ui_draw_link_bezier(rcti *rect)
        
        if (ui_link_bezier_points(rect, coord_array, LINK_RESOL)) {
                /* we can reuse the dist variable here to increment the GL curve eval amount*/
-               // const float dist= 1.0f/(float)LINK_RESOL; // UNUSED
+               // const float dist = 1.0f/(float)LINK_RESOL; // UNUSED
 
                glEnable(GL_BLEND);
                glEnable(GL_LINE_SMOOTH);
index 0d16e0f4dc01c316390cdb75bb8d6c8f34acf68d..edad33953b9407c9cd3813824c58b9a2c8da4e00 100644 (file)
@@ -1265,7 +1265,7 @@ void init_userdef_do_versions(void)
                if (U.undosteps == 0) U.undosteps = 32;
                
                for (btheme = U.themes.first; btheme; btheme = btheme->next) {
-                       /* check for alpha==0 is safe, then color was never set */
+                       /* check for (alpha == 0) is safe, then color was never set */
                        if (btheme->tv3d.edge_seam[3] == 0) {
                                rgba_char_args_set(btheme->tv3d.edge_seam, 230, 150, 50, 255);
                        }
@@ -1290,7 +1290,7 @@ void init_userdef_do_versions(void)
                bTheme *btheme;
                /* new space type */
                for (btheme = U.themes.first; btheme; btheme = btheme->next) {
-                       /* check for alpha==0 is safe, then color was never set */
+                       /* check for (alpha == 0) is safe, then color was never set */
                        if (btheme->ttime.back[3] == 0) {
                                // copied from ui_theme_init_default
                                btheme->ttime = btheme->tv3d;
index 1d315e9a5b8e390cad0b94cb818fd5782607e9e4..b2227405d8bc4bc32cd29babf664333f8f1f84bc 100644 (file)
@@ -272,7 +272,7 @@ void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
                                v2d->keepzoom = (V2D_KEEPASPECT | V2D_LIMITZOOM | V2D_KEEPZOOM);
                                v2d->minzoom = 0.5f;
                                v2d->maxzoom = 2.0f;
-                               //tot_changed= 1;
+                               //tot_changed = 1;
                                
                                v2d->align = (V2D_ALIGN_NO_NEG_X | V2D_ALIGN_NO_POS_Y);
                                v2d->keeptot = V2D_KEEPTOT_BOUNDS;
@@ -428,7 +428,7 @@ void UI_view2d_curRect_validate_resize(View2D *v2d, int resize)
                if (winx != v2d->oldwinx) do_x = TRUE;
                if (winy != v2d->oldwiny) do_y = TRUE;
                
-               /* curRatio= height / width; */ /* UNUSED */
+               /* curRatio = height / width; */ /* UNUSED */
                winRatio = winy / winx;
                
                /* both sizes change (area/region maximised)  */
@@ -442,7 +442,7 @@ void UI_view2d_curRect_validate_resize(View2D *v2d, int resize)
                        else do_x = TRUE;
                }
                do_cur = do_x;
-               /* do_win= do_y; */ /* UNUSED */
+               /* do_win = do_y; */ /* UNUSED */
                
                if (do_cur) {
                        if ((v2d->keeptot == V2D_KEEPTOT_STRICT) && (winx != v2d->oldwinx)) {
@@ -806,7 +806,7 @@ void UI_view2d_curRect_reset(View2D *v2d)
                v2d->cur.xmax = (float)width;
        }
        else {
-               /* width is centered around x==0 */
+               /* width is centered around (x == 0) */
                const float dx = (float)width / 2.0f;
                
                v2d->cur.xmin = -dx;
@@ -825,7 +825,7 @@ void UI_view2d_curRect_reset(View2D *v2d)
                v2d->cur.ymax = (float)height;
        }
        else {
-               /* height is centered around y==0 */
+               /* height is centered around (y == 0) */
                const float dy = (float)height / 2.0f;
                
                v2d->cur.ymin = -dy;
@@ -869,7 +869,7 @@ void UI_view2d_totRect_set_resize(View2D *v2d, int width, int height, int resize
                v2d->tot.xmax = (float)width;
        }
        else {
-               /* width is centered around x==0 */
+               /* width is centered around (x == 0) */
                const float dx = (float)width / 2.0f;
                
                v2d->tot.xmin = -dx;
@@ -888,7 +888,7 @@ void UI_view2d_totRect_set_resize(View2D *v2d, int width, int height, int resize
                v2d->tot.ymax = (float)height;
        }
        else {
-               /* height is centered around y==0 */
+               /* height is centered around (y == 0) */
                const float dy = (float)height / 2.0f;
                
                v2d->tot.ymin = -dy;
index 88fb728f334972f00e07ed24dfebd8843fa9b72f..ed86cb67687321f57e1f54fb8fc1498e9b47f005 100644 (file)
@@ -2242,11 +2242,11 @@ static void project_bucket_clip_face(
  *         
  *         i = l
  *         while i < len(me.verts):
- *             ii = i+1
- *             if ii==len(me.verts):
+ *             ii = i + 1
+ *             if ii == len(me.verts):
  *                 ii = l
  *             me.edges.extend([i, ii])
- *             i+=1
+ *             i += 1
  * 
  * if __name__ == '__main__':
  *     main()
index 3af853ba15039b8d2e307ecbaa82235b92f59106..7d1d5906dd8cb72572f8c1b1367aee7b6a36ae10 100644 (file)
@@ -345,7 +345,7 @@ static void cinema_parameters(opj_cparameters_t *parameters)
        parameters->image_offset_x0 = 0;
        parameters->image_offset_y0 = 0;
 
-       /*Codeblock size= 32*32*/
+       /*Codeblock size = 32 * 32*/
        parameters->cblockw_init = 32;  
        parameters->cblockh_init = 32;
        parameters->csty |= 0x01;
index bf75995fd9cf6f5c231af4363a518fcb28331917..0260ed46b0059e0f9a721380c6605c8aacf97cbe 100644 (file)
@@ -549,7 +549,7 @@ ImBuf *imb_loadtarga(unsigned char *mem, size_t mem_size, int flags)
        TARGA tga;
        struct ImBuf *ibuf;
        int col, count, size;
-       unsigned int *rect, *cmap = NULL /*, mincol= 0*/, maxcol = 0;
+       unsigned int *rect, *cmap = NULL /*, mincol = 0*/, maxcol = 0;
        uchar *cp = (uchar *) &col;
        
        if (checktarga(&tga, mem) == 0) return(NULL);
index 231dd521f07f562ea6ada00327c21b0311cd007b..2498cba42efa633abbb0e0380f101196f18fcf48 100644 (file)
@@ -93,7 +93,7 @@ typedef long long __int64;
  * !!Remember to read/write integer and short aligned!!
  *
  *  While writing a file, the names of a struct is indicated with a type number,
- *  to be found with: type= findstruct_nr(SDNA *, char *)
+ *  to be found with: type = findstruct_nr(SDNA *, char *)
  *  The value of 'type' corresponds with the the index within the structs array
  *
  *  For the moment: the complete DNA file is included in a .blend file. For
index 548e81a7fc8d3d39c6661950f3eaab42642809ed..0191847706abd26cfd862c6f93371d4f942bf914 100644 (file)
@@ -145,7 +145,7 @@ static char **names, *namedata;      /* at address names[a] is string a */
 static char **types, *typedata;      /* at address types[a] is string a */
 static short *typelens;              /* at typelens[a] is de length of type a */
 static short *alphalens;             /* contains sizes as they are calculated on the DEC Alpha (64 bits), in fact any 64bit system */
-static short **structs, *structdata; /* at sp= structs[a] is the first address of a struct definition
+static short **structs, *structdata; /* at sp = structs[a] is the first address of a struct definition
                                       * sp[0] is type number
                                       * sp[1] is amount of elements
                                       * sp[2] sp[3] is typenr,  namenr (etc) */
@@ -909,7 +909,7 @@ void printStructLengths(void)
        printf("\n\n*** All detected structs:\n");
 
        while (unknown) {
-               /*lastunknown= unknown;*/ /*UNUSED*/
+               /*lastunknown = unknown;*/ /*UNUSED*/
                unknown = 0;
                
                /* check all structs... */
@@ -1170,7 +1170,7 @@ int main(int argc, char **argv)
                        }
                        else {
                                fprintf(file, "};\n");
-                               fprintf(file, "int DNAlen= sizeof(DNAstr);\n");
+                               fprintf(file, "int DNAlen = sizeof(DNAstr);\n");
        
                                fclose(file);
                        }
index 9fa4d73cead8e5a51cde730bc26a1d891d6f99f7..31d477dfe0773e7665dbee6ff778d952c243eb33 100644 (file)
@@ -627,31 +627,31 @@ static char *rna_def_property_get_func(FILE *f, StructRNA *srna, PropertyRNA *pr
 
                                        if (dp->dnaarraylength == 1) {
                                                if (prop->type == PROP_BOOLEAN && dp->booleanbit) {
-                                                       fprintf(f, "            values[i]= %s((data->%s & (%d<<i)) != 0);\n",
+                                                       fprintf(f, "            values[i] = %s((data->%s & (%d<<i)) != 0);\n",
                                                                (dp->booleannegative) ? "!" : "", dp->dnaname, dp->booleanbit);
                                                }
                                                else {
-                                                       fprintf(f, "            values[i]= (%s)%s((&data->%s)[i]);\n",
+                                                       fprintf(f, "            values[i] = (%s)%s((&data->%s)[i]);\n",
                                                                rna_type_type(prop), (dp->booleannegative) ? "!" : "", dp->dnaname);
                                                }
                                        }
                                        else {
                                                if (prop->type == PROP_BOOLEAN && dp->booleanbit) {
-                                                       fprintf(f, "            values[i]= %s((data->%s[i] & ", (dp->booleannegative) ? "!" : "",
+                                                       fprintf(f, "            values[i] = %s((data->%s[i] & ", (dp->booleannegative) ? "!" : "",
                                                                dp->dnaname);
                                                        rna_int_print(f, dp->booleanbit);
                                                        fprintf(f, ") != 0);\n");
                                                }
                                                else if (rna_color_quantize(prop, dp)) {
-                                                       fprintf(f, "            values[i]= (%s)(data->%s[i]*(1.0f/255.0f));\n",
+                                                       fprintf(f, "            values[i] = (%s)(data->%s[i]*(1.0f/255.0f));\n",
                                                                rna_type_type(prop), dp->dnaname);
                                                }
                                                else if (dp->dnatype) {
-                                                       fprintf(f, "            values[i]= (%s)%s(((%s*)data->%s)[i]);\n",
+                                                       fprintf(f, "            values[i] = (%s)%s(((%s*)data->%s)[i]);\n",
                                                                rna_type_type(prop), (dp->booleannegative) ? "!" : "", dp->dnatype, dp->dnaname);
                                                }
                                                else {
-                                                       fprintf(f, "            values[i]= (%s)%s((data->%s)[i]);\n",
+                                                       fprintf(f, "            values[i] = (%s)%s((data->%s)[i]);\n",
                                                                rna_type_type(prop), (dp->booleannegative) ? "!" : "", dp->dnaname);
                                                }
                                        }
@@ -839,7 +839,7 @@ static char *rna_def_property_set_func(FILE *f, StructRNA *srna, PropertyRNA *pr
                                        }
                                }
 
-                               fprintf(f, "    data->%s= value.data;\n", dp->dnaname);
+                               fprintf(f, "    data->%s = value.data;\n", dp->dnaname);
 
                        }
                        fprintf(f, "}\n\n");
@@ -882,7 +882,7 @@ static char *rna_def_property_set_func(FILE *f, StructRNA *srna, PropertyRNA *pr
                                                        fprintf(f, "            else data->%s &= ~(%d<<i);\n", dp->dnaname, dp->booleanbit);
                                                }
                                                else {
-                                                       fprintf(f, "            (&data->%s)[i]= %s", dp->dnaname, (dp->booleannegative) ? "!" : "");
+                                                       fprintf(f, "            (&data->%s)[i] = %s", dp->dnaname, (dp->booleannegative) ? "!" : "");
                                                        rna_clamp_value(f, prop, 1);
                                                }
                                        }
@@ -897,14 +897,14 @@ static char *rna_def_property_set_func(FILE *f, StructRNA *srna, PropertyRNA *pr
                                                        fprintf(f, ";\n");
                                                }
                                                else if (rna_color_quantize(prop, dp)) {
-                                                       fprintf(f, "            data->%s[i]= FTOCHAR(values[i]);\n", dp->dnaname);
+                                                       fprintf(f, "            data->%s[i] = FTOCHAR(values[i]);\n", dp->dnaname);
                                                }
                                                else {
                                                        if (dp->dnatype)
-                                                               fprintf(f, "            ((%s*)data->%s)[i]= %s", dp->dnatype, dp->dnaname,
+                                                               fprintf(f, "            ((%s*)data->%s)[i] = %s", dp->dnatype, dp->dnaname,
                                                                        (dp->booleannegative) ? "!" : "");
                                                        else
-                                                               fprintf(f, "            (data->%s)[i]= %s", dp->dnaname, (dp->booleannegative) ? "!" : "");
+                                                               fprintf(f, "            (data->%s)[i] = %s", dp->dnaname, (dp->booleannegative) ? "!" : "");
                                                        rna_clamp_value(f, prop, 1);
                                                }
                                        }
@@ -937,7 +937,7 @@ static char *rna_def_property_set_func(FILE *f, StructRNA *srna, PropertyRNA *pr
                                        }
                                        else {
                                                rna_clamp_value_range(f, prop);
-                                               fprintf(f, "    data->%s= %s", dp->dnaname, (dp->booleannegative) ? "!" : "");
+                                               fprintf(f, "    data->%s = %s", dp->dnaname, (dp->booleannegative) ? "!" : "");
                                                rna_clamp_value(f, prop, 0);
                                        }
                                }
@@ -1775,7 +1775,7 @@ static void rna_def_function_funcs(FILE *f, StructDefRNA *dsrna, FunctionDefRNA
                        else {
                                data_str = "_data";
                        }
-                       fprintf(f, "\t%s= ", dparm->prop->identifier);
+                       fprintf(f, "\t%s = ", dparm->prop->identifier);
 
                        if (!pout)
                                fprintf(f, "%s", valstr);
@@ -1785,13 +1785,13 @@ static void rna_def_function_funcs(FILE *f, StructDefRNA *dsrna, FunctionDefRNA
                }
 
                if (dparm->next)
-                       fprintf(f, "\t_data+= %d;\n", rna_parameter_size_alloc(dparm->prop));
+                       fprintf(f, "\t_data += %d;\n", rna_parameter_size_alloc(dparm->prop));
        }
 
        if (dfunc->call) {
                fprintf(f, "\t\n");
                fprintf(f, "\t");
-               if (func->c_ret) fprintf(f, "%s= ", func->c_ret->identifier);
+               if (func->c_ret) fprintf(f, "%s = ", func->c_ret->identifier);
                fprintf(f, "%s(", dfunc->call);
 
                first = 1;
@@ -1845,7 +1845,7 @@ static void rna_def_function_funcs(FILE *f, StructDefRNA *dsrna, FunctionDefRNA
                        dparm = rna_find_parameter_def(func->c_ret);
                        ptrstr = (((dparm->prop->type == PROP_POINTER) && !(dparm->prop->flag & PROP_RNAPTR)) ||
                                  (dparm->prop->arraydimension)) ? "*" : "";
-                       fprintf(f, "\t*((%s%s%s*)_retdata)= %s;\n", rna_type_struct(dparm->prop),
+                       fprintf(f, "\t*((%s%s%s*)_retdata) = %s;\n", rna_type_struct(dparm->prop),
                                rna_parameter_type_name(dparm->prop), ptrstr, func->c_ret->identifier);
                }
        }
index 7676f4a5866fa9b55e89e53fa0be93bade13f48c..008b54efb770492d43331ed3131a9afd3201a636 100644 (file)
@@ -642,7 +642,7 @@ int RNA_struct_contains_property(PointerRNA *ptr, PropertyRNA *prop_test)
 
        RNA_PROP_BEGIN(ptr, itemptr, iterprop)
        {
-               /* PropertyRNA *prop= itemptr.data; */
+               /* PropertyRNA *prop = itemptr.data; */
                if (prop_test == (PropertyRNA *)itemptr.data) {
                        found = TRUE;
                        break;
@@ -2561,7 +2561,7 @@ void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr
 
        BLI_assert(RNA_property_type(prop) == PROP_POINTER);
 
-       if ((/*idprop=*/ rna_idproperty_check(&prop, ptr))) {
+       if ((/*idprop = */ rna_idproperty_check(&prop, ptr))) {
                /* not supported */
                /* rna_idproperty_touch(idprop); */
        }
@@ -2579,7 +2579,7 @@ void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr
 
 PointerRNA RNA_property_pointer_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop))
 {
-       /*PointerPropertyRNA *pprop= (PointerPropertyRNA*)prop; */
+       /*PointerPropertyRNA *pprop = (PointerPropertyRNA*)prop; */
 
        /* BLI_assert(RNA_property_type(prop) == PROP_POINTER); */
 
@@ -2718,7 +2718,7 @@ int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
 void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
 {
        IDProperty *idprop;
-/*     CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop; */
+/*     CollectionPropertyRNA *cprop = (CollectionPropertyRNA*)prop; */
 
        BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
 
@@ -2777,7 +2777,7 @@ void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA
 int RNA_property_collection_remove(PointerRNA *ptr, PropertyRNA *prop, int key)
 {
        IDProperty *idprop;
-/*     CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop; */
+/*     CollectionPropertyRNA *cprop = (CollectionPropertyRNA*)prop; */
 
        BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
 
index fa1af821a2dce59336c6962308e297f12d91bbc6..48ffed80e418a243f4ab622b3cfd1b447c06ea6a 100644 (file)
@@ -293,8 +293,8 @@ int node_group_ungroup(bNodeTree *ntree, bNode *gnode)
                BLI_remlink(&wgroup->nodes, node);
                BLI_addtail(&ntree->nodes, node);
                
-               node->locx+= gnode->locx;
-               node->locy+= gnode->locy;
+               node->locx += gnode->locx;
+               node->locy += gnode->locy;
                
                node->flag |= NODE_SELECT;
        }
index f97391c0d6ee368fcf9b4cd1564a84977728b2d3..039f3bff4d1cae20f25bdc4241035f1fb775c66a 100644 (file)
@@ -300,7 +300,7 @@ void WM_timecursor(wmWindow *win, int nr)
  * (3 bytes = 17 bits rounded up to nearest whole byte).  Pad extra bits
  * in mask with 0's.
  *
- * Setting big_bm=NULL disables the large version of the cursor.
+ * Setting big_bm = NULL disables the large version of the cursor.
  *
  * *******************************************************************
  *
index fccd3b387f9b72d29556c2046ab745acb811adff..5f2d9c6fb54c822a558d39024c31a0b9ba7df448 100644 (file)
@@ -831,7 +831,7 @@ static int wm_operator_invoke(bContext *C, wmOperatorType *ot, wmEvent *event, P
                return WM_operator_poll(C, ot);
 
        if (WM_operator_poll(C, ot)) {
-               wmOperator *op = wm_operator_create(wm, ot, properties, reports); /* if reports==NULL, theyll be initialized */
+               wmOperator *op = wm_operator_create(wm, ot, properties, reports); /* if reports == NULL, they'll be initialized */
                const short is_nested_call = (wm->op_undo_depth != 0);
                
                /* initialize setting from previous run */
index 14a25cc13e053d743d56508d2085ca60729bf4ab..e4b7d1c5d5fccf18cd5e2a035c44071bbe83eebd 100644 (file)
@@ -331,7 +331,7 @@ void wm_gesture_draw(wmWindow *win)
                
                if (gt->type == WM_GESTURE_RECT)
                        wm_gesture_draw_rect(gt);
-//             else if (gt->type==WM_GESTURE_TWEAK)
+//             else if (gt->type == WM_GESTURE_TWEAK)
 //                     wm_gesture_draw_line(gt);
                else if (gt->type == WM_GESTURE_CIRCLE)
                        wm_gesture_draw_circle(gt);
index 8ce882e887ebcd2d58a93f4b01068c42e0f91f22..2cd955e9ee9cf1486d1aea32af20ee0d8710a564 100644 (file)
@@ -1015,8 +1015,8 @@ static void dialog_exec_cb(bContext *C, void *arg1, void *arg2)
        WM_operator_call(C, data->op);
 
        /* let execute handle freeing it */
-       //data->free_op= FALSE;
-       //data->op= NULL;
+       //data->free_op = FALSE;
+       //data->op = NULL;
 
        /* in this case, wm_operator_ui_popup_cancel wont run */
        MEM_freeN(data);
@@ -1314,7 +1314,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *UNUSED(ar
                menu.type = mt;
                mt->draw(C, &menu);
 
-//             wmWindowManager *wm= CTX_wm_manager(C);
+//             wmWindowManager *wm = CTX_wm_manager(C);
 //             uiItemM(layout, C, "USERPREF_MT_keyconfigs", U.keyconfigstr, ICON_NONE);
        }
        
index 563eef8304c624f4b66b54f1cb1697762f6ce087..cf983f7795f914c8424273c9d6e9b3f81ebdbda3 100644 (file)
@@ -149,7 +149,7 @@ void wm_subwindow_getmatrix(wmWindow *win, int swinid, float mat[][4])
 }
 
 /* always sets pixel-precise 2D window/view matrices */
-/* coords is in whole pixels. xmin = 15, xmax= 16: means window is 2 pix big */
+/* coords is in whole pixels. xmin = 15, xmax = 16: means window is 2 pix big */
 int wm_subwindow_open(wmWindow *win, rcti *winrct)
 {
        wmSubWindow *swin;
index e6eff908e33d28e8b9bf393decc066d73241189a..7361e74755e21e6263273fefc9b20cd818ac9008 100644 (file)
@@ -622,7 +622,7 @@ void wm_window_make_drawable(bContext *C, wmWindow *win)
        wmWindowManager *wm = CTX_wm_manager(C);
 
        if (win != wm->windrawable && win->ghostwin) {
-//             win->lmbut= 0;  /* keeps hanging when mousepressed while other window opened */
+//             win->lmbut = 0; /* keeps hanging when mousepressed while other window opened */
                
                wm->windrawable = win;
                if (G.debug & G_DEBUG_EVENTS) {