[project @ 2002-07-24 09:47:49 by simonmar]
authorsimonmar <unknown>
Wed, 24 Jul 2002 09:47:49 +0000 (09:47 +0000)
committersimonmar <unknown>
Wed, 24 Jul 2002 09:47:49 +0000 (09:47 +0000)
Documentation for #offset

ghc/docs/users_guide/utils.sgml

index 8561287..6eb8ada 100644 (file)
@@ -473,6 +473,16 @@ tags:
        </varlistentry>
 
        <varlistentry>
+         <term><literal>#offset struct_type, field</literal></term>
+         <listitem>
+           <para>Computes the offset, in bytes, of
+           <literal>field</literal> in
+           <literal>struct_type</literal>. It will have type
+           <literal>Int</literal>.</para>
+         </listitem>
+       </varlistentry>
+
+       <varlistentry>
          <term><literal>#enum type, constructor, value, value, ...</literal></term>
          <listitem>
            <para>A shortcut for multiple definitions which use