Jump to content

TypeCode alignment

From EDM2
Revision as of 04:00, 30 November 2020 by Martini (talk | contribs) (Created page with "This function supplies the alignment value for a given TypeCode. ==Syntax== TypeCode tc; Environment *env; short rc; rc = TypeCode_alignment(tc, env);...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function supplies the alignment value for a given TypeCode.

Syntax

TypeCode tc; Environment *env; short rc;

rc = TypeCode_alignment(tc, env);


Parameters

tc (TypeCode) The TypeCode whose alignment information is desired.

env (Environment *) A pointer to an Environment structure.

Returns

rc (short) A short integer containing the alignment value.

Remarks

This function returns the alignment information associated with the given TypeCode. The alignment value is a short integer that should evenly divide any memory address where an instance of the type described by the TypeCode will occur.

Related Functions

  • TypeCodeNew
  • TypeCode_equal
  • TypeCode_kind
  • TypeCode_param_count
  • TypeCode_parameter
  • TypeCode_setAlignment
  • TypeCode_size
  • TypeCode_free
  • TypeCode_print