#include <Xm/TextF.h>
-#if defined(linux)
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#include <fstream>
#include <strstream>
#else
#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 =
session = 0;
}
XtPointer val;
- XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, 0 );
+ XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, NULL );
_DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
- XtVaGetValues( instance->sessionCancelButton, XmNuserData, &val, 0 );
+ 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 );
+ XtVaGetValues( instance->sessionOkButton, XmNuserData, &val, NULL );
_DtSessionChooserAction choice = (_DtSessionChooserAction) (long) val;
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
switch (choice) {