~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to add_window.c

  • Committer: Matthew Fuller
  • Date: 2016-06-10 11:49:43 UTC
  • mto: This revision was merged to the branch mainline in revision 495.
  • Revision ID: fullermd@over-yonder.net-20160610114943-pv9au9ojwdq4eq32
Mechanical replacement of inline "(sometype *)0" constructs with NULL,
like pointers should be.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1456
1456
        /* wait until the window is iconified and the icon window is mapped
1457
1457
         * before creating the icon window
1458
1458
         */
1459
 
        tmp_win->icon = (Icon *) 0;
1460
 
        tmp_win->iconslist = (name_list *) 0;
 
1459
        tmp_win->icon = NULL;
 
1460
        tmp_win->iconslist = NULL;
1461
1461
 
1462
1462
        if(!tmp_win->isiconmgr) {
1463
1463
                GrabButtons(tmp_win);
2164
2164
        }
2165
2165
        w = tmp_win->frame_width;
2166
2166
        h = tmp_win->frame_height;
2167
 
        we = (WindowEntry *) 0;
 
2167
        we = NULL;
2168
2168
        for(wr = wl->FirstWindowRegion; wr; wr = wr->next) {
2169
2169
                if(LookInList(wr->clientlist, tmp_win->full_name, &tmp_win->class)) {
2170
2170
                        for(we = wr->entries; we; we = we->next) {
2180
2180
                        }
2181
2181
                }
2182
2182
        }
2183
 
        tmp_win->wr = (WindowRegion *) 0;
 
2183
        tmp_win->wr = NULL;
2184
2184
        if(!we) {
2185
2185
                return false;
2186
2186
        }
2263
2263
                        }
2264
2264
                }
2265
2265
        }
2266
 
        return (WindowEntry *) 0;
 
2266
        return NULL;
2267
2267
}
2268
2268
 
2269
2269
static WindowEntry *prevWindowEntry(WindowEntry *we, WindowRegion *wr)
2302
2302
        if(!Scr->FirstWindowRegion) {
2303
2303
                return;
2304
2304
        }
2305
 
        we = (WindowEntry *) 0;
 
2305
        we = NULL;
2306
2306
        for(wl = Scr->workSpaceMgr.workSpaceList; wl != NULL; wl = wl->next) {
2307
2307
                we = findWindowEntry(wl, tmp_win, &wr);
2308
2308
                if(we) {