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

Comparing rxvt-unicode/src/xdefaults.C (file contents):
Revision 1.140 by root, Sat May 30 08:51:23 2009 UTC vs.
Revision 1.141 by root, Sat Dec 26 10:24:04 2009 UTC

401 { 401 {
402 int len = 0; 402 int len = 0;
403 403
404 if (optList[i].arg) 404 if (optList[i].arg)
405 len = strlen (optList[i].arg) + 1; 405 len = strlen (optList[i].arg) + 1;
406#ifdef DEBUG_STRICT
407 assert (optList[i].opt != NULL); 406 assert (optList[i].opt != NULL);
408#endif
409 len += 4 + strlen (optList[i].opt) + (optList_isBool (i) ? 2: 0); 407 len += 4 + strlen (optList[i].opt) + (optList_isBool (i) ? 2: 0);
410 col += len; 408 col += len;
411 if (col > 79) 409 if (col > 79)
412 { 410 {
413 /* assume regular width */ 411 /* assume regular width */
427 rxvt_log (" [options] [-e command args]\n\nwhere options include:\n"); 425 rxvt_log (" [options] [-e command args]\n\nwhere options include:\n");
428 426
429 for (i = 0; i < optList_size; i++) 427 for (i = 0; i < optList_size; i++)
430 if (optList[i].desc != NULL) 428 if (optList[i].desc != NULL)
431 { 429 {
432#ifdef DEBUG_STRICT
433 assert (optList[i].opt != NULL); 430 assert (optList[i].opt != NULL);
434#endif
435 rxvt_log (" %s%s %-*s%s%s\n", 431 rxvt_log (" %s%s %-*s%s%s\n",
436 (optList_isBool (i) ? "-/+" : "-"), optList[i].opt, 432 (optList_isBool (i) ? "-/+" : "-"), optList[i].opt,
437 (INDENT - strlen (optList[i].opt) 433 (INDENT - strlen (optList[i].opt)
438 + (optList_isBool (i) ? 0 : 2)), 434 + (optList_isBool (i) ? 0 : 2)),
439 (optList[i].arg ? optList[i].arg : ""), 435 (optList[i].arg ? optList[i].arg : ""),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines