diff options
author | sdagley%netscape.com <devnull@localhost> | 1999-10-06 02:37:14 +0000 |
---|---|---|
committer | sdagley%netscape.com <devnull@localhost> | 1999-10-06 02:37:14 +0000 |
commit | dd2f3e83b5e2dee3da50984c80ce78758b837233 (patch) | |
tree | ea98d6b68567f202cc048e13e9bba6faad31b4fa | |
parent | e41d88ed066a5d53132c937b5dcb85b36517b48c (diff) | |
download | nspr-hg-dd2f3e83b5e2dee3da50984c80ce78758b837233.tar.gz |
Add documentation comments for Mac library loading. r=sfraser
-rw-r--r-- | pr/include/prlink_mac.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/pr/include/prlink_mac.h b/pr/include/prlink_mac.h index 22982649..a0345e86 100644 --- a/pr/include/prlink_mac.h +++ b/pr/include/prlink_mac.h @@ -28,12 +28,33 @@ PR_BEGIN_EXTERN_C /* -** Doc me! +** 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. */ PR_EXTERN(PRLibrary*) PR_LoadNamedFragment(const FSSpec *fileSpec, const char* fragmentName); /* -** Doc me! +** 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. +** */ PR_EXTERN(PRLibrary*) PR_LoadIndexedFragment(const FSSpec *fileSpec, PRUint32 fragIndex); |