ABWindow *win;
ABObj module;
ABObj winobj;
- static Cursor busy_cursor = NULL;
- Cursor new_cursor = NULL;
+ static Cursor busy_cursor = 0;
+ Cursor new_cursor = 0;
int num_wins;
int i;
- if (busy_cursor == NULL)
+ if (busy_cursor == 0)
busy_cursor = XCreateFontCursor(XtDisplay(AB_toplevel), XC_watch);
if (on)
ab_get_cur_dir(); /* initialize it! */
}
- if ((dir == NULL) || (*dir == NULL) || (*dir == '.'))
+ if ((dir == NULL) || (*dir == 0) || (*dir == '.'))
{
return TRUE;
}
ABObj geomObj;
Widget geomWidget;
Widget parent;
- static Cursor move_cursor = NULL;
+ static Cursor move_cursor = 0;
rootObj = obj_get_root(obj);
if (XtGrabPointer(widget, False,
ButtonReleaseMask | ButtonMotionMask | PointerMotionMask,
- GrabModeAsync, GrabModeAsync, NULL,
+ GrabModeAsync, GrabModeAsync, 0,
resize_cursor, CurrentTime) == GrabSuccess)
return OK;
XMotionEvent *mevent;
static XEvent event_cpy;
static DoubleClickInfo *d_click = NULL;
- static XtIntervalId timer_id = NULL;
+ static XtIntervalId timer_id = 0;
ABObj obj = (ABObj)client_data;
ABObj moveObj;
)
{
static Cursor resize_cursor[10] =
- { NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL };
+ { 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0 };
unsigned int shape;
if (!resize_cursor[dir])
break;
case NONE:
default:
- return NULL;
+ return 0;
}
resize_cursor[dir] = XCreateFontCursor(XtDisplay(w), shape);
}
*
***********************************************************************
*/
+#include <stdint.h>
#include <stdio.h>
#include <X11/Intrinsic.h>
#include <X11/cursorfont.h>
draw_select_feedback(selObj, resizable);
XtAddEventHandler(selWidget, StructureNotifyMask | ExposureMask, FALSE,
- select_feedback_redraw, (XtPointer)resizable);
+ select_feedback_redraw, (XtPointer)(uintptr_t) resizable);
XtAddEventHandler(selWidget, PointerMotionMask, FALSE,
monitor_cursor, (XtPointer)selObj);
x_get_widget_rect(selWidget, &w_rect);
XtRemoveEventHandler(selWidget, StructureNotifyMask | ExposureMask, FALSE,
- select_feedback_redraw, (XtPointer)resizable);
+ select_feedback_redraw, (XtPointer)(uintptr_t) resizable);
XtRemoveEventHandler(selWidget, PointerMotionMask, FALSE,
monitor_cursor, (XtPointer)selObj);
}
else
{
- if ((resize_cursor = abobjP_get_resize_cursor(selWidget, dir)) != NULL)
+ if ((resize_cursor = abobjP_get_resize_cursor(selWidget, dir)) != 0)
{
XDefineCursor(dpy, win, resize_cursor);
cursor_changed = TRUE;
)
{
ABObj selObj = NULL;
- BOOL resizable = (BOOL)((unsigned int)clientdata);
+ BOOL resizable = (BOOL)((uintptr_t) clientdata);
Boolean redraw = FALSE;
selObj = objxm_get_obj_from_widget(selWidget);
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
/* Primary Main Window */
n = 0;
item[n] = appfw_cgen->rootwin_opmenu_items.None_item;
- item_val[n] = NULL; n++;
+ item_val[n] = 0; n++;
prop_obj_options_init(&(afs->rootwin), appfw_cgen->rootwin_label,
appfw_cgen->rootwin_opmenu, appfw_cgen->rootwin_opmenu_menu,
n, item, (XtPointer*)item_val,
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
&(ats->left_attach_obj),
left_offset,
left_position,
- (int)left_obj);
+ left_obj);
set_attach_values(right_attach_type,
&(ats->right_attach_offset),
&(ats->right_attach_obj),
right_offset,
right_position,
- (int)right_obj);
+ right_obj);
set_attach_values(top_attach_type,
&(ats->top_attach_offset),
&(ats->top_attach_obj),
top_offset,
top_position,
- (int)top_obj);
+ top_obj);
set_attach_values(bottom_attach_type,
&(ats->bottom_attach_offset),
&(ats->bottom_attach_obj),
bottom_offset,
bottom_position,
- (int)bottom_obj);
+ bottom_obj);
/*
* Set object name
case AB_ATTACH_GRIDLINE:
*type = ATTCH_ED_GRIDLINE;
*offset = attachment->offset;
- *position = (int)attachment->value;
+ *position = (int)(intptr_t) attachment->value;
break;
case AB_ATTACH_CENTER_GRIDLINE:
*type = ATTCH_ED_CENTER_GRIDLINE;
- *position = (int)attachment->value;
+ *position = (int)(intptr_t) attachment->value;
*offset = 0;
break;
case ATTCH_ED_GRIDLINE:
attachment->type = AB_ATTACH_GRIDLINE;
- attachment->value = (void *)position;
+ attachment->value = (void *)(intptr_t) position;
attachment->offset = offset;
break;
case ATTCH_ED_CENTER_GRIDLINE:
attachment->type = AB_ATTACH_CENTER_GRIDLINE;
- attachment->value = (void *)position;
+ attachment->value = (void *)(intptr_t) position;
attachment->offset = 0;
break;
menu,
changebar,
*item = NULL;
- int item_values = NULL,
+ int item_values = 0,
*item_val = NULL,
n = 0;
* first one
*/
if (n > 0)
- prop_options_set_value(option_setting, (XtPointer)item_val[0], False);
+ prop_options_set_value(option_setting, (XtPointer)(uintptr_t) item_val[0], False);
if (item)
util_free(item);
&offset, &position);
obj_set_attachment(obj, dir, AB_ATTACH_POINT,
- (void *)position, offset);
+ (void *)(uintptr_t) position, offset);
objxm_obj_set_attachment_args(obj, OBJXM_CONFIG_BUILD);
}
}
if (!ui_handle->bg_font)
{
- Font font = NULL;
+ Font font = 0;
XtVaGetValues(draw_area, XtNfont, &font, NULL);
ui_handle->bg_font = (XFontStruct *)XQueryFont(dpy, font);
ui->line_gc = NULL;
ui->sm_font = NULL;
ui->bg_font = NULL;
- ui->fg_color = NULL;
- ui->bg_color = NULL;
+ ui->fg_color = 0;
+ ui->bg_color = 0;
return(ui);
}
)
{
AB_OBJ *obj = (AB_OBJ *)client_data;
- Pixmap image = NULL; /* gotta set to NULL!!! */
+ Pixmap image = 0;
/*
* Object glyph
BrowserUiObj ui;
if (!v)
- return (NULL);
+ return 0;
ui = (BrowserUiObj)v->ui_handle;
if (!ui)
- return (NULL);
+ return 0;
instance = (DtbBrwsMainwindowInfo)ui->ip;
BrowserUiObj ui;
if (!v)
- return (NULL);
+ return 0;
ui = (BrowserUiObj)v->ui_handle;
if (!ui)
- return (NULL);
+ return 0;
instance = (DtbBrwsMainwindowInfo)(ui->ip);
BrowserUiObj ui;
if (!v)
- return (NULL);
+ return 0;
ui = (BrowserUiObj)v->ui_handle;
if (!ui)
- return (NULL);
+ return 0;
proj_d = (DtbProjProjMainInfo)ui->ip;
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
DtbCgenEnvDialogInfo env_dlg = (DtbCgenEnvDialogInfo)clientData;
char buf[10];
- sprintf(buf, "");
+ sprintf(buf, "%s", "");
XmTextFieldSetString(env_dlg->name_textf, buf);
XmTextSetString(env_dlg->textpane, buf);
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
#define _POSIX_SOURCE 1
#endif
+#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
int putenv_var_size = 0;
setpgid(0,0); /* make process group leader */
- write_to_status_pipe(CG_STATUS_STARTED, cmd_code, (void*)getpgrp());
+ write_to_status_pipe(CG_STATUS_STARTED, cmd_code, (void*)(intptr_t) getpgrp());
for (i = 0; i < num_env_vars; ++i)
{
if (status_pipe_write >= 0)
{
- write_to_status_pipe(status_code, cmd_code, (void*)exit_code);
+ write_to_status_pipe(status_code, cmd_code, (void*)(intptr_t) exit_code);
util_fdclose(status_pipe_write);
}
subprocess_exit(exit_code);
switch (status_code)
{
case CG_STATUS_STARTED:
- actual_process_pgid = (pid_t)status_data;
+ actual_process_pgid = (pid_t)(intptr_t) status_data;
/*util_dprintf(2,"rcv started: %ld\n", (long)actual_process_pgid);*/
break;
case CG_STATUS_EXITED:
- exit_code = (int)status_data;
+ exit_code = (int)(intptr_t) status_data;
actual_process_pgid = INVALID_PID;
/*util_dprintf(2,"rcv exit(%d)\n", exit_code);*/
if (aborted)
break;
case CG_STATUS_SIGNALLED:
- kill_signal = (int)status_data;
+ kill_signal = (int)(intptr_t) status_data;
/*util_dprintf(2,"rcv signalled(%d)\n", kill_signal);*/
actual_process_pgid = INVALID_PID;
goto_ready_state();
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
obj_get_drag_cursor_mask(obj), False);
if (dragOps != 0)
prop_radiobox_set_value(&(dds->drag_types_radiobox),
- (XtPointer)dragType, False);
+ (XtPointer)(uintptr_t) dragType, False);
prop_checkbox_set_value(&(dds->drop_ops_checkbox),
ABDndOpCopy, ((dropOps & ABDndOpCopy) != 0), False);
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
{
XmToggleButtonCallbackStruct *state =
(XmToggleButtonCallbackStruct *)callData;
- int ImportMode = (int) clientData;
- ChooserInfo info = NULL;
+ int ImportMode = (int)(intptr_t) clientData;
+ ChooserInfo info = 0;
if (state->set)
{
{
XmToggleButtonCallbackStruct *state =
(XmToggleButtonCallbackStruct *)callData;
- int ImportFormat = (int) clientData;
+ int ImportFormat = (int)(intptr_t) clientData;
ChooserInfo info = NULL;
Widget method_rbox = NULL;
layout_menu = (Widget) NULL;
ABInitProcInfo init_proc_info = NULL;
int status = 0;
- Pixmap xpm_pixmap = NULL;
+ Pixmap xpm_pixmap = 0;
int num_mouse_buttons = 0;
#ifdef DEBUG /* performance testing */
/* Register Menu Palette Obj */
pal_register_item_info(NULL, ab_menu_palitem, (int)AB_NO_SUBTYPE,
- NULL, NULL);
+ NULL, 0);
/* Register Group Palette Obj */
pal_register_item_info(NULL, ab_group_palitem, (int)AB_CONT_GROUP,
- "Group", NULL);
+ "Group", 0);
/* Register Paned Window Palette Obj */
pal_register_item_info(NULL, ab_panedwin_palitem, (int)AB_CONT_PANED,
- NULL, NULL);
+ NULL, 0);
pal_register_item_info(NULL, ab_button_palitem, (int)AB_BUT_DRAWN,
- "Drawn Button", NULL);
+ "Drawn Button", 0);
/* Register All Editable objects which are not Palette Items */
pal_register_editable_obj(AB_TYPE_PROJECT, (int)AB_NO_SUBTYPE,
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
int subtype;
} HelpObjTypeInfoRec;
static HelpObjTypeInfoRec HelpObjTypeInfo = {
- ((AB_OBJECT_TYPE)NULL), ((int) NULL),
+ ((AB_OBJECT_TYPE)NULL), 0,
};
typedef struct HELP_EDITOR_SETTINGS {
** Checking the status of the more-help info also lets us decide whether
** the "More..." button should be enabled on the dialog.
*/
- if( help_volume ==0 || *(help_volume) == NULL ||
- help_location ==0 || *(help_location)== NULL){
+ if( help_volume ==0 || *(help_volume) == 0 ||
+ help_location ==0 || *(help_location)== 0){
buffer[0] = '\0';
}
else {
** Parse the combined volume/locationID string. Disable the "More..."
** button if there isn't any help info, and enable it if there is.
*/
- if( buffer == 0 || (*buffer == NULL) ||
+ if( buffer == 0 || (*buffer == 0) ||
(cp=strrchr(buffer,'/')) == (char *)NULL) {
XtSetSensitive(more_button,False);
}
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
}
/* Set the default button to be Action1 */
- if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != AB_DEFAULT_BTN_ACTION1)
+ if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != (XtPointer) AB_DEFAULT_BTN_ACTION1)
{
prop_options_set_value(&(mes->default_btn),
(XtPointer)AB_DEFAULT_BTN_ACTION1, True);
}
/* Set the default button to be Cancel */
- if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != AB_DEFAULT_BTN_CANCEL)
+ if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != (XtPointer) AB_DEFAULT_BTN_CANCEL)
{
prop_options_set_value(&(mes->default_btn),
(XtPointer)AB_DEFAULT_BTN_CANCEL, True);
}
/* Set the default button to be Action2 */
- if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != AB_DEFAULT_BTN_ACTION2)
+ if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != (XtPointer) AB_DEFAULT_BTN_ACTION2)
{
prop_options_set_value(&(mes->default_btn),
(XtPointer)AB_DEFAULT_BTN_ACTION2, True);
}
/* Set the default button to be Action1 */
- if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != AB_DEFAULT_BTN_ACTION1)
+ if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != (XtPointer) AB_DEFAULT_BTN_ACTION1)
{
prop_options_set_value(&(mes->default_btn),
(XtPointer)AB_DEFAULT_BTN_ACTION1, True);
}
/* Set the default button to be Action1 */
- if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != AB_DEFAULT_BTN_ACTION1)
+ if ((XtPointer)prop_options_get_value(&(mes->default_btn)) != (XtPointer) AB_DEFAULT_BTN_ACTION1)
{
prop_options_set_value(&(mes->default_btn),
(XtPointer)AB_DEFAULT_BTN_ACTION1, True);
newsub[i] = sub[i];
newsub[i].subtype = subtype;
- newsub[i].pixmap = NULL;
+ newsub[i].pixmap = 0;
newsub[i].subname = XtNewString(subname);
XtFree((char *)(palitem->subinfo));
palitem->subinfo = newsub;
}
*p_width = *p_height = 0;
- return NULL;
+ return 0;
}
STRING
/*
* pal_combobox.c - Implements Palette ComboBox object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/obj_notify.h>
/* Load Read Only */
prop_radiobox_set_value(&(pcs->combobox_type),
- (XtPointer)obj_get_read_only(obj), False);
+ (XtPointer)(intptr_t) obj_get_read_only(obj), False);
/* Load Initial State */
prop_checkbox_set_value(&(pcs->init_state), AB_STATE_VISIBLE,
static unsigned int max_c_width = 0; /* The maximum cursor size */
static unsigned int max_c_height = 0;
- static Pixmap item_pixmap = NULL;/* pixmap for cursor */
+ static Pixmap item_pixmap = 0;/* pixmap for cursor */
static GC p_gc = NULL; /* GC used for pixmap creation */
char *server_vendor = NULL;
PalItemInfo *palitem; /* palette obj */
/*
* pal_custdlg.c - Implements Palette CustomDialog object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/util.h>
/* Window Parent */
n = 0;
item[n] = cgen->winparent_opmenu_items.None_item;
- item_val[n] = NULL; n++;
+ item_val[n] = 0; n++;
prop_obj_options_init(&(pcs->win_parent), cgen->winparent_opmenu_label,
cgen->winparent_opmenu, cgen->winparent_opmenu_menu,
n, item, (XtPointer*)item_val,
/* Default Button */
n = 0;
item[n] = cgen->defaultb_opmenu_items.None_item;
- item_val[n] = NULL; n++;
+ item_val[n] = 0; n++;
prop_obj_options_init(&(pcs->default_but), cgen->defaultb_opmenu_label,
cgen->defaultb_opmenu, cgen->defaultb_opmenu_menu,
n, item, (XtPointer*)item_val,
/* Help Button */
n = 0;
item[n] = cgen->helpb_opmenu_items.None_item;
- item_val[n] = NULL; n++;
+ item_val[n] = 0; n++;
prop_obj_options_init(&(pcs->help_but), cgen->helpb_opmenu_label,
cgen->helpb_opmenu, cgen->helpb_opmenu_menu,
n, item, (XtPointer*)item_val,
/* Load Resize Mode */
prop_radiobox_set_value(&(pcs->resize_mode),
- (XtPointer)obj_get_resizable(obj), False);
+ (XtPointer)(intptr_t) obj_get_resizable(obj), False);
/* Load Window Areas */
area = objxm_comp_custdlg_get_area(obj, AB_CONT_BUTTON_PANEL);
obj_set_is_initially_visible(bobj, True);
obj_set_is_initially_active(bobj, True);
startpos = endpos + 10;
- obj_set_attachment(bobj, AB_CP_WEST, AB_ATTACH_GRIDLINE, (void*)startpos, 0);
+ obj_set_attachment(bobj, AB_CP_WEST, AB_ATTACH_GRIDLINE, (void*)(intptr_t) startpos, 0);
endpos = startpos + 20;
- obj_set_attachment(bobj, AB_CP_EAST, AB_ATTACH_GRIDLINE, (void*)endpos, 0);
- obj_set_attachment(bobj, AB_CP_NORTH, AB_ATTACH_POINT, (void*)0, 5);
+ obj_set_attachment(bobj, AB_CP_EAST, AB_ATTACH_GRIDLINE, (void*)(intptr_t) endpos, 0);
+ obj_set_attachment(bobj, AB_CP_NORTH, AB_ATTACH_POINT, NULL, 5);
}
}
* pal_group.c - Implements Group object functionality
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <X11/Xlib.h>
int height = abobj_get_actual_height(child);
attach.type = AB_ATTACH_GRIDLINE;
- attach.value = (void *)gridline;
+ attach.value = (void *)(intptr_t) gridline;
attach.offset = -(height/2);
}
int width = abobj_get_actual_width(child);
attach.type = AB_ATTACH_GRIDLINE;
- attach.value = (void *)gridline;
+ attach.value = (void *)(intptr_t) gridline;
attach.offset = -(width/2);
}
/*
* pal_list.c - Implements Palette List object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/obj_notify.h>
}
if (prop_changed(pls->hgt.changebar))
{
- metric = (int)prop_options_get_value(&(pls->hgt_metric));
+ metric = (int)(intptr_t) prop_options_get_value(&(pls->hgt_metric));
new_h = prop_geomfield_get_value(&(pls->hgt), GEOM_HEIGHT);
abobj_set_num_rows(pls->current_obj,
/*
* pal_mainwin.c - Implements Palette Main Window object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/ab.h>
/* Load Resize Mode */
prop_radiobox_set_value(&(pms->resize_mode),
- (XtPointer)obj_get_resizable(obj), False);
+ (XtPointer)(intptr_t) obj_get_resizable(obj), False);
/* Load Icon Filename */
prop_field_set_value(&(pms->icon), obj_get_icon(obj), False);
* pal_menu.c - Implements Palette Menu object functionality
* NOTE: menu not actually ON the main palette
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/obj_notify.h>
{
/* Load Tearoff */
prop_radiobox_set_value(&(pms->tearoff),
- (XtPointer)(obj->info.menu.tear_off), False);
+ (XtPointer)(intptr_t) (obj->info.menu.tear_off), False);
/* Load Color */
prop_colorfield_set_value(&(pms->bg_color), obj_get_bg_color(obj), False);
/*
* pal_scale.c - Implements Palette Scale/Gauge object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/ab.h>
/* Load Scale Type */
prop_radiobox_set_value(&(pss->scale_type),
- (XtPointer)obj_get_read_only(obj), False);
+ (XtPointer)(intptr_t) obj_get_read_only(obj), False);
/* Load Orientation */
orient = obj_get_orientation(obj);
/*
* pal_termp.c - Implements Palette TermPane object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <Dt/TermPrim.h>
}
if (prop_changed(pts->size.changebar))
{
- metric = (int)prop_options_get_value(&(pts->size_metric));
+ metric = (int)(intptr_t) prop_options_get_value(&(pts->size_metric));
new_w = prop_geomfield_get_value(&(pts->size), GEOM_WIDTH);
new_h = prop_geomfield_get_value(&(pts->size), GEOM_HEIGHT);
/*
* pal_textf.c - Implements Palette TextField object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/pal.h>
obj->label_type, obj_get_label(obj), AB_LINE_UNDEF);
/* Load Operation */
prop_radiobox_set_value(&(pts->op),
- (XtPointer)obj_get_read_only(obj), False);
+ (XtPointer)(intptr_t) obj_get_read_only(obj), False);
/* Load Maximum Chars */
prop_field_set_numeric_value(&(pts->max_chars), obj_get_max_length(obj), False);
}
if (prop_changed(pts->size.changebar))
{
- metric = (int)prop_options_get_value(&(pts->size_metric));
+ metric = (int)(intptr_t) prop_options_get_value(&(pts->size_metric));
new_w = prop_geomfield_get_value(&(pts->size), GEOM_WIDTH);
abobj_set_num_columns(pts->current_obj,
/*
* pal_textp.c - Implements Palette TextPane object functionality
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <ab_private/util.h>
/* Load Operation */
prop_radiobox_set_value(&(pts->op),
- (XtPointer)obj_get_read_only(obj), False);
+ (XtPointer)(intptr_t) obj_get_read_only(obj), False);
/* Load Menu Name/Title */
prop_menuname_set_value(&(pts->menuname), obj_get_menu_name(obj), False);
}
if (prop_changed(pts->size.changebar))
{
- metric = (int)prop_options_get_value(&(pts->size_metric));
+ metric = (int)(intptr_t) prop_options_get_value(&(pts->size_metric));
new_w = prop_geomfield_get_value(&(pts->size), GEOM_WIDTH);
new_h = prop_geomfield_get_value(&(pts->size), GEOM_HEIGHT);
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
{
case AB_TYPE_BASE_WINDOW:
pal_register_item_info(palitem_w, ab_mainwin_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_BUTTON:
if (strcmp(subtypestr, "AB_BUT_PUSH") == 0)
pal_register_item_info(palitem_w, ab_button_palitem,
- (int)AB_BUT_PUSH, ab_button_palitem->name, NULL);
+ (int)AB_BUT_PUSH, ab_button_palitem->name, 0);
else if (strcmp(subtypestr, "AB_BUT_MENU") == 0)
pal_register_item_info(palitem_w, ab_button_palitem,
- (int)AB_BUT_MENU, "Menu Button", NULL);
+ (int)AB_BUT_MENU, "Menu Button", 0);
break;
case AB_TYPE_COMBO_BOX:
{
WidgetList children = NULL;
pal_register_item_info(palitem_w, ab_combo_box_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
num_children = 0;
XtVaGetValues(palitem_w,
case AB_TYPE_CONTAINER:
if (strcmp(subtypestr, "AB_CONT_RELATIVE") == 0)
pal_register_item_info(palitem_w, ab_cpanel_palitem,
- (int)AB_CONT_RELATIVE, ab_cpanel_palitem->name, NULL);
+ (int)AB_CONT_RELATIVE, ab_cpanel_palitem->name, 0);
else if (strcmp(subtypestr, "AB_CONT_MENU_BAR") == 0)
pal_register_item_info(palitem_w, ab_menubar_palitem,
- (int)AB_CONT_MENU_BAR, ab_menubar_palitem->name, NULL);
+ (int)AB_CONT_MENU_BAR, ab_menubar_palitem->name, 0);
break;
case AB_TYPE_DIALOG:
pal_register_item_info(palitem_w, ab_custdlg_palitem,
- (int)AB_NO_SUBTYPE, ab_custdlg_palitem->name, NULL);
+ (int)AB_NO_SUBTYPE, ab_custdlg_palitem->name, 0);
break;
case AB_TYPE_LABEL:
pal_register_item_info(palitem_w, ab_label_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_TERM_PANE:
pal_register_item_info(palitem_w, ab_termp_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_TEXT_FIELD:
pal_register_item_info(palitem_w, ab_textf_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_TEXT_PANE:
pal_register_item_info(palitem_w, ab_textp_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_LIST:
pal_register_item_info(palitem_w, ab_list_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_CHOICE:
if (strcmp(subtypestr, "AB_CHOICE_EXCLUSIVE") == 0)
pal_register_item_info(palitem_w, ab_choice_palitem,
- (int)AB_CHOICE_EXCLUSIVE, "Radio Box", NULL);
+ (int)AB_CHOICE_EXCLUSIVE, "Radio Box", 0);
else if (strcmp(subtypestr, "AB_CHOICE_OPTION_MENU") == 0)
pal_register_item_info(palitem_w, ab_choice_palitem,
- (int)AB_CHOICE_OPTION_MENU, "Option Menu", NULL);
+ (int)AB_CHOICE_OPTION_MENU, "Option Menu", 0);
else
pal_register_item_info(palitem_w, ab_choice_palitem,
- (int)AB_CHOICE_NONEXCLUSIVE, "Check Box", NULL);
+ (int)AB_CHOICE_NONEXCLUSIVE, "Check Box", 0);
break;
case AB_TYPE_DRAWING_AREA:
pal_register_item_info(palitem_w, ab_drawp_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_SEPARATOR:
pal_register_item_info(palitem_w, ab_separator_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
case AB_TYPE_SPIN_BOX:
{
WidgetList children = NULL;
pal_register_item_info(palitem_w, ab_spinbox_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
XtVaGetValues(palitem_w,
XtNnumChildren, &num_children,
{
pal_register_item_info(palitem_w, ab_scale_palitem,
- (int)False, "Scale", NULL);
+ (int)False, "Scale", 0);
/*
* Register sub-widgets of scale as well
*/
else
{
pal_register_item_info(palitem_w, ab_scale_palitem,
- (int)True, "Gauge", NULL);
+ (int)True, "Gauge", 0);
/*
* Register sub-widgets of gauge as well
*/
}
case AB_TYPE_FILE_CHOOSER:
pal_register_item_info(palitem_w, ab_fchooser_palitem,
- (int)AB_NO_SUBTYPE, NULL, NULL);
+ (int)AB_NO_SUBTYPE, NULL, 0);
break;
}
}
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
* ** DELETE THE GENERATED COMMENTS! **
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include "dtb_utils.h"
*
***********************************************************************
*/
+#include <stdint.h>
#include <stdio.h>
#include <Xm/Xm.h>
#include <Xm/MessageB.h>
XtPointer call_data
)
{
- int yes = (int)client_data;
+ int yes = (int)(intptr_t) client_data;
/* REMIND: aim,1/29/94 - temp. fix for prompt dialog crashing */
if (yes == 1)
/*
* Default pixmap
*/
-static Pixmap default_pixmap = NULL;
+static Pixmap default_pixmap = 0;
static unsigned int default_pixmap_width = 0;
static unsigned int default_pixmap_height = 0;
STRING fileName
)
{
- Pixmap labelPixmap = NULL;
- Pixmap labelInsensitivePixmap = NULL;
+ Pixmap labelPixmap = 0;
+ Pixmap labelInsensitivePixmap = 0;
XtVaGetValues(widget,
XmNlabelPixmap, &labelPixmap,
BOOL on
)
{
- static Cursor busy_cursor = NULL;
+ static Cursor busy_cursor = 0;
static Display *dpy = NULL;
if (on) /* Turn ON busy cursor */
{
dpy = XtDisplay(AB_toplevel);
- if (busy_cursor == NULL)
+ if (busy_cursor == 0)
busy_cursor = XCreateFontCursor(dpy, XC_watch);
XDefineCursor(dpy, window, busy_cursor);
int i;
AB_OBJECT_TYPE type;
int subtype;
- Pixmap p = NULL;
+ Pixmap p = 0;
BOOL found = FALSE;
if (!obj || !pixmap || !width || !height)
syncData.last_expose_ticks = 0;
syncData.timeout_ticks = 0;
syncData.display = NULL;
- syncData.window = NULL;
+ syncData.window = 0;
#define last_expose_ticks (syncData.last_expose_ticks)
#define synced (syncData.synced)
#define timeout_ticks (syncData.timeout_ticks)
ButtonReleaseMask | ButtonMotionMask | PointerMotionMask,
GrabModeAsync, GrabModeAsync,
confine_to_window ? XtWindow(widget) : None,
- NULL, CurrentTime) == GrabSuccess)
+ 0, CurrentTime) == GrabSuccess)
{
rband_in_progress = True;
rubberband_func = rb_func;
#include <assert.h> /* assert() */
#include <stdio.h> /* FILE*, BUFSIZ */
+#include <stdint.h>
#include <sys/param.h> /* MAXPATHLEN, ... */
#include <nl_types.h>
#include <X11/Intrinsic.h>
#define mfobj_set_module_data(_obj,_data) \
( mfobj_set_flags(_obj, CGenFlagDataIsModule), \
- ((int)(mfobj_data(_obj)->info.module = (_data))) \
+ ((int)(intptr_t)(mfobj_data(_obj)->info.module = (_data))) \
)
#define mfobj_get_module_data(obj) \
*/
#include <stdio.h>
+#include <stdint.h>
#include <assert.h>
#include <Xm/Xm.h>
#include <Xm/XmStrDefs.h>
/* INT VALUES */
#define dump_int_resource(inst,name,value) \
(wroteResource = TRUE, \
- fprintf(fp,"%s.%s:\t%d\n", inst, name, value))
+ fprintf(fp,"%s.%s:\t%d\n", inst, name, (int)(intptr_t)value))
#define write_int_resource(name,value) \
- (wroteResource = TRUE, abio_printf(fp,"%s, %d", name, (int)(value)))
+ (wroteResource = TRUE, abio_printf(fp,"%s, %d", name, (int)(intptr_t)(value)))
/* STRING values */
#define dump_str_resource(inst,name,value) \
/*
- * var: Drawable drawable = NULL;
+ * var: Drawable drawable = 0;
*/
static int
write_define_drawable_var(GenCodeInfo genCodeInfo)
{
make_istr_var_name(varDrawable, "drawable");
write_define_var(genCodeInfo, &abmfP_drawable_var(genCodeInfo),
- "Drawable", varDrawable, abmfP_str_null);
+ "Drawable", varDrawable, abmfP_str_zero);
return 0;
}
/*
- * var: Pixmap icon_pixmap = NULL;
+ * var: Pixmap icon_pixmap = 0;
*/
static int
write_define_icon_pixmap_var(GenCodeInfo genCodeInfo)
{
make_istr_var_name(varIconPixmap, "icon_pixmap");
write_define_var(genCodeInfo, &abmfP_icon_pixmap_var(genCodeInfo),
- "Pixmap", varIconPixmap, abmfP_str_null);
+ "Pixmap", varIconPixmap, abmfP_str_zero);
return 0;
}
/*
- * var: Pixmap icon_mask_pixmap = NULL;
+ * var: Pixmap icon_mask_pixmap = 0;
*/
static int
write_define_icon_mask_pixmap_var(GenCodeInfo genCodeInfo)
{
make_istr_var_name(varIconPixmap, "icon_mask_pixmap");
write_define_var(genCodeInfo, &abmfP_icon_mask_pixmap_var(genCodeInfo),
- "Pixmap", varIconPixmap, abmfP_str_null);
+ "Pixmap", varIconPixmap, abmfP_str_zero);
return 0;
}
/*
- * var: Pixmap label_pixmap = NULL;
+ * var: Pixmap label_pixmap = 0;
*/
static int
write_define_label_pixmap_var(GenCodeInfo genCodeInfo)
{
make_istr_var_name(varLabelPixmap, "label_pixmap");
write_define_var(genCodeInfo, &abmfP_label_pixmap_var(genCodeInfo),
- "Pixmap", varLabelPixmap, abmfP_str_null);
+ "Pixmap", varLabelPixmap, abmfP_str_zero);
return 0;
}
else
*/
{
- sprintf(parentName, abmfP_get_widget_parent_name(genCodeInfo, obj));
+ sprintf(parentName, "%s", abmfP_get_widget_parent_name(genCodeInfo, obj));
}
}
" * Set the approriate resources.\n"
" */\n"
" XtVaSetValues(widget, XmNlabelType, XmPIXMAP, NULL);\n"
- " if (labelPixmap != NULL)\n"
+ " if (labelPixmap != 0)\n"
" {\n"
" XtVaSetValues(widget, XmNlabelPixmap, labelPixmap, NULL);\n"
" }\n"
- " if (labelInsensitivePixmap != NULL)\n"
+ " if (labelInsensitivePixmap != 0)\n"
" {\n"
" XtVaSetValues(widget, XmNlabelInsensitivePixmap, \n"
" labelInsensitivePixmap, NULL);\n"
" ** Checking the status of the more-help info also lets us decide whether\n"
" ** the \"More...\" button should be enabled on the dialog.\n"
" */\n"
- " if( help_data->help_volume ==0 || *(help_data->help_volume) == NULL ||\n"
- " help_data->help_locationID ==0 || *(help_data->help_locationID)== NULL){\n"
+ " if( help_data->help_volume ==0 || *(help_data->help_volume) == 0 ||\n"
+ " help_data->help_locationID ==0 || *(help_data->help_locationID)== 0){\n"
" buffer[0] = '\\0';\n"
" }\n"
" else {\n"
" ** Parse the combined volume/locationID string. Disable the \"More...\"\n"
" ** button if there isn't any help info, and enable it if there is.\n"
" */\n"
- " if( buffer == 0 || (*buffer == NULL) ||\n"
+ " if( buffer == 0 || (*buffer == 0) ||\n"
" (cp=strrchr(buffer,'/')) == (char *)NULL) {\n"
" XtSetSensitive(more_button,False);\n"
" }\n"
** Checking the status of the more-help info also lets us decide whether
** the "More..." button should be enabled on the dialog.
*/
- if( help_data->help_volume ==0 || *(help_data->help_volume) == NULL ||
- help_data->help_locationID ==0 || *(help_data->help_locationID)== NULL){
+ if( help_data->help_volume ==0 || *(help_data->help_volume) == 0 ||
+ help_data->help_locationID ==0 || *(help_data->help_locationID)== 0){
buffer[0] = '\0';
}
else {
* Write includes.
*/
strcpy(moduleHeaderFileName, abmfP_get_ui_header_file_name(module));
+ abmfP_write_c_system_include(genCodeInfo, "stdint.h");
abmfP_write_c_system_include(genCodeInfo, "stdio.h");
abmfP_write_c_system_include(genCodeInfo, "Xm/Xm.h");
abmfP_write_c_local_include(genCodeInfo,
** **
**************************************************************************/
-extern STRING abmfP_str_bool= "Boolean";
-extern STRING abmfP_str_int= "int";
-extern STRING abmfP_str_string= "String";
-extern STRING abmfP_str_void= "void";
-extern STRING abmfP_str_widget = "Widget";
-extern STRING abmfP_str_xtpointer = "XtPointer";
-extern STRING abmfP_str_tt_msg= "Tt_message";
-extern STRING abmfP_str_voidpointer= "void *";
-extern STRING abmfP_str_intpointer= "int *";
-extern STRING abmfP_str_argvpointer= "char ***";
-
-extern STRING abmfP_str_empty = "";
-extern STRING abmfP_str_null = "NULL";
-extern STRING abmfP_str_zero = "0";
+STRING abmfP_str_bool= "Boolean";
+STRING abmfP_str_int= "int";
+STRING abmfP_str_string= "String";
+STRING abmfP_str_void= "void";
+STRING abmfP_str_widget = "Widget";
+STRING abmfP_str_xtpointer = "XtPointer";
+STRING abmfP_str_tt_msg= "Tt_message";
+STRING abmfP_str_voidpointer= "void *";
+STRING abmfP_str_intpointer= "int *";
+STRING abmfP_str_argvpointer= "char ***";
+
+STRING abmfP_str_empty = "";
+STRING abmfP_str_null = "NULL";
+STRING abmfP_str_zero = "0";
/*************************************************************************
* This file contains the implementation of the uil load
* component
*/
+#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
ret_val = (XtPointer)uil_child;
- abobj_ref = (ABObj)uil_child->header.user_data;
+ abobj_ref = (ABObj)(uintptr_t) uil_child->header.user_data;
if (abobj_ref == NULL)
{
obj_get_attach_value(rr->obj, rr->dir);
if (field_widget == NULL)
return;
- obj_ref = (ABObj)field_widget->header.user_data;
+ obj_ref = (ABObj)(uintptr_t) field_widget->header.user_data;
obj_set_attach_value(rr->obj, rr->dir, obj_ref);
XtFree((char *)rr);
}
break;
case AB_ARG_STRING:
indent(fp,DBLSP);
- fprintf(fp,"XmN%s = \"%s\" ;\n",arg->name,arg->value);
+ fprintf(fp,"XmN%s = \"%s\" ;\n",arg->name, (char *) arg->value);
break;
case AB_ARG_BOOLEAN:
/* REMIND: handle item obj's XmNset resource for an array */
break;
case AB_ARG_FONT:
indent(fp,DBLSP);
- fprintf(fp,"XmN%s = \"%s\" ;\n",arg->name,arg->value);
+ fprintf(fp,"XmN%s = \"%s\" ;\n",arg->name, (char *) arg->value);
break;
case AB_ARG_LITERAL: /* istring, but not quoted in output */
indent(fp,DBLSP);
/*
* This file contains the mapping between uil resources and ABObj attributes
*/
+#include <stdint.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
{
case AB_ARG_STRING:
case AB_ARG_LITERAL:
- fprintf(stderr,", value = %s\n",res_value); break;
+ fprintf(stderr,", value = %s\n", (char*) res_value); break;
case AB_ARG_INT:
- fprintf(stderr,", value = %d\n",res_value); break;
+ fprintf(stderr,", value = %d\n", (int)(intptr_t) res_value); break;
case AB_ARG_FLOAT:
- fprintf(stderr,", value = %g\n",res_value); break;
+ fprintf(stderr,", value = %g\n", (double)(uintptr_t) res_value); break;
case AB_ARG_BOOLEAN:
if(res_value) fprintf(stderr,", value = TRUE\n");
else fprintf(stderr,", value = FALSE\n");
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include <stdint.h>
#include <ab_private/UilDef.h>
#include <uil/UilDBDef.h>
int i;
printf("%lx unknown type: %d size: %d byte: 0x%x\n",
- az_symbol_entry,
+ (unsigned long) az_symbol_entry,
az_symbol_entry->header.b_tag,
az_symbol_entry->header.w_node_size,
- az_symbol_entry->header.b_type);
+ (unsigned) az_symbol_entry->header.b_type);
l_array = (int *) az_symbol_entry->b_value;
"%s %s(0x%lx) name: %s\n",
get_object_text(az_widget_entry->header.b_type),
get_tag_text(az_widget_entry->header.b_tag),
- az_widget_entry,
+ (unsigned long) az_widget_entry,
wid_name);
printf(
" controls: 0x%lx callbacks: 0x%lx arguments: 0x%lx parent_list: 0x%lx\n",
- az_widget_entry->az_controls,
- az_widget_entry->az_callbacks,
- az_widget_entry->az_arguments,
- az_widget_entry->parent_list);
+ (unsigned long) az_widget_entry->az_controls,
+ (unsigned long) az_widget_entry->az_callbacks,
+ (unsigned long) az_widget_entry->az_arguments,
+ (unsigned long) az_widget_entry->parent_list);
if (az_widget_entry->az_create_proc != NULL)
{
printf(" create proc: 0x%lx\n",
- az_widget_entry->az_create_proc);
+ (unsigned long) az_widget_entry->az_create_proc);
}
}
printf(
" CALLBACK name: %s proc ref: 0x%lx proc ref list: 0x%lx\n",
name_str,
- az_callback_entry->az_call_proc_ref,
- az_callback_entry->az_call_proc_ref_list);
+ (unsigned long) az_callback_entry->az_call_proc_ref,
+ (unsigned long) az_callback_entry->az_call_proc_ref_list);
}
/*
printf("%s LIST(0x%lx) count: %d gadget count: %d\n",
get_tag_text(az_list_entry->header.b_type),
- az_list_entry,
+ (unsigned long) az_list_entry,
az_list_entry->w_count,
az_list_entry->w_gadget_count);
}
)
{
printf("NAME(0x%lx) size: %d next name: 0x%lx object: 0x%lx",
- az_name_entry,
+ (unsigned long) az_name_entry,
az_name_entry->header.w_node_size,
- az_name_entry->az_next_name_entry,
- az_name_entry->az_object);
+ (unsigned long) az_name_entry->az_next_name_entry,
+ (unsigned long) az_name_entry->az_object);
if (az_name_entry->b_flags & sym_m_referenced)
{
{
printf("%s MODULE(0x%lx) version: 0x%lx \n",
az_module_entry->obj_header.az_name->c_text,
- az_module_entry,
- az_module_entry->az_version);
+ (unsigned long) az_module_entry,
+ (unsigned long) az_module_entry->az_version);
}
/*
{
printf(
"COLOR ITEM(0x%lx) size: %d letter: %c index: %d color: 0x%lx next: 0x%lx\n",
- az_color_item_entry,
+ (unsigned long) az_color_item_entry,
az_color_item_entry->header.w_node_size,
az_color_item_entry->b_letter,
az_color_item_entry->b_index,
- az_color_item_entry->az_color,
- az_color_item_entry->az_next);
+ (unsigned long) az_color_item_entry->az_color,
+ (unsigned long) az_color_item_entry->az_next);
}
/*
)
{
printf("PARENT LIST(0x%lx) parent: 0x%lx next: 0x%lx \n",
- az_parent_list_item,
- az_parent_list_item->parent,
- az_parent_list_item->next);
+ (unsigned long) az_parent_list_item,
+ (unsigned long) az_parent_list_item->parent,
+ (unsigned long) az_parent_list_item->next);
}
/*
)
{
printf("EXTERNAL DEF(0x%lx) next external: 0x%lx object: 0x%lx \n",
- az_external_def_entry,
- az_external_def_entry->az_next_object,
- az_external_def_entry->az_name);
+ (unsigned long) az_external_def_entry,
+ (unsigned long) az_external_def_entry->az_next_object,
+ (unsigned long) az_external_def_entry->az_name);
}
/*
imported_flag = " imported";
printf("PROC DEF(0x%lx) name: 0x%lx %s%s%s%s count: %d %s\n",
- az_proc_def_entry,
- az_proc_def_entry->obj_header.az_name,
+ (unsigned long) az_proc_def_entry,
+ (unsigned long) az_proc_def_entry->obj_header.az_name,
checking_flag,
private_flag,
exported_flag,
*/
printf("PROC REF(0x%lx) proc def: 0x%lx value: 0x%lx\n",
- az_proc_ref_entry,
- az_proc_ref_entry->az_proc_def,
- az_proc_ref_entry->az_arg_value);
+ (unsigned long) az_proc_ref_entry,
+ (unsigned long) az_proc_ref_entry->az_proc_def,
+ (unsigned long) az_proc_ref_entry->az_arg_value);
}
/*
{
printf(
"FORWARD REF(0x%lx) next ref: 0x%lx location: 0x%lx %s parent: 0x%lx\n",
- az_forward_ref_entry,
- az_forward_ref_entry->az_next_ref,
- az_forward_ref_entry->a_update_location,
+ (unsigned long) az_forward_ref_entry,
+ (unsigned long) az_forward_ref_entry->az_next_ref,
+ (unsigned long) az_forward_ref_entry->a_update_location,
get_object_text(az_forward_ref_entry->header.b_type),
- az_forward_ref_entry->parent);
+ (unsigned long) az_forward_ref_entry->parent);
printf(" name: 0x%lx %s\n",
- az_forward_ref_entry->az_name,
+ (unsigned long) az_forward_ref_entry->az_name,
az_forward_ref_entry->az_name->c_text);
}
imported_flag = " imported";
printf(" VALUE(0x%lx) size: %d name: 0x%lx %s%s%s%s",
- az_value_entry,
+ (unsigned long) az_value_entry,
az_value_entry->header.w_node_size,
- az_value_entry->obj_header.az_name,
+ (unsigned long) az_value_entry->obj_header.az_name,
builtin_flag, private_flag, exported_flag, imported_flag);
if (az_value_entry->obj_header.b_flags & sym_m_imported)
{
case sym_k_integer_value:
printf(" integer: %d \n",
- az_value_entry->value.l_integer);
+ (int)az_value_entry->value.l_integer);
break;
case sym_k_bool_value:
printf(" boolean: %d \n",
- az_value_entry->value.l_integer);
+ (int)az_value_entry->value.l_integer);
break;
case sym_k_float_value:
case sym_k_compound_string_value:
printf(" compound string\n first component: 0x%lx\n",
- az_value_entry->az_first_table_value);
+ (unsigned long) az_value_entry->az_first_table_value);
if ((az_value_entry->b_aux_flags & sym_m_table_entry) != 0)
{
printf(" next table entry: 0x%lx",
- az_value_entry->az_next_table_value);
+ (unsigned long) az_value_entry->az_next_table_value);
}
break;
get_charset_text(az_value_entry->b_charset));
else
printf(" font charset: userdefined(%x)",
- get_charset_text((long) az_value_entry->az_charset_value));
+ (unsigned) (uintptr_t) get_charset_text((long) az_value_entry->az_charset_value));
goto check_for_table_value;
printf(
" string length: %d\n charset: userdefined(%x) L_TO_R",
az_value_entry->w_length,
- az_value_entry->az_charset_value);
+ (unsigned) (uintptr_t) az_value_entry->az_charset_value);
break;
case XmSTRING_DIRECTION_R_TO_L:
printf(
" string length: %d\n charset: userdefined(%x) R_TO_L",
az_value_entry->w_length,
- az_value_entry->az_charset_value);
+ (unsigned) (uintptr_t) az_value_entry->az_charset_value);
break;
}
if ((az_value_entry->b_aux_flags & sym_m_table_entry) != 0)
{
printf(" next table entry: 0x%lx",
- az_value_entry->az_next_table_value);
+ (unsigned long) az_value_entry->az_next_table_value);
}
output_text
printf(" icon width: %d height: %d colors: 0x%lx rows: 0x%lx \n",
az_value_entry->value.z_icon->w_width,
az_value_entry->value.z_icon->w_height,
- az_value_entry->value.z_icon->az_color_table,
- az_value_entry->value.z_icon->az_rows);
+ (unsigned long) az_value_entry->value.z_icon->az_color_table,
+ (unsigned long) az_value_entry->value.z_icon->az_rows);
break;
common_table:
printf(" %s first table entry: 0x%lx\n",
- table_type, az_value_entry->az_first_table_value);
+ table_type, (unsigned long) az_value_entry->az_first_table_value);
break;
printf(" letter: %c index: %d color: 0x%lx\n",
az_value_entry->value.z_color[index].b_letter,
az_value_entry->value.z_color[index].b_index,
- az_value_entry->value.z_color[index].az_color);
+ (unsigned long) az_value_entry->value.z_color[index].az_color);
}
break;
{
printf("%s(0x%lx)",
get_tag_text(az_obj_entry->header.b_tag),
- az_obj_entry);
+ (unsigned long) az_obj_entry);
if (az_obj_entry->obj_header.az_name != NULL)
{
- printf(" name: 0x%lx", az_obj_entry->obj_header.az_name);
+ printf(" name: 0x%lx", (unsigned long) az_obj_entry->obj_header.az_name);
}
if (az_obj_entry->obj_header.az_reference != NULL)
{
printf(" reference: 0x%lx",
- az_obj_entry->obj_header.az_reference);
+ (unsigned long) az_obj_entry->obj_header.az_reference);
}
if (az_obj_entry->obj_header.az_next != NULL)
{
- printf(" next: 0x%lx", az_obj_entry->obj_header.az_next);
+ printf(" next: 0x%lx", (unsigned long) az_obj_entry->obj_header.az_next);
}
if (az_obj_entry->obj_header.b_flags & sym_m_private)
)
{
printf("INCLUDE FILE(0x%lx) file name: %s full file name: %s\n",
- az_symbol_entry,
+ (unsigned long) az_symbol_entry,
az_symbol_entry->file_name, az_symbol_entry->full_file_name);
}
{
printf("%s SECTION(0x%lx) entries: 0x%lx\n",
get_sym_section_text(az_symbol_entry->header.b_type),
- az_symbol_entry,
- az_symbol_entry->entries);
+ (unsigned long) az_symbol_entry,
+ (unsigned long) az_symbol_entry->entries);
}
static void
{
printf(
"DEFAULT OBJ VAR(0x%lx) next: 0x%lx object info: %d, variant_info: %d\n",
- az_symbol_entry,
- az_symbol_entry->next, az_symbol_entry->b_object_info,
+ (unsigned long) az_symbol_entry,
+ (unsigned long) az_symbol_entry->next, az_symbol_entry->b_object_info,
az_symbol_entry->b_variant_info);
}
)
{
printf("ROOT(0x%lx) tag: %d module: 0x%lx sections: 0x%lx\n module tail: ",
- az_symbol_entry,
+ (unsigned long) az_symbol_entry,
az_symbol_entry->header.b_tag,
- az_symbol_entry->module_hdr,
- az_symbol_entry->sections);
+ (unsigned long) az_symbol_entry->module_hdr,
+ (unsigned long) az_symbol_entry->sections);
}
static char *
/*
* Compares to entries (for qsort)
*/
-static long
+static int
bil_token_entry_compare(const void *leftEntry, const void *rightEntry)
{
return ((long)(((BilTokenIndexEntry)leftEntry)->string))
void
bilP_reset_token_text(void)
{
- sprintf(tokenText, "");
+ sprintf(tokenText, "%s", "");
}
if (bilP_load.project == NULL)
{
LoadErr = TRUE;
- sprintf(Buf, catgets(ABIL_MESSAGE_CATD, ABIL_MESSAGE_SET, 39,
+ sprintf(Buf, "%s", catgets(ABIL_MESSAGE_CATD, ABIL_MESSAGE_SET, 39,
"Unable to load project."));
errmsg = Buf;
goto epilogue;
else if (obj_get_name(obj) == NULL)
{
char buf[256];
- sprintf(buf, "(ABObj:0x%08lx)", obj);
+ sprintf(buf, "(ABObj:0x%08lx)", (unsigned long) obj);
strncpy(name, buf, name_size);
}
else
sprintf(eventParams, "(%s %d 0x%08lx)",
obj_get_safe_name(obj, buf1, 256),
event->info.update_with_data.update_code,
- event->info.update_with_data.update_data);
+ (unsigned long) event->info.update_with_data.update_data);
break;
default:
if (*eventParams == 0)
{
char objName[1024];
- sprintf(objName, "(%#lx", obj);
+ sprintf(objName, "(%#lx", (unsigned long) obj);
if (obj_get_name(obj) != NULL)
{
strcat(objName, " = ");
if (ok)
{
obj_str_ptr_name = istr_string(obj->name);
- sprintf((STRING)obj_name, "(ABObj %#lx", obj);
+ sprintf((STRING)obj_name, "(ABObj %#lx", (unsigned long) obj);
if (obj_str_ptr_name != NULL)
{
strcat((STRING)obj_name, " = ");
}
else
{
- sprintf((STRING)obj_name, "(ABObj %#lx)", obj);
+ sprintf((STRING)obj_name, "(ABObj %#lx)", (unsigned long) obj);
field_err("name");
}
if (configCount!= numSalientObjs)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(OBJXM_MESSAGE_CATD, OBJXM_MESSAGE_SET, 8,
"INTERNAL ERROR: salient counts don't match.\n") );
iRetVal= -1;
}
-static long
+static int
xm_res_table_entry_xmname_compare(const void *leftEntry, const void *rightEntry)
{
return
entry->values[i] = num_count;
if (insert_array(1,num_count, string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{ /* take int value from freelist */
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
entry->values[i] = freelist[freecount-1];
if (insert_array(1,freelist[freecount-1], string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
entry->values[i] = num_count;
if (insert_array(1, num_count, string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
if (insert_array(1,
freelist[freecount-1], string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
new_bucket = (Bucket)malloc (sizeof(BucketRec));
if (new_bucket == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return NULL ;
entry->next = new_bucket;
if (insert_array(1, num_count, string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
entry->next = new_bucket;
if (insert_array(1, freelist[freecount-1], string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
entry->values[i] = num_count;
if (insert_array(3,num_count, *string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{ /* take int value from freelist */
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
entry->values[i] = freelist[freecount-1];
if (insert_array(3,freelist[freecount-1], *string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
entry->values[i] = num_count;
if (insert_array(3, num_count, *string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
if (insert_array(3,
freelist[freecount-1], *string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
new_bucket = (Bucket)malloc (sizeof(BucketRec));
if (new_bucket == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return NULL ;
entry->next = new_bucket;
if (insert_array(3, num_count, *string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
entry->next = new_bucket;
if (insert_array(3, freelist[freecount-1], *string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
entry->values[i] = num_count;
if (insert_array(2, num_count, string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{ /* take int value from freelist */
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
entry->values[i] = freelist[freecount-1];
if (insert_array(2, freelist[freecount-1], string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
entry->values[i] = num_count;
if (insert_array(2, num_count, string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
if (insert_array(2,
freelist[freecount-1], string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
new_bucket = (Bucket)malloc (sizeof(BucketRec));
if (new_bucket == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return NULL ;
entry->next = new_bucket;
if (insert_array(2, num_count, string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
{
if(int_array[freelist[freecount-1]].refcount != 0)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 2,
"ISTR: error in allocating space for string\n") );
return NULL;
entry->next = new_bucket;
if (insert_array(2, freelist[freecount-1], string) == -1)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 1,
"ISTR: error in allocating to int array\n") );
return NULL;
freelist = (long *)malloc(ARRAYSIZE * sizeof(long));
if (freelist == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return 0 ;
assert(freelist != NULL);
if (freelist == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return 0 ;
int_array_set((STRN *)calloc(ARRAYSIZE, sizeof(STRN)));
if (int_array == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return 0 ;
assert(int_array != NULL);
if (int_array == NULL)
{
- fprintf(stderr,
+ fprintf(stderr, "%s",
catgets(UTIL_MESSAGE_CATD, UTIL_MESSAGE_SET, 3,
"ISTR: error in allocating memory\n") );
return 0 ;
}
else
{
- while ((*rightmost_slash == '/') && (*rightmost_slash != NULL))
+ while ((*rightmost_slash == '/') && (*rightmost_slash != 0))
{
++rightmost_slash;
}