| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2007,2008,2009 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009 Red Hat, Inc. |
| 3 * Copyright © 2011,2012 Google, Inc. | 3 * Copyright © 2011,2012 Google, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 return; | 682 return; |
| 683 | 683 |
| 684 fprintf (stderr, "%-10s", what ? what : ""); | 684 fprintf (stderr, "%-10s", what ? what : ""); |
| 685 | 685 |
| 686 if (obj) | 686 if (obj) |
| 687 fprintf (stderr, "(%0*lx) ", (unsigned int) (2 * sizeof (void *)), (unsigned
long) obj); | 687 fprintf (stderr, "(%0*lx) ", (unsigned int) (2 * sizeof (void *)), (unsigned
long) obj); |
| 688 else | 688 else |
| 689 fprintf (stderr, " %*s ", (unsigned int) (2 * sizeof (void *)), ""); | 689 fprintf (stderr, " %*s ", (unsigned int) (2 * sizeof (void *)), ""); |
| 690 | 690 |
| 691 if (indented) { | 691 if (indented) { |
| 692 /* One may want to add ASCII version of these. See: | |
| 693 * https://bugs.freedesktop.org/show_bug.cgi?id=50970 */ | |
| 694 #define VBAR "\342\224\202" /* U+2502 BOX DRAWINGS LIGHT VERTICAL */ | 692 #define VBAR "\342\224\202" /* U+2502 BOX DRAWINGS LIGHT VERTICAL */ |
| 695 #define VRBAR "\342\224\234" /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT
*/ | 693 #define VRBAR "\342\224\234" /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT
*/ |
| 696 #define DLBAR "\342\225\256" /* U+256E BOX DRAWINGS LIGHT ARC DOWN AND LEFT *
/ | 694 #define DLBAR "\342\225\256" /* U+256E BOX DRAWINGS LIGHT ARC DOWN AND LEFT *
/ |
| 697 #define ULBAR "\342\225\257" /* U+256F BOX DRAWINGS LIGHT ARC UP AND LEFT */ | 695 #define ULBAR "\342\225\257" /* U+256F BOX DRAWINGS LIGHT ARC UP AND LEFT */ |
| 698 #define LBAR "\342\225\264" /* U+2574 BOX DRAWINGS LIGHT LEFT */ | 696 #define LBAR "\342\225\264" /* U+2574 BOX DRAWINGS LIGHT LEFT */ |
| 699 static const char bars[] = VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR
VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR
VBAR VBAR VBAR VBAR; | 697 static const char bars[] = |
| 698 VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
| 699 VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
| 700 VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
| 701 VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR |
| 702 VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR; |
| 700 fprintf (stderr, "%2u %s" VRBAR "%s", | 703 fprintf (stderr, "%2u %s" VRBAR "%s", |
| 701 level, | 704 level, |
| 702 » bars + sizeof (bars) - 1 - MIN ((unsigned int) sizeof (bars), (unsi
gned int) (sizeof (VBAR) - 1) * level), | 705 » bars + sizeof (bars) - 1 - MIN ((unsigned int) sizeof (bars) - 1, (
unsigned int) (sizeof (VBAR) - 1) * level), |
| 703 level_dir ? (level_dir > 0 ? DLBAR : ULBAR) : LBAR); | 706 level_dir ? (level_dir > 0 ? DLBAR : ULBAR) : LBAR); |
| 704 } else | 707 } else |
| 705 fprintf (stderr, " " VRBAR LBAR); | 708 fprintf (stderr, " " VRBAR LBAR); |
| 706 | 709 |
| 707 _hb_print_func (func); | 710 _hb_print_func (func); |
| 708 | 711 |
| 709 if (message) | 712 if (message) |
| 710 { | 713 { |
| 711 fprintf (stderr, ": "); | 714 fprintf (stderr, ": "); |
| 712 vfprintf (stderr, message, ap); | 715 vfprintf (stderr, message, ap); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 if (unlikely (!_hb_options.i)) | 1015 if (unlikely (!_hb_options.i)) |
| 1013 _hb_options_init (); | 1016 _hb_options_init (); |
| 1014 | 1017 |
| 1015 return _hb_options.opts; | 1018 return _hb_options.opts; |
| 1016 } | 1019 } |
| 1017 | 1020 |
| 1018 /* Size signifying variable-sized array */ | 1021 /* Size signifying variable-sized array */ |
| 1019 #define VAR 1 | 1022 #define VAR 1 |
| 1020 | 1023 |
| 1021 #endif /* HB_PRIVATE_HH */ | 1024 #endif /* HB_PRIVATE_HH */ |
| OLD | NEW |