| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 4 */ | |
| 5 | 4 |
| 6 | 5 |
| 7 /* XRay string pool */ | 6 /* XRay string pool */ |
| 8 | 7 |
| 9 /* String pool holds a large pile of strings. */ | 8 /* String pool holds a large pile of strings. */ |
| 10 /* It is up to higher level data structures to avoid duplicates. */ | 9 /* It is up to higher level data structures to avoid duplicates. */ |
| 11 /* It is up to higher level data structures to provide fast lookups. */ | 10 /* It is up to higher level data structures to provide fast lookups. */ |
| 12 | 11 |
| 13 #include <stdlib.h> | 12 #include <stdlib.h> |
| 14 #include <string.h> | 13 #include <string.h> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 while (NULL != n) { | 82 while (NULL != n) { |
| 84 struct XRayStringPoolNode* c = n; | 83 struct XRayStringPoolNode* c = n; |
| 85 n = n->next; | 84 n = n->next; |
| 86 XRayFree(c); | 85 XRayFree(c); |
| 87 } | 86 } |
| 88 XRayFree(pool); | 87 XRayFree(pool); |
| 89 } | 88 } |
| 90 | 89 |
| 91 #endif /* XRAY */ | 90 #endif /* XRAY */ |
| 92 | 91 |
| OLD | NEW |