aboutsummaryrefslogtreecommitdiff
path: root/libcpp/internal.h
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/internal.h
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/internal.h')
-rw-r--r--libcpp/internal.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h
index 0a7eb10..53b02f8 100644
--- a/libcpp/internal.h
+++ b/libcpp/internal.h
@@ -560,11 +560,6 @@ extern const char *_cpp_default_encoding (void);
/* Utility routines and macros. */
#define DSC(str) (const uchar *)str, sizeof str - 1
-#define xnew(T) (T *) xmalloc (sizeof(T))
-#define xcnew(T) (T *) xcalloc (1, sizeof(T))
-#define xnewvec(T, N) (T *) xmalloc (sizeof(T) * (N))
-#define xcnewvec(T, N) (T *) xcalloc (N, sizeof(T))
-#define xobnew(O, T) (T *) obstack_alloc (O, sizeof(T))
/* These are inline functions instead of macros so we can get type
checking. */