Jump to content

TypeCode alignment: Difference between revisions

From EDM2
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);..."
 
No edit summary
Line 1: Line 1:
This function supplies the alignment value for a given TypeCode.  
This function supplies the alignment value for a given TypeCode.  
==Syntax==
==Syntax==
TypeCode        tc;
TypeCode        tc;
Environment    *env;
Environment    *env;
short            rc;
short            rc;
 
rc = TypeCode_alignment(tc, env);
rc = TypeCode_alignment(tc, env);




==Parameters==
==Parameters==
;tc (TypeCode)
:The TypeCode whose alignment information is desired.


tc (TypeCode)
;env (Environment *)  
The TypeCode whose alignment information is desired.
:A pointer to an Environment structure.  
 
env (Environment *)  
A pointer to an Environment structure.  


==Returns==
==Returns==

Revision as of 04:00, 30 November 2020

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