cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / third_party / talloc / compat / talloc_compat1.c
blob519e8c3a83338a5f8f0349671f5ed0e0291c82dc
1 /*
2 Samba trivial allocation library - compat functions
4 Copyright (C) Stefan Metzmacher 2009
6 ** NOTE! The following LGPL license applies to the talloc
7 ** library. This does NOT imply that all of Samba is released
8 ** under the LGPL
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 3 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, see <http://www.gnu.org/licenses/>.
25 * This file contains only function to build a
26 * compat talloc.so.1 library on top of talloc.so.2
29 #include "replace.h"
30 #include "talloc.h"
32 void *_talloc_reference(const void *context, const void *ptr);
33 void *_talloc_reference(const void *context, const void *ptr) {
34 return _talloc_reference_loc(context, ptr,
35 "Called from talloc compat1 "
36 "_talloc_reference");
39 void *_talloc_steal(const void *new_ctx, const void *ptr);
40 void *_talloc_steal(const void *new_ctx, const void *ptr)
42 return talloc_reparent(talloc_parent(ptr), new_ctx, ptr);
45 #undef talloc_free
46 int talloc_free(void *ptr);
47 int talloc_free(void *ptr)
49 return talloc_unlink(talloc_parent(ptr), ptr);