if ((str = part[4]) != NULL) {
if ((str = part[5]) != NULL) {
void parse_wireframe_str(char *wf) {	char *p, *str;	int i;	char *part[10];	for (i=0; i<10; i++) {		part[i] = NULL;	}	if (wf == NULL || *wf == '\0') {		return;	}	str = strdup(wf);	/* leading ",", make it start with ignorable string "z" */	if (*str == ',') {		char *tmp = (char *) malloc(strlen(str)+2);			strcpy(tmp, "z");		strcat(tmp, str);		free(str);		str = tmp;	}	p = strtok(str, ",");	i = 0;	while (p) {		part[i++] = strdup(p);		p = strtok(NULL, ",");	}	free(str);	/* Wireframe shade, color, RGB: */	if ((str = part[0]) != NULL) {		unsigned long n;		int r, g, b, ok = 0;		XColor cdef;		Colormap cmap;		if (dpy && (bpp == 32 || bpp == 16)) {		 	cmap = DefaultColormap (dpy, scr);			if (XParseColor(dpy, cmap, str, &cdef) &&			    XAllocColor(dpy, cmap, &cdef)) {				r = cdef.red   >> 8;				g = cdef.green >> 8;				b = cdef.blue  >> 8;				if (r == 0 && g == 0) {					g = 1;	/* need to be > 255 */				}				n = 0;				n |= (r << main_red_shift);				n |= (g << main_green_shift);				n |= (b << main_blue_shift);				wireframe_shade = n;				ok = 1;			}		}		if (ok) {			;		} else if (sscanf(str, "0x%lx", &n) == 1) {			wireframe_shade = n;			} else if (sscanf(str, "%ld", &n) == 1) {			wireframe_shade = n;			} else if (sscanf(str, "%lx", &n) == 1) {			wireframe_shade = n;			}		free(str);	}	/* linewidth: # of pixels wide for the wireframe lines */	if ((str = part[1]) != NULL) {		int n;		if (sscanf(str, "%d", &n) == 1) {			wireframe_lw = n;				if (wireframe_lw < 1) {				wireframe_lw = 1; 			}			if (wireframe_lw > LW_MAX) {				wireframe_lw = LW_MAX; 			}		}		free(str);	}	/* percentage cutoff for opaque move/resize (like WM's) */	if ((str = part[2]) != NULL) {		if (*str == '\0') {			;		} else if (strchr(str, '.')) {			wireframe_frac = atof(str);		} else {			wireframe_frac = ((double) atoi(str))/100.0;		}		free(str);	}	/*	 * Top, Bottom, Left, Right tolerances to guess the wm frame is	 * being grabbed (Top is traditionally bigger, i.e. titlebar):	 */	if ((str = part[3]) != NULL) {		int t, b, l, r;		if (sscanf(str, "%d+%d+%d+%d", &t, &b, &l, &r) == 4) {			wireframe_top   = t;			wireframe_bot   = b;			wireframe_left  = l;			wireframe_right = r;		}		free(str);	}	/* check_wireframe() timing heuristics. */	if ((str = part[4]) != NULL) {		double t1, t2, t3, t4;		if (sscanf(str, "%lf+%lf+%lf+%lf", &t1, &t2, &t3, &t4) == 4) {			wireframe_t1 = t1;			wireframe_t2 = t2;			wireframe_t3 = t3;			wireframe_t4 = t4;		}		free(str);	}}