| 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 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | 5 |
| 6 #include "primpl.h" | 6 #include "primpl.h" |
| 7 | 7 |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #ifdef XP_BEOS | 10 #ifdef XP_BEOS |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 prev->next = next->next; | 1029 prev->next = next->next; |
| 1030 goto freeLib; | 1030 goto freeLib; |
| 1031 } | 1031 } |
| 1032 prev = next; | 1032 prev = next; |
| 1033 next = next->next; | 1033 next = next->next; |
| 1034 } | 1034 } |
| 1035 /* | 1035 /* |
| 1036 * fail (the library is not on the _pr_loadmap list), | 1036 * fail (the library is not on the _pr_loadmap list), |
| 1037 * but don't wipe out an error from dlclose/shl_unload. | 1037 * but don't wipe out an error from dlclose/shl_unload. |
| 1038 */ | 1038 */ |
| 1039 PR_ASSERT(!"_pr_loadmap and lib->refCount inconsistent"); | 1039 PR_NOT_REACHED("_pr_loadmap and lib->refCount inconsistent"); |
| 1040 if (result == 0) { | 1040 if (result == 0) { |
| 1041 PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); | 1041 PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); |
| 1042 status = PR_FAILURE; | 1042 status = PR_FAILURE; |
| 1043 } | 1043 } |
| 1044 } | 1044 } |
| 1045 /* | 1045 /* |
| 1046 * We free the PRLibrary structure whether dlclose/shl_unload | 1046 * We free the PRLibrary structure whether dlclose/shl_unload |
| 1047 * succeeds or not. | 1047 * succeeds or not. |
| 1048 */ | 1048 */ |
| 1049 | 1049 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1599 result = PR_Malloc(strlen(module_name)+1); | 1599 result = PR_Malloc(strlen(module_name)+1); |
| 1600 if (result != NULL) { | 1600 if (result != NULL) { |
| 1601 strcpy(result, module_name); | 1601 strcpy(result, module_name); |
| 1602 } | 1602 } |
| 1603 return result; | 1603 return result; |
| 1604 #else | 1604 #else |
| 1605 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); | 1605 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); |
| 1606 return NULL; | 1606 return NULL; |
| 1607 #endif | 1607 #endif |
| 1608 } | 1608 } |
| OLD | NEW |