* cp-name-parser.y (parse_escape): Revert previous change. Return

the input character by default.
This commit is contained in:
Daniel Jacobowitz 2005-05-28 16:48:58 +00:00
parent c6826062e5
commit 03f4d4c7dc
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
* cp-name-parser.y (parse_escape): Revert previous change. Return
the input character by default.
2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
* dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.

View File

@ -1440,7 +1440,7 @@ c_parse_backslash (int host_char, int *target_char)
static int
parse_escape (const char **string_ptr)
{
int target_char = 0;
int target_char;
int c = *(*string_ptr)++;
if (c_parse_backslash (c, &target_char))
return target_char;
@ -1498,7 +1498,7 @@ parse_escape (const char **string_ptr)
return i;
}
default:
return target_char;
return c;
}
}