OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #ifdef DEBUG | |
6 static const char CVS_ID[] = "@(#) $RCSfile$ $Revision$ $Date$"; | |
7 #endif /* DEBUG */ | |
8 | |
9 /* | 5 /* |
10 * list.c | 6 * list.c |
11 * | 7 * |
12 * This contains the implementation of NSS's thread-safe linked list. | 8 * This contains the implementation of NSS's thread-safe linked list. |
13 */ | 9 */ |
14 | 10 |
15 #ifndef BASE_H | 11 #ifndef BASE_H |
16 #include "base.h" | 12 #include "base.h" |
17 #endif /* BASE_H */ | 13 #endif /* BASE_H */ |
18 | 14 |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 return node->data; | 392 return node->data; |
397 } | 393 } |
398 | 394 |
399 NSS_IMPLEMENT PRStatus | 395 NSS_IMPLEMENT PRStatus |
400 nssListIterator_Finish(nssListIterator *iter) | 396 nssListIterator_Finish(nssListIterator *iter) |
401 { | 397 { |
402 iter->current = iter->list->head; | 398 iter->current = iter->list->head; |
403 return (iter->lock) ? PZ_Unlock(iter->lock) : PR_SUCCESS; | 399 return (iter->lock) ? PZ_Unlock(iter->lock) : PR_SUCCESS; |
404 } | 400 } |
405 | 401 |
OLD | NEW |