Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtDisplayStringConversionWarning(1)

NAME

XtStringConversionWarning − emit boilerplate string conversion error message. 

Synopsis

void XtStringConversionWarning(src, dst_type)

String src, dst_type;

Inputs

srcSpecifies the string that could not be converted. 

dst_typeSpecifies the name of the type to which the string could not be converted. 

Description

XtStringConversionWarning() is a convenience routine for use in old-style resource converters that convert from strings.  It issues a warning message with the name conversionError, type string, class XtToolkitError, and default message string:

"Cannot convert src to type dst_type"

It can be used by a conversion routine to announce a nonfatal conversion error. 

Usage

New-style resource converters should call XtDisplayStringConversionWarning() instead of XtStringConversionWarning() to display their conversion warning messages.  These functions display similar messages and differ only in that XtDisplayStringConversionWarning() is passed a display pointer as its first argument.  Old-style converters are not passed a display pointer, and so must use the old function XtStringConversionWarning() which does not require one. 

See Also

XtDisplayStringConversionWarning(1). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026