ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.345 by root, Sat Jan 8 10:17:43 2011 UTC vs.
Revision 1.347 by sf-exg, Mon Jan 10 14:07:19 2011 UTC

956void 956void
957rxvt_term::set_colorfgbg () 957rxvt_term::set_colorfgbg ()
958{ 958{
959 unsigned int i; 959 unsigned int i;
960 const char *xpmb = ""; 960 const char *xpmb = "";
961 char fstr[sizeof ("default") + 1], bstr[sizeof ("default") + 1]; 961 char fstr[] = "default";
962 char bstr[] = "default";
962 963
963 strcpy (fstr, "default");
964 strcpy (bstr, "default");
965 for (i = Color_Black; i <= Color_White; i++) 964 for (i = Color_Black; i <= Color_White; i++)
966 if (pix_colors[Color_fg] == pix_colors[i]) 965 if (pix_colors[Color_fg] == pix_colors[i])
967 { 966 {
968 sprintf (fstr, "%d", i - Color_Black); 967 sprintf (fstr, "%d", i - Color_Black);
969 break; 968 break;
1354 p = pet[pi]; 1353 p = pet[pi];
1355 1354
1356 if (!p) 1355 if (!p)
1357 continue; 1356 continue;
1358 1357
1359 s = rxvt_splitcommastring (p); 1358 s = rxvt_strsplit (',', p);
1360 1359
1361 for (i = found = 0; !found && s[i]; i++) 1360 for (i = found = 0; !found && s[i]; i++)
1362 { 1361 {
1363 if (!strcmp (s[i], "OverTheSpot")) 1362 if (!strcmp (s[i], "OverTheSpot"))
1364 input_style = XIMPreeditPosition | XIMStatusNothing; 1363 input_style = XIMPreeditPosition | XIMStatusNothing;
1376 input_style = XIMPreeditNothing | XIMStatusNothing; 1375 input_style = XIMPreeditNothing | XIMStatusNothing;
1377 1376
1378 for (j = 0; j < xim_styles->count_styles; j++) 1377 for (j = 0; j < xim_styles->count_styles; j++)
1379 if (input_style == xim_styles->supported_styles[j]) 1378 if (input_style == xim_styles->supported_styles[j])
1380 { 1379 {
1381 rxvt_freecommastring (s); 1380 rxvt_free_strsplit (s);
1382 1381
1383 found = 1; 1382 found = 1;
1384 goto foundpet; 1383 goto foundpet;
1385 } 1384 }
1386 1385
1387 } 1386 }
1388 1387
1389 rxvt_freecommastring (s); 1388 rxvt_free_strsplit (s);
1390 } 1389 }
1391 1390
1392foundpet: 1391foundpet:
1393 1392
1394 XFree (xim_styles); 1393 XFree (xim_styles);
1550 p = rs[Rs_inputMethod]; 1549 p = rs[Rs_inputMethod];
1551 if (p && *p) 1550 if (p && *p)
1552 { 1551 {
1553 bool found = false; 1552 bool found = false;
1554 1553
1555 s = rxvt_splitcommastring (p); 1554 s = rxvt_strsplit (',', p);
1556 1555
1557 for (i = 0; s[i]; i++) 1556 for (i = 0; s[i]; i++)
1558 { 1557 {
1559 if (*s[i]) 1558 if (*s[i])
1560 { 1559 {
1566 break; 1565 break;
1567 } 1566 }
1568 } 1567 }
1569 } 1568 }
1570 1569
1571 rxvt_freecommastring (s); 1570 rxvt_free_strsplit (s);
1572 1571
1573 if (found) 1572 if (found)
1574 goto done; 1573 goto done;
1575 } 1574 }
1576 1575

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines