Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
5 * Hewlett-Packard Company
7 * Copyright (c) 1996,1997
8 * Silicon Graphics Computer Systems, Inc.
11 * Moscow Center for SPARC Technology
16 * This material is provided "as is", with absolutely no warranty expressed
17 * or implied. Any use is at your own risk.
19 * Permission to use or copy this software for any purpose is hereby granted
20 * without fee, provided the above notices are retained on all copies.
21 * Permission to modify the code and to distribute modified code is granted,
22 * provided the above notices are retained, and a notice that the code was
23 * modified is included with the above copyright notice.
26 #ifndef _STLP_TEMPBUF_C
27 #define _STLP_TEMPBUF_C
29 #ifndef _STLP_INTERNAL_TEMPBUF_H
30 # include <stl/_tempbuf.h>
36 pair<_Tp*, ptrdiff_t> _STLP_CALL
37 __get_temporary_buffer(ptrdiff_t __len, _Tp*)
39 if (__len > ptrdiff_t(INT_MAX / sizeof(_Tp)))
40 __len = INT_MAX / sizeof(_Tp);
43 _Tp* __tmp = (_Tp*) malloc((size_t)__len * sizeof(_Tp));
45 return pair<_Tp*, ptrdiff_t>(__tmp, __len);
49 return pair<_Tp*, ptrdiff_t>((_Tp*)0, 0);
53 #endif /* _STLP_TEMPBUF_C */