diff options
author | wtc%netscape.com <devnull@localhost> | 2000-01-28 00:57:22 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2000-01-28 00:57:22 +0000 |
commit | 0270d6f2ddd3bba2ade6b94f39dea91198d1de60 (patch) | |
tree | 85bb370e18820fdbac94ba27b88af87a0d5db793 | |
parent | 58c5ca2ca734d15814d8ae7deef318fb1484e2cd (diff) | |
download | nspr-hg-0270d6f2ddd3bba2ade6b94f39dea91198d1de60.tar.gz |
Bugzilla bug #19150: removed prlink_mac.h and the mac-specific
PR_LoadIndexedFragment and PR_LoadNamedFragment functions.
Modified files: pr/include/MANIFEST, prlink.c
Removed file: prlink_mac.h
-rw-r--r-- | pr/include/MANIFEST | 2 | ||||
-rw-r--r-- | pr/include/prlink_mac.h | 66 | ||||
-rw-r--r-- | pr/src/linking/prlink.c | 23 |
3 files changed, 0 insertions, 91 deletions
diff --git a/pr/include/MANIFEST b/pr/include/MANIFEST index c8cb34f5..d62b6ae9 100644 --- a/pr/include/MANIFEST +++ b/pr/include/MANIFEST @@ -42,8 +42,6 @@ prtypes.h prvrsion.h prwin16.h -prlink_mac.h - obsolete/protypes.h obsolete/prsem.h obsolete/probslet.h diff --git a/pr/include/prlink_mac.h b/pr/include/prlink_mac.h deleted file mode 100644 index 117d51ec..00000000 --- a/pr/include/prlink_mac.h +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* - * The contents of this file are subject to the Netscape Public License - * Version 1.1 (the "NPL"); you may not use this file except in - * compliance with the NPL. You may obtain a copy of the NPL at - * http://www.mozilla.org/NPL/ - * - * Software distributed under the NPL is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL - * for the specific language governing rights and limitations under the - * NPL. - * - * The Initial Developer of this code under the NPL is Netscape - * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All Rights - * Reserved. - */ - - -#ifndef prlink_mac_h___ -#define prlink_mac_h___ - -#ifdef XP_MAC - -#include <Files.h> -#include "prtypes.h" - -PR_BEGIN_EXTERN_C - -/* -** PR_LoadNamedFragment -** -** Load a code fragment by fragment name from the data fork of the specified file. -** The fragment name is an internal name which uniquely identifies a code -** fragment; this call opens the 'cfrg' resource in the file to find the -** offsets of the named fragment. -** -** If the specified fragment exists, it is loaded and an entry created -** in the load map (keyed by fragment name). -** -** If fileSpec points to an alias, the alias is resolved by this call. -*/ -NSPR_API(PRLibrary*) PR_LoadNamedFragment(const FSSpec *fileSpec, const char* fragmentName); - -/* -** PR_LoadIndexedFragment -** -** Load a code fragment by fragment index from the data fork of the specified file -** (since Mac shared libraries can contain multiple code fragments). -** This call opens the 'cfrg' resource in the file to find the offsets -** of the named fragment. -** -** If the specified fragment exists, it is loaded and an entry created -** in the load map (keyed by fragment name). -** -** If fileSpec points to an alias, the alias is resolved by this call. -** -*/ -NSPR_API(PRLibrary*) PR_LoadIndexedFragment(const FSSpec *fileSpec, PRUint32 fragIndex); - -PR_END_EXTERN_C - -#endif - - -#endif /* prlink_mac_h___ */ diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c index 998e6378..e80ac10c 100644 --- a/pr/src/linking/prlink.c +++ b/pr/src/linking/prlink.c @@ -31,7 +31,6 @@ #include <Strings.h> #include <Aliases.h> -#include "prlink_mac.h" #include "macdll.h" #include "mdmac.h" #endif @@ -807,17 +806,6 @@ PR_FindLibrary(const char *name) #ifdef XP_MAC -PR_IMPLEMENT(PRLibrary*) -PR_LoadNamedFragment(const FSSpec *fileSpec, const char* fragmentName) -{ - PRLibSpec libSpec; - - libSpec.type = PR_LibSpec_MacNamedFragment; - libSpec.value.mac_named_fragment.fsspec = fileSpec; - libSpec.value.mac_named_fragment.name = fragmentName; - return PR_LoadLibraryWithFlags(libSpec, 0); -} - static PRLibrary* pr_Mac_LoadNamedFragment(const FSSpec *fileSpec, const char* fragmentName) { @@ -875,17 +863,6 @@ unlock: } -PR_EXTERN(PRLibrary*) -PR_LoadIndexedFragment(const FSSpec *fileSpec, PRUint32 fragIndex) -{ - PRLibSpec libSpec; - - libSpec.type = PR_LibSpec_MacIndexedFragment; - libSpec.value.mac_indexed_fragment.fsspec = fileSpec; - libSpec.value.mac_indexed_fragment.index = fragIndex; - return PR_LoadLibraryWithFlags(libSpec, 0); -} - static PRLibrary* pr_Mac_LoadIndexedFragment(const FSSpec *fileSpec, PRUint32 fragIndex) { |