about summary refs log tree commit diff
path: root/lib/pam.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-11-22 04:25:45 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-11-22 04:25:45 +0000
commit29c014824d63606f26251cca3514f3e99285def2 (patch)
treef17d772369b58f44ea583f099dcf67acad65d2f0 /lib/pam.h
parent123b8015c942d788f8ecdd63994d081471278179 (diff)
downloadnetpbm-mirror-29c014824d63606f26251cca3514f3e99285def2.tar.gz
netpbm-mirror-29c014824d63606f26251cca3514f3e99285def2.tar.xz
netpbm-mirror-29c014824d63606f26251cca3514f3e99285def2.zip
improve comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@139 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/pam.h')
-rw-r--r--lib/pam.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/pam.h b/lib/pam.h
index e3f57d93..b5befda4 100644
--- a/lib/pam.h
+++ b/lib/pam.h
@@ -23,16 +23,16 @@ typedef unsigned long sample;
     */
 
 struct pam {
-/* This structure describes an open PAM image file.  It consists
-   entirely of information that belongs in the header of a PAM image
-   and filesystem information.  It does not contain any state
-   information about the processing of that image.  
-
-   This is not considered to be an opaque object.  The user of Netbpm
-   libraries is free to access and set any of these fields whenever
-   appropriate.  The structure exists to make coding of function calls
-   easy.
-*/
+    /* This structure describes an open PAM image file.  It consists
+       entirely of information that belongs in the header of a PAM image
+       and filesystem information.  It does not contain any state
+       information about the processing of that image.  
+       
+       This is not considered to be an opaque object.  The user of Netbpm
+       libraries is free to access and set any of these fields whenever
+       appropriate.  The structure exists to make coding of function calls
+       easy.
+    */
 
     /* 'size' and 'len' are necessary in order to provide forward and
        backward compatibility between library functions and calling programs
@@ -44,7 +44,9 @@ struct pam {
         /* The length, in bytes, of the information in this structure.
            The information starts in the first byte and is contiguous.  
            This cannot be greater than 'size'
-           */
+
+           Use PAM_STRUCT_SIZE() to compute or interpret a value for this.
+        */
     FILE * file;
     int format;
         /* The format code of the raw image.  This is PAM_FORMAT
@@ -102,7 +104,7 @@ struct pam {
 
            On output, NULL means no comments.
 
-           On input, libnetpbm mallocs storage for the comments and placed
+           On input, libnetpbm mallocs storage for the comments and places
            the pointer at *comment_p.  Caller must free it.  NULL means
            libnetpbm does not return comments and does not allocate any
            storage.