* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
*** Add include files, types, macros, externs, and user functions here.
***/
-#if defined(linux) || defined(CSRG_BASED)
+#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
#include <strstream>
#else
#include <strstream.h>
{
Tt_message msg;
XtVaGetValues( instance->messageProps_shellform,
- XmNuserData, &msg, 0 );
+ XmNuserData, &msg, NULL );
return msg;
}
)
{
tt_message_user_set( msg, (int) (long) _DtTtMessageUpdating,
- (void *)updating );
+ (void *) (intptr_t)updating );
}
typedef enum {
if (tt_is_err( status )) {
printout = tt_status_message( status );
}
- XtVaSetValues( instance->messageText, XmNvalue, printout, 0 );
+ XtVaSetValues( instance->messageText, XmNvalue, printout, NULL );
if (level == _DtTtMessageRePrint) {
return;
}
}
int val = tt_message_status( msg );
- XtVaSetValues( instance->statusBox, DtNposition, val, 0 );
+ XtVaSetValues( instance->statusBox, DtNposition, val, NULL );
char *status_string = tt_status_string( (Tt_status)val );
DtTtSetLabel( instance->statusLabel, status_string );
tt_free( status_string );
choice = instance->classChoice_items.OFFER_item;
break;
}
- XtVaSetValues( instance->classChoice, XmNmenuHistory, choice, 0 );
+ XtVaSetValues( instance->classChoice, XmNmenuHistory, choice, NULL );
switch (tt_message_address( msg )) {
case TT_PROCEDURE:
choice = instance->addressChoice_items.ADDRESS_LAST_item;
break;
}
- XtVaSetValues( instance->addressChoice, XmNmenuHistory, choice, 0 );
+ XtVaSetValues( instance->addressChoice, XmNmenuHistory, choice, NULL );
switch (tt_message_scope( msg )) {
case TT_SCOPE_NONE:
choice = instance->scopeChoice_items.FILE_IN_SESSION_item;
break;
}
- XtVaSetValues( instance->scopeChoice, XmNmenuHistory, choice, 0 );
+ XtVaSetValues( instance->scopeChoice, XmNmenuHistory, choice, NULL );
switch (tt_message_disposition( msg )) {
case TT_DISCARD:
choice = instance->dispositionChoice_items.QUEUE_START_item;
break;
}
- XtVaSetValues( instance->dispositionChoice, XmNmenuHistory, choice, 0);
+ XtVaSetValues( instance->dispositionChoice, XmNmenuHistory, choice, NULL);
_DtTtMessageSetUpdating( msg, False );
}
dtb_message_props_message_props_initialize( instance, parent );
widget = instance->messageProps;
- XtVaSetValues( instance->messageProps_shellform, XmNuserData, msg, 0 );
+ XtVaSetValues( instance->messageProps_shellform, XmNuserData, msg, NULL );
status = tt_message_user_set( msg, DtTtMsgWidgetKey, widget );
if (tt_is_err( status )) {
XtDestroyWidget( widget );
labelStream << "Tt_message " << (void *)msg;
XtVaSetValues( instance->messageProps,
XmNtitle, labelStream.str(),
- 0 );
+ NULL );
delete labelStream.str();
_DtTtMessageWidgetUpdate( instance, msg, _DtTtMessageFullUpdate );
return;
}
int val;
- XtVaGetValues( instance->statusBox, DtNposition, &val, 0 );
+ XtVaGetValues( instance->statusBox, DtNposition, &val, NULL );
XmString statusName = DtTtStatusString( (Tt_status)val );
- XtVaSetValues( instance->statusLabel, XmNlabelString, statusName, 0 );
+ XtVaSetValues( instance->statusLabel, XmNlabelString, statusName, NULL );
XmStringFree( statusName );
Tt_status status = tt_message_status_set( msg, val );
DtTtSetLabel( instance->messageFooterLabel,