16.3.3 Pointers

H2INC translates C pointer variables into their MASM equivalents. The C declarations

int *ptr_var;

char NEAR *pCh;

are translated into these MASM statements:

EXTERNDEF ptr_var:PTR SWORD

EXTERNDEF pCh:NEAR PTR SBYTE

If you set the /Mn option, H2INC specifies all distances explicitly (for example, NEAR PTR instead of PTR). If /Mn is not set, the distances are generated only when they differ from the default values implied by the memory model specified by the /A command-line option.

H2INC converts _segment and _based variables to type WORD in MASM.

See Sections 1.2.6, “Data Types,” and 3.3, “Accessing Data with Pointers and Addresses,” for information about MASM pointers.