***/
#include <Xm/TextF.h>
+
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
+#include <fstream>
+#include <strstream>
+#else
#include <fstream.h>
#include <strstream.h>
+#endif
+
#include "DtTt.h"
-extern ofstream snoopStream;
+extern std::ofstream snoopStream;
void
_DtSessionChooserSet(
instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
}
DtTtSetLabel( instance->sessionOkButton, okString );
- XtVaSetValues( instance->sessionChooser, XmNtitle, title, 0 );
+ XtVaSetValues( instance->sessionChooser, XmNtitle, title, NULL );
// Remember dialog mode, entity
- XtVaSetValues( instance->sessionOkButton, XmNuserData, choice, 0 );
- XtVaSetValues( instance->sessionCancelButton, XmNuserData, entity, 0 );
+ XtVaSetValues( instance->sessionOkButton, XmNuserData, choice, NULL );
+ XtVaSetValues( instance->sessionCancelButton, XmNuserData, entity, NULL );
XmTextPosition last =
XmTextFieldGetLastPosition( instance->sessionText );
Time when =
)
{
DtTtCreated( DTTT_MESSAGE, msg );
- snoopIt( "Ttdt_contract_cb", snoopSessionMsg, msg );
+ snoopIt( "Ttdt_contract_cb", (void *) snoopSessionMsg, msg );
if ( (tt_message_class( msg ) == TT_REQUEST)
&& (tt_message_state( msg ) == TT_SENT))
{
session = 0;
}
XtPointer val;
- XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, 0 );
- _DtSessionChooserAction choice = (_DtSessionChooserAction)val;
- XtVaGetValues( instance->sessionCancelButton, XmNuserData, &val, 0 );
+ XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, NULL );
+ _DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
+ XtVaGetValues( instance->sessionCancelButton, XmNuserData, &val, NULL );
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
switch (choice) {
Tt_status status;
DtbSessionChooserSessionChooserInfo instance =
(DtbSessionChooserSessionChooserInfo)clientData;
XtPointer val;
- XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, 0 );
- _DtSessionChooserAction choice = (_DtSessionChooserAction)val;
+ XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, NULL );
+ _DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
switch (choice) {
case _DtSessionChoosePattern: