OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
4 * | 4 * |
5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
9 * | 9 * |
10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 /* | 101 /* |
102 ** Friend functions used by the PL_ARENA_*() macros. | 102 ** Friend functions used by the PL_ARENA_*() macros. |
103 **/ | 103 **/ |
104 PR_EXTERN(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb); | 104 PR_EXTERN(void *) PL_ArenaAllocate(PLArenaPool *pool, PRUint32 nb); |
105 | 105 |
106 PR_EXTERN(void *) PL_ArenaGrow( | 106 PR_EXTERN(void *) PL_ArenaGrow( |
107 PLArenaPool *pool, void *p, PRUint32 size, PRUint32 incr); | 107 PLArenaPool *pool, void *p, PRUint32 size, PRUint32 incr); |
108 | 108 |
109 PR_EXTERN(void) PL_ArenaRelease(PLArenaPool *pool, char *mark); | 109 PR_EXTERN(void) PL_ArenaRelease(PLArenaPool *pool, char *mark); |
110 | 110 |
| 111 /* |
| 112 ** memset contents of all arenas in pool to pattern |
| 113 */ |
| 114 PR_EXTERN(void) PL_ClearArenaPool(PLArenaPool *pool, PRInt32 pattern); |
| 115 |
111 PR_END_EXTERN_C | 116 PR_END_EXTERN_C |
112 | 117 |
113 #endif /* defined(PLARENAS_H) */ | 118 #endif /* defined(PLARENAS_H) */ |
114 | 119 |
115 /* plarenas */ | 120 /* plarenas */ |
OLD | NEW |