1 |
/* An abstract string datatype. |
/* An abstract string datatype. |
2 |
Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc. |
3 |
Contributed by Mark Mitchell (mark@markmitchell.com). |
Contributed by Mark Mitchell (mark@markmitchell.com). |
4 |
|
|
5 |
This file is part of GNU CC. |
This file is part of GNU CC. |
45 |
#include "libiberty.h" |
#include "libiberty.h" |
46 |
#include "dyn-string.h" |
#include "dyn-string.h" |
47 |
|
|
|
/* If this file is being compiled for inclusion in the C++ runtime |
|
|
library, as part of the demangler implementation, we don't want to |
|
|
abort if an allocation fails. Instead, percolate an error code up |
|
|
through the call chain. */ |
|
|
|
|
|
#if defined(IN_LIBGCC2) || defined(IN_GLIBCPP_V3) |
|
|
#define RETURN_ON_ALLOCATION_FAILURE |
|
|
#endif |
|
|
|
|
48 |
/* Performs in-place initialization of a dyn_string struct. This |
/* Performs in-place initialization of a dyn_string struct. This |
49 |
function can be used with a dyn_string struct on the stack or |
function can be used with a dyn_string struct on the stack or |
50 |
embedded in another object. The contents of of the string itself |
embedded in another object. The contents of of the string itself |