aboutsummaryrefslogtreecommitdiff
path: root/libcpp/lex.c
diff options
context:
space:
mode:
authorBernardo Innocenti <bernie@develer.com>2004-07-24 20:04:42 +0200
committerBernardo Innocenti <bernie@gcc.gnu.org>2004-07-24 20:04:42 +0200
commit72bb2c39ce1c3506d94f7e2e7c2db84ee8535add (patch)
tree30cd686465d5c32ae3feab21b35a78240675f666 /libcpp/lex.c
parent5673cd61cee5815e83181a8145e541d091329adf (diff)
downloadgcc-72bb2c39ce1c3506d94f7e2e7c2db84ee8535add.zip
gcc-72bb2c39ce1c3506d94f7e2e7c2db84ee8535add.tar.gz
gcc-72bb2c39ce1c3506d94f7e2e7c2db84ee8535add.tar.bz2
internal.h (xnew, [...]): Remove.
* internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. * directives.c: Use XNEW-family macros from libiberty. * lex.c: Likewise. * macro.c: Likewise. * cpplib.h (cpp_deps_style): Export enum with name. From-SVN: r85121
Diffstat (limited to 'libcpp/lex.c')
-rw-r--r--libcpp/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c
index 7eafb13..914703f 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -662,7 +662,7 @@ save_comment (cpp_reader *pfile, cpp_token *token, const unsigned char *from,
void
_cpp_init_tokenrun (tokenrun *run, unsigned int count)
{
- run->base = xnewvec (cpp_token, count);
+ run->base = XNEWVEC (cpp_token, count);
run->limit = run->base + count;
run->next = NULL;
}
@@ -673,7 +673,7 @@ next_tokenrun (tokenrun *run)
{
if (run->next == NULL)
{
- run->next = xnew (tokenrun);
+ run->next = XNEW (tokenrun);
run->next->prev = run;
_cpp_init_tokenrun (run->next, 250);
}