diff options
author | rws <empty> | 1990-12-12 14:50:30 +0000 |
---|---|---|
committer | rws <empty> | 1990-12-12 14:50:30 +0000 |
commit | 4ccbe0c8ca5e4fd66825bc3bf34b2dbb85f25723 (patch) | |
tree | 599b66d79793ce5d56de0e4f58d80871f5f74fcd /xc/lib/Xt/Converters.c | |
parent | d29e42f7977c7f5c472e050c3f8722230dfb522c (diff) |
function proto work
Diffstat (limited to 'xc/lib/Xt/Converters.c')
-rw-r--r-- | xc/lib/Xt/Converters.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/xc/lib/Xt/Converters.c b/xc/lib/Xt/Converters.c index 3ad138bbd..285928c83 100644 --- a/xc/lib/Xt/Converters.c +++ b/xc/lib/Xt/Converters.c @@ -1,4 +1,4 @@ -/* "$XConsortium: Converters.c,v 1.58 90/12/09 17:14:15 rws Exp $"; */ +/* "$XConsortium: Converters.c,v 1.59 90/12/11 12:01:58 rws Exp $"; */ /*LINTLIBRARY*/ /*********************************************************** @@ -61,9 +61,17 @@ static Const String XtNconversionError = "conversionError"; return True; \ } +#if NeedFunctionPrototypes +void XtDisplayStringConversionWarning( + Display* dpy, + _Xconst char* from, + _Xconst char* toType + ) +#else void XtDisplayStringConversionWarning(dpy, from, toType) Display* dpy; String from, toType; +#endif { static enum {Check, Report, Ignore} report_it = Check; @@ -101,8 +109,8 @@ void XtDisplayStringConversionWarning(dpy, from, toType) if (report_it == Report) { String params[2]; Cardinal num_params = 2; - params[0] = from; - params[1] = toType; + params[0] = (String)from; + params[1] = (String)toType; XtAppWarningMsg(XtDisplayToApplicationContext(dpy), XtNconversionError,"string",XtCXtToolkitError, "Cannot convert string \"%s\" to type %s", @@ -110,13 +118,20 @@ void XtDisplayStringConversionWarning(dpy, from, toType) } } +#if NeedFunctionPrototypes +void XtStringConversionWarning( + _Xconst char* from, + _Xconst char* toType + ) +#else void XtStringConversionWarning(from, toType) String from, toType; +#endif { String params[2]; Cardinal num_params = 2; - params[0] = from; - params[1] = toType; + params[0] = (String)from; + params[1] = (String)toType; XtWarningMsg(XtNconversionError,"string",XtCXtToolkitError, "Cannot convert string \"%s\" to type %s", params,&num_params); |