-static void print_char_obstack(wchar_rep_t c)
-{
- const unsigned tc = (unsigned) c;
- if (tc < 0x80) {
- obstack_1grow(obst, tc);
- } else if (tc < 0x800) {
- obstack_1grow(obst, 0xC0 | (tc >> 6));
- obstack_1grow(obst, 0x80 | (tc & 0x3F));
- } else if (tc < 0x10000) {
- obstack_1grow(obst, 0xE0 | ( tc >> 12));
- obstack_1grow(obst, 0x80 | ((tc >> 6) & 0x3F));
- obstack_1grow(obst, 0x80 | ( tc & 0x3F));
- } else {
- obstack_1grow(obst, 0xF0 | ( tc >> 18));
- obstack_1grow(obst, 0x80 | ((tc >> 12) & 0x3F));
- obstack_1grow(obst, 0x80 | ((tc >> 6) & 0x3F));
- obstack_1grow(obst, 0x80 | ( tc & 0x3F));
- }
-}
-