summaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r--gcc/cpplex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index f57d482fc4b..1bfca20092c 100644
--- a/gcc/cpplex.c
+++ b/gcc/cpplex.c
@@ -933,10 +933,9 @@ next_tokenrun (run)
}
/* Lex a token into RESULT (external interface). */
-void
-_cpp_lex_token (pfile, dest)
+const cpp_token *
+_cpp_lex_token (pfile)
cpp_reader *pfile;
- cpp_token *dest;
{
cpp_token *result;
@@ -979,7 +978,7 @@ _cpp_lex_token (pfile, dest)
break;
}
- *dest = *result;
+ return result;
}
/* Lex a token into RESULT. When meeting a newline, returns CPP_EOF