[comp.windows.x] Where is

glenn@mathcs.emory.edu (Glenn Barry) (02/02/90)

(X.V11R4, patchlevel 1)

In mit/lib/Xaw/AsciiSinkP.h the following exists:


#ifdef XAW_BC
/************************************************************
 *  For Compatability Only.                                 */

#define XtAsciiSinkCreate          XawAsciiSinkCreate
#define XtAsciiSinkDestroy         XawAsciiSinkDestroy

#define XawTextSink Widget
#define XtTextSink XawTextSink

extern XawTextSink XawAsciiSinkCreate(); /* parent, args, num_args */
    /* Widget parent;           */
    /* ArgList args;            */
    /* Cardinal num_args;       */


But I can't find where the function XawAsciiSinkCreate exists (no sign
of it in any mit/lib/Xaw/*.c file).

(we've got an R3 application that uses XtAsciiSinkCreate and I'm
trying to build it under R4 with no success)

Is my set of sources hosed (i've checked with another site
and they can't find it either) or is it really missing?

thanks,


-- 
Glenn T. Barry      |  glenn@mathcs.emory.edu                   Internet
Emory University    |  {rutgers,ogicse,gatech}!emory!glenn      UUCP
Dept of Math and CS |  glenn@emory                              BITNET
Atlanta, GA 30322   |  (404) 727-5637                           

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (02/03/90)

> But I can't find where the function XawAsciiSinkCreate exists (no sign
> of it in any mit/lib/Xaw/*.c file).

You are right.  The function got lost in the rush, sigh...
In R4 you can just use XtCreateWidget to create a new text source or sink.

To create an AsciiSink:

{
    char * name;
    Arg args[10];
    Cardinal num_args;
    Widget text_parent;

    XtCreateWidget(name, asciiSinkObjectClass, text_parent, args, num_args);
}


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213