logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VistaIORepnName, VistaIORepnSize, etc. - obtain information about a type's representation

Arguments

repn      Specifies the data type about which information is sought.

Author

       Art Pope <pope@cs.ubc.ca>

       Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>

VistaIO Version 1.2.14                           21 January 1994                                  VistaIORepn(3)

Description

       These  macros  return  information about Vista data types, each of which is identified by one of the Vis‐taIORepnKind series of integer codes.

       VistaIOIsFloatPtRepn returns TRUE if repn is VistaIOFloatRepn or VistaIODoubleRepn.

       VistaIOIsIntegerRepn returns TRUE if repn is  VistaIOBitRepn,  VistaIOUByteRepn,  VistaIOSByteRepn,  Vis‐taIOShortRepn, or VistaIOLongRepn.

       VistaIORepnName  returns  a string naming the specified type. For example, when repn is VistaIOBitRepn it
       returns ``bit''.

       VistaIORepnMaxValue returns the maximum value that can be represented by the specified type.

       VistaIORepnMinValue returns the minimum (most negative) value that can be represented  by  the  specified
       type.

       VistaIORepnPrecision returns the minimum number of bits needed to represent the specified type on any ma‐
       chine.

       VistaIORepnSize returns the size, in bytes, of the specified type on the present machine.

Name

       VistaIORepnName, VistaIORepnSize, etc. - obtain information about a type's representation

Notes

VistaIORepnMaxValue,  VistaIORepnMinValue,  and VistaIORepnPrecision are undefined (and return 0) if repn
       isn't VistaIOBitRepn through VistaIODoubleRepn, or VistaIOBooleanRepn.

       A new value in the VistaIORepnKind series is assigned by VistaIORegisterType when it is called to  regis‐
       ter  a  new  object  type.  That new value can be used in a call to any of these macros — all return 0 or
       FALSE except VistaIORepnName, which returns the name of the newly registered type.

See Also

VistaIOConst(3),

Synopsis

typedefenum{VistaIOUnknownRepn,VistaIOBitRepn,VistaIOUByteRepn,VistaIOSByteRepn,VistaIOShortRepn,VistaIOLongRepn,VistaIOFloatRepn,VistaIODoubleRepn,VistaIOAttrListRepn,VistaIOBooleanRepn,VistaIOBundleRepn,VistaIOListRepn,VistaIOPointerRepn,VistaIOStringRepn,VistaIOEdgesRepn,VistaIOImageRepn}VistaIORepnKind;VistaIOBooleanVistaIOIsFloatPtRepn(VistaIORepnKindrepn)VistaIOBooleanVistaIOIsIntegerRepn(VistaIORepnKindrepn)VistaIOStringConstVistaIORepnName(VistaIORepnKindrepn)VistaIODoubleVistaIORepnMaxValue(VistaIORepnKindrepn)VistaIODoubleVistaIORepnMinValue(VistaIORepnKindrepn)intVistaIORepnPrecision(VistaIORepnKindrepn)size_tVistaIORepnSize(VistaIORepnKindrepn)

See Also