aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpperror.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpperror.c')
-rw-r--r--gcc/cpperror.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c
index 6692166..edf1992 100644
--- a/gcc/cpperror.c
+++ b/gcc/cpperror.c
@@ -458,3 +458,11 @@ cpp_notice_from_errno (pfile, name)
name = "stdout";
cpp_notice (pfile, "%s: %s", name, xstrerror (errno));
}
+
+const char *
+cpp_type2name (type)
+ enum cpp_ttype type;
+{
+ return (const char *) _cpp_token_spellings[type].name;
+}
+