mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtappbuilder: Change to ANSI function definitions
This commit is contained in:
parent
6478653e18
commit
bb7ac1f24e
41 changed files with 170 additions and 239 deletions
|
@ -307,8 +307,7 @@ ab_position_window(
|
|||
}
|
||||
|
||||
BOOL
|
||||
ab_window_leader_iconified(
|
||||
)
|
||||
ab_window_leader_iconified(void)
|
||||
{
|
||||
return(AB_win_leader->state & WindowIconified);
|
||||
}
|
||||
|
@ -677,15 +676,13 @@ set_windows_visibility(
|
|||
}
|
||||
|
||||
void
|
||||
ab_takedown_windows(
|
||||
)
|
||||
ab_takedown_windows(void)
|
||||
{
|
||||
set_windows_visibility(False);
|
||||
}
|
||||
|
||||
void
|
||||
ab_putback_windows(
|
||||
)
|
||||
ab_putback_windows(void)
|
||||
{
|
||||
set_windows_visibility(True);
|
||||
}
|
||||
|
@ -1222,7 +1219,7 @@ ab_palette_set_active(
|
|||
}
|
||||
|
||||
void
|
||||
ab_exit_dtbuilder()
|
||||
ab_exit_dtbuilder(void)
|
||||
{
|
||||
static DTB_MODAL_ANSWER answer;
|
||||
XtAppContext app;
|
||||
|
|
|
@ -226,8 +226,7 @@ BOOL in_undo = FALSE;
|
|||
* Called from main()...
|
||||
*/
|
||||
void
|
||||
abobj_edit_init(
|
||||
)
|
||||
abobj_edit_init(void)
|
||||
{
|
||||
obj_add_destroy_callback(edit_destroyOCB, "ATTCH_ED");
|
||||
}
|
||||
|
@ -401,8 +400,7 @@ edit_destroyOCB(
|
|||
* Initializes the clipboard
|
||||
*/
|
||||
static void
|
||||
init_clipboard(
|
||||
)
|
||||
init_clipboard(void)
|
||||
{
|
||||
if (!ABClipboard)
|
||||
{
|
||||
|
@ -1452,8 +1450,7 @@ init_undo_rec(
|
|||
* Initializes undo buffer
|
||||
*/
|
||||
static void
|
||||
init_undo(
|
||||
)
|
||||
init_undo(void)
|
||||
{
|
||||
init_undo_rec(&ABUndo);
|
||||
}
|
||||
|
@ -2124,8 +2121,7 @@ clear_undo_rec(
|
|||
*/
|
||||
|
||||
int
|
||||
abobj_cut(
|
||||
)
|
||||
abobj_cut(void)
|
||||
{
|
||||
ABObj project = proj_get_project();
|
||||
ABObj newObj = NULL;
|
||||
|
@ -2171,8 +2167,7 @@ abobj_cut(
|
|||
}
|
||||
|
||||
int
|
||||
abobj_copy(
|
||||
)
|
||||
abobj_copy(void)
|
||||
{
|
||||
ABObj project = proj_get_project(),
|
||||
newObj;
|
||||
|
@ -2807,8 +2802,7 @@ abobj_paste(
|
|||
}
|
||||
|
||||
int
|
||||
abobj_delete(
|
||||
)
|
||||
abobj_delete(void)
|
||||
{
|
||||
ABObj project = proj_get_project(),
|
||||
parent = NULL;
|
||||
|
@ -2862,8 +2856,7 @@ abobj_delete(
|
|||
}
|
||||
|
||||
int
|
||||
abobj_undo(
|
||||
)
|
||||
abobj_undo(void)
|
||||
{
|
||||
int iRet = 0;
|
||||
|
||||
|
@ -2929,16 +2922,14 @@ abobj_set_undo(
|
|||
}
|
||||
|
||||
int
|
||||
abobj_cancel_undo(
|
||||
)
|
||||
abobj_cancel_undo(void)
|
||||
{
|
||||
clear_undo_rec(&ABUndo);
|
||||
return 0;
|
||||
}
|
||||
|
||||
BOOL
|
||||
abobj_undo_active(
|
||||
)
|
||||
abobj_undo_active(void)
|
||||
{
|
||||
BOOL i;
|
||||
|
||||
|
@ -2956,8 +2947,7 @@ abobj_undo_active(
|
|||
* Is clipboard empty ?
|
||||
*/
|
||||
BOOL
|
||||
abobj_clipboard_is_empty(
|
||||
)
|
||||
abobj_clipboard_is_empty(void)
|
||||
{
|
||||
return(!ABClipboard || (ABClipboard->count == 0));
|
||||
}
|
||||
|
@ -2990,8 +2980,7 @@ abobj_in_clipboard(
|
|||
* Clears the clipboard
|
||||
*/
|
||||
void
|
||||
abobj_clipboard_clear(
|
||||
)
|
||||
abobj_clipboard_clear(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -1200,8 +1200,7 @@ abobj_set_menu_item_state(
|
|||
}
|
||||
|
||||
void
|
||||
abobj_strings_init(
|
||||
)
|
||||
abobj_strings_init(void)
|
||||
{
|
||||
char *props_str;
|
||||
char *undo_str;
|
||||
|
|
|
@ -2112,22 +2112,19 @@ abobj_set_save_needed(
|
|||
}
|
||||
|
||||
void
|
||||
abobj_disable_save_needed(
|
||||
)
|
||||
abobj_disable_save_needed(void)
|
||||
{
|
||||
save_needed_enabled = FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
abobj_enable_save_needed(
|
||||
)
|
||||
abobj_enable_save_needed(void)
|
||||
{
|
||||
save_needed_enabled = TRUE;
|
||||
}
|
||||
|
||||
BOOL
|
||||
abobj_save_needed_enabled(
|
||||
)
|
||||
abobj_save_needed_enabled(void)
|
||||
{
|
||||
return (save_needed_enabled);
|
||||
}
|
||||
|
|
|
@ -531,8 +531,7 @@ appfw_editor_apply(
|
|||
}
|
||||
|
||||
static void
|
||||
turnoff_changebars(
|
||||
)
|
||||
turnoff_changebars(void)
|
||||
{
|
||||
|
||||
prop_set_changebar(afs->vendor.changebar, PROP_CB_OFF);
|
||||
|
@ -621,8 +620,7 @@ obj_destroyedOCB(
|
|||
* the Application Framework Editor
|
||||
*/
|
||||
static BOOL
|
||||
appfw_editor_pending(
|
||||
)
|
||||
appfw_editor_pending(void)
|
||||
{
|
||||
if (afs && prop_changebars_pending(afs->prop_sheet))
|
||||
return TRUE;
|
||||
|
|
|
@ -387,8 +387,7 @@ attch_ed_get_parent(
|
|||
}
|
||||
|
||||
void
|
||||
attch_ed_init(
|
||||
)
|
||||
attch_ed_init(void)
|
||||
{
|
||||
obj_add_destroy_callback(attch_obj_destroyCB, "ATTCH_ED");
|
||||
obj_add_reparent_callback(attch_obj_reparentCB, "ATTCH_ED");
|
||||
|
@ -1189,8 +1188,7 @@ attch_editor_apply(
|
|||
}
|
||||
|
||||
static BOOL
|
||||
attch_edP_pending(
|
||||
)
|
||||
attch_edP_pending(void)
|
||||
{
|
||||
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
|
||||
|
||||
|
@ -1218,8 +1216,7 @@ attch_editor_activate(
|
|||
}
|
||||
|
||||
static void
|
||||
turnoff_changebars(
|
||||
)
|
||||
turnoff_changebars(void)
|
||||
{
|
||||
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
|
||||
|
||||
|
@ -3345,8 +3342,7 @@ attach_obj_changed(
|
|||
|
||||
|
||||
static void
|
||||
attch_ed_view_child_attachments(
|
||||
)
|
||||
attch_ed_view_child_attachments(void)
|
||||
{
|
||||
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
|
||||
ABObj cur_obj,
|
||||
|
@ -3377,8 +3373,7 @@ attch_ed_view_child_attachments(
|
|||
|
||||
|
||||
static void
|
||||
attch_ed_view_parent_attachments(
|
||||
)
|
||||
attch_ed_view_parent_attachments(void)
|
||||
{
|
||||
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
|
||||
ABObj cur_obj,
|
||||
|
@ -3410,8 +3405,7 @@ attch_ed_view_parent_attachments(
|
|||
}
|
||||
|
||||
static void
|
||||
attch_ed_activate_parent_child_button(
|
||||
)
|
||||
attch_ed_activate_parent_child_button(void)
|
||||
{
|
||||
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
|
||||
DtbAttchEdAttchEdDialogInfo attch_ed_cgen
|
||||
|
@ -3663,8 +3657,7 @@ print_attach_type(
|
|||
}
|
||||
|
||||
static BOOL
|
||||
attch_ed_verify_props(
|
||||
)
|
||||
attch_ed_verify_props(void)
|
||||
{
|
||||
AttchEditorSettingsRec *ats = &attch_editor_settings_rec;
|
||||
ATTCH_ED_ATTACH_TYPE attach_type = ATTCH_ED_NONE;
|
||||
|
|
|
@ -1591,10 +1591,7 @@ brws_delete_objects
|
|||
/*
|
||||
* create_browser_window - creates a new browser main window
|
||||
*/
|
||||
ABBrowser
|
||||
brws_create
|
||||
(
|
||||
)
|
||||
ABBrowser brws_create(void)
|
||||
{
|
||||
ABBrowser b;
|
||||
|
||||
|
@ -2160,7 +2157,7 @@ aob_proj_init_state
|
|||
* Initialize the object browser.
|
||||
*/
|
||||
static ABBrowser
|
||||
create_browser_struct()
|
||||
create_browser_struct(void)
|
||||
{
|
||||
ABBrowser b;
|
||||
|
||||
|
@ -2290,10 +2287,7 @@ draw_viewer(Viewer *v)
|
|||
/*
|
||||
* Create (malloc) structure to hold browser UI objects
|
||||
*/
|
||||
BrowserUiObj
|
||||
aob_create_ui_obj
|
||||
(
|
||||
)
|
||||
BrowserUiObj aob_create_ui_obj(void)
|
||||
{
|
||||
BrowserUiObj ui;
|
||||
|
||||
|
@ -2317,9 +2311,7 @@ aob_create_ui_obj
|
|||
* Create (malloc) structure to hold browser properties
|
||||
*/
|
||||
static BrowserProps
|
||||
aob_create_props
|
||||
(
|
||||
)
|
||||
aob_create_props(void)
|
||||
{
|
||||
BrowserProps props;
|
||||
|
||||
|
@ -2952,8 +2944,7 @@ brws_show_browser(
|
|||
}
|
||||
|
||||
void
|
||||
brws_init(
|
||||
)
|
||||
brws_init(void)
|
||||
{
|
||||
obj_add_rename_callback(brwsP_obj_renameOCB, "BRWS");
|
||||
obj_add_destroy_callback(brwsP_obj_destroyOCB, "BRWS");
|
||||
|
|
|
@ -452,7 +452,7 @@ cgen_notify_new_directory(STRING dir)
|
|||
|
||||
|
||||
int
|
||||
cgen_abort()
|
||||
cgen_abort(void)
|
||||
{
|
||||
public_entry_point();
|
||||
return cgenP_abort();
|
||||
|
@ -501,8 +501,7 @@ cgenP_init_props_module_list(
|
|||
* Add callbacks for object rename & destroy
|
||||
*/
|
||||
void
|
||||
cgenP_prop_init(
|
||||
)
|
||||
cgenP_prop_init(void)
|
||||
{
|
||||
obj_add_rename_callback(obj_renamedOCB, "cgen_prop_init");
|
||||
obj_add_update_callback(obj_updateOCB, "cgen_prop_init");
|
||||
|
@ -584,7 +583,7 @@ print_to_term(STRING msg)
|
|||
* Sends stdout and stderr to term window
|
||||
*/
|
||||
static int
|
||||
send_output_to_term()
|
||||
send_output_to_term(void)
|
||||
{
|
||||
static BOOL done = FALSE;
|
||||
int rc = 0;
|
||||
|
@ -859,7 +858,7 @@ term_execute_command(CG_SUBCOMMAND cmd_code, STRING cmd, STRING argv[])
|
|||
* Gets the slave device name and puts it into the file variable
|
||||
*/
|
||||
static int
|
||||
get_slave_device_name()
|
||||
get_slave_device_name(void)
|
||||
{
|
||||
String deviceName = NULL;
|
||||
|
||||
|
@ -889,7 +888,7 @@ get_slave_device_name()
|
|||
*************************************************************************/
|
||||
|
||||
static int
|
||||
exec_generate_code()
|
||||
exec_generate_code(void)
|
||||
{
|
||||
ABObj project= proj_get_project();
|
||||
STRING project_name= NULL;
|
||||
|
@ -929,7 +928,7 @@ exec_generate_code()
|
|||
}
|
||||
|
||||
static int
|
||||
exec_generate_main()
|
||||
exec_generate_main(void)
|
||||
{
|
||||
int rc = 0; /* return code */
|
||||
ABObj project= proj_get_project();
|
||||
|
@ -967,7 +966,7 @@ exec_generate_main()
|
|||
}
|
||||
|
||||
static int
|
||||
exec_generate_proj()
|
||||
exec_generate_proj(void)
|
||||
{
|
||||
int rc = 0; /* return code */
|
||||
ABObj project= proj_get_project();
|
||||
|
@ -1004,7 +1003,7 @@ exec_generate_proj()
|
|||
}
|
||||
|
||||
static int
|
||||
exec_generate_specific_files()
|
||||
exec_generate_specific_files(void)
|
||||
{
|
||||
int returnValue = 0;
|
||||
int rc = 0; /* return code */
|
||||
|
@ -1055,7 +1054,7 @@ epilogue:
|
|||
}
|
||||
|
||||
static int
|
||||
exec_generate_specific_files_and_main()
|
||||
exec_generate_specific_files_and_main(void)
|
||||
{
|
||||
int returnValue = 0;
|
||||
int rc = 0; /* return code */
|
||||
|
@ -1172,7 +1171,7 @@ epilogue:
|
|||
|
||||
|
||||
static int
|
||||
exec_make()
|
||||
exec_make(void)
|
||||
{
|
||||
int rc = 0; /* return code */
|
||||
STRING cmd = NULL;
|
||||
|
@ -1200,7 +1199,7 @@ exec_make()
|
|||
|
||||
|
||||
static int
|
||||
exec_run()
|
||||
exec_run(void)
|
||||
{
|
||||
ABObj project= NULL;
|
||||
char executable_name[1024];
|
||||
|
@ -1373,7 +1372,7 @@ exec_next_command_for_build_and_run(CG_SUBCOMMAND cmd_code, int exit_code)
|
|||
|
||||
|
||||
static int
|
||||
exec_first_build_and_run_command()
|
||||
exec_first_build_and_run_command(void)
|
||||
{
|
||||
int return_value= 0;
|
||||
if (!util_file_exists("Makefile"))
|
||||
|
@ -1470,7 +1469,7 @@ subprocess_exit(int exit_code)
|
|||
|
||||
|
||||
static int
|
||||
print_internal_err_message()
|
||||
print_internal_err_message(void)
|
||||
{
|
||||
print_to_term("****> UNSUCCESSFUL (Internal failure occurred).\n");
|
||||
return 0;
|
||||
|
@ -1492,7 +1491,7 @@ print_failure_message(CG_SUBCOMMAND cmd_code, int exit_code)
|
|||
|
||||
|
||||
static int
|
||||
print_success_message()
|
||||
print_success_message(void)
|
||||
{
|
||||
print_to_term("====> Completed successfully.\n");
|
||||
user_goal= CG_GOAL_UNDEF;
|
||||
|
@ -1545,7 +1544,7 @@ print_exit_message(int exitCode)
|
|||
|
||||
|
||||
static int
|
||||
print_abort_message()
|
||||
print_abort_message(void)
|
||||
{
|
||||
print_to_term("\n====> Command aborted.\n");
|
||||
user_goal= CG_GOAL_UNDEF;
|
||||
|
@ -1659,7 +1658,7 @@ epilogue:
|
|||
* We are running a process - desensitize most buttons.
|
||||
*/
|
||||
static int
|
||||
goto_busy_state()
|
||||
goto_busy_state(void)
|
||||
{
|
||||
XtSetSensitive(abort_button, True);
|
||||
XtSetSensitive(abort_item, True);
|
||||
|
@ -1681,7 +1680,7 @@ goto_busy_state()
|
|||
* We are waiting for user input
|
||||
*/
|
||||
static int
|
||||
goto_ready_state()
|
||||
goto_ready_state(void)
|
||||
{
|
||||
XtSetSensitive(abort_button, False);
|
||||
XtSetSensitive(abort_item, False);
|
||||
|
@ -2135,8 +2134,7 @@ obj_updateOCB(
|
|||
}
|
||||
|
||||
int
|
||||
cgenP_sync_up_dir(
|
||||
)
|
||||
cgenP_sync_up_dir(void)
|
||||
{
|
||||
STRING cmd = NULL;
|
||||
STRING request_dir = NULL;
|
||||
|
@ -2289,7 +2287,7 @@ save_done_cb(int status)
|
|||
|
||||
|
||||
static int
|
||||
check_path()
|
||||
check_path(void)
|
||||
{
|
||||
int return_value = 0;
|
||||
int rc = 0; /* return code */
|
||||
|
@ -2688,7 +2686,7 @@ epilogue:
|
|||
|
||||
|
||||
static int
|
||||
destroy_makefile()
|
||||
destroy_makefile(void)
|
||||
{
|
||||
destroy_links_to_file("makefile");
|
||||
destroy_links_to_file("Makefile");
|
||||
|
|
|
@ -140,8 +140,7 @@ static Widget CacheAnchor; /* Dummy widget used to control caching of color
|
|||
objxm_name_to_pixel (via XtConvertAndStore). */
|
||||
|
||||
char *
|
||||
display_color_chooser(
|
||||
)
|
||||
display_color_chooser(void)
|
||||
{
|
||||
extern Widget AB_toplevel;
|
||||
static int first_time = 1;
|
||||
|
@ -187,8 +186,7 @@ display_color_chooser(
|
|||
}
|
||||
|
||||
void
|
||||
create_color_chooser(
|
||||
)
|
||||
create_color_chooser(void)
|
||||
{
|
||||
extern Widget AB_toplevel;
|
||||
XmString label;
|
||||
|
|
|
@ -856,8 +856,7 @@ conn_set_source(
|
|||
}
|
||||
|
||||
extern ABObj
|
||||
connP_get_source(
|
||||
)
|
||||
connP_get_source(void)
|
||||
{
|
||||
return cur_source;
|
||||
}
|
||||
|
@ -882,8 +881,7 @@ conn_set_target(
|
|||
}
|
||||
|
||||
extern ABObj
|
||||
connP_get_target(
|
||||
)
|
||||
connP_get_target(void)
|
||||
{
|
||||
return cur_target;
|
||||
}
|
||||
|
@ -1521,8 +1519,7 @@ connP_make_help_vol_conn(
|
|||
* Initializes strings used in connections editor
|
||||
*/
|
||||
extern void
|
||||
conn_strings_init(
|
||||
)
|
||||
conn_strings_init(void)
|
||||
{
|
||||
unknown_str =
|
||||
XtNewString(catgets(Dtb_project_catd, 100, 158, "??unknown??"));
|
||||
|
|
|
@ -297,8 +297,7 @@ static void set_ctrls_for_target(
|
|||
|
||||
|
||||
extern void
|
||||
conn_init(
|
||||
)
|
||||
conn_init(void)
|
||||
{
|
||||
conn_strings_init();
|
||||
|
||||
|
@ -1883,7 +1882,7 @@ connP_update_on_show_status(
|
|||
|
||||
|
||||
BOOL
|
||||
connP_conn_is_possible()
|
||||
connP_conn_is_possible(void)
|
||||
{
|
||||
BOOL ConnIsPossible = FALSE;
|
||||
ABObj source = NULL,
|
||||
|
|
|
@ -186,8 +186,7 @@ static DndEditorSettingsRec dndEdInfo;
|
|||
*/
|
||||
|
||||
void
|
||||
dnd_ed_show_dialog(
|
||||
)
|
||||
dnd_ed_show_dialog(void)
|
||||
{
|
||||
/* If there is no DragAndDrop Editor, create it */
|
||||
if (AB_dnd_dialog == (Widget)NULL)
|
||||
|
@ -540,8 +539,7 @@ dnd_ed_editor_apply(void)
|
|||
|
||||
|
||||
static void
|
||||
dnd_turnoff_changebars(
|
||||
)
|
||||
dnd_turnoff_changebars(void)
|
||||
{
|
||||
DndEditorSettings dds = &dndEdInfo;
|
||||
prop_set_changebar(dds->drag_ops_checkbox.changebar,PROP_CB_OFF);
|
||||
|
@ -720,8 +718,7 @@ do_auto_apply(
|
|||
|
||||
|
||||
static void
|
||||
clear_editor_fields(
|
||||
)
|
||||
clear_editor_fields(void)
|
||||
{
|
||||
DndEditorSettingsRec *dds = &dndEdInfo;
|
||||
|
||||
|
|
|
@ -595,8 +595,7 @@ do_auto_apply(
|
|||
}
|
||||
|
||||
static void
|
||||
clear_editor_fields(
|
||||
)
|
||||
clear_editor_fields(void)
|
||||
{
|
||||
HelpEditorSettingsRec *hes = &Help_Editor_Settings_Rec;
|
||||
|
||||
|
@ -982,7 +981,7 @@ help_dispatchCB(Widget widget, XtPointer clientData, XtPointer callData)
|
|||
** apps built with App Builder will use as well.)
|
||||
*/
|
||||
static void
|
||||
help_test_onitem_help()
|
||||
help_test_onitem_help(void)
|
||||
{
|
||||
ABObj obj, root_obj, help_obj;
|
||||
Widget target;
|
||||
|
@ -1183,7 +1182,7 @@ update_object_menu_from_obj(
|
|||
** if there are no base or popup windows.
|
||||
*/
|
||||
static ABObj
|
||||
find_toplevel_obj()
|
||||
find_toplevel_obj(void)
|
||||
{
|
||||
ABObj obj, bwobj, pwobj, fcobj;
|
||||
AB_TRAVERSAL trav;
|
||||
|
|
|
@ -249,8 +249,7 @@ static void change_msg_moduleCB(
|
|||
******************************************************************/
|
||||
|
||||
void
|
||||
msgEd_show_dialog(
|
||||
)
|
||||
msgEd_show_dialog(void)
|
||||
{
|
||||
int numMods = 0;
|
||||
ABObj current_module = proj_get_cur_module();
|
||||
|
@ -340,8 +339,7 @@ msgEd_show_dialog(
|
|||
* Add callbacks for object rename & destroy
|
||||
*/
|
||||
static void
|
||||
msgEdP_init(
|
||||
)
|
||||
msgEdP_init(void)
|
||||
{
|
||||
/*
|
||||
* Initialize static strings used in message editor
|
||||
|
@ -521,8 +519,7 @@ msg_editor_init(
|
|||
}
|
||||
|
||||
static int
|
||||
msg_editor_clear(
|
||||
)
|
||||
msg_editor_clear(void)
|
||||
{
|
||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||
int sel_pos = 0;
|
||||
|
@ -717,14 +714,13 @@ msg_editor_load(
|
|||
|
||||
|
||||
static BOOL
|
||||
msg_editor_pending(
|
||||
)
|
||||
msg_editor_pending(void)
|
||||
{
|
||||
return(prop_changebars_pending(msg_editor_settings_rec.prop_sheet));
|
||||
}
|
||||
|
||||
static BOOL
|
||||
verify_name()
|
||||
verify_name(void)
|
||||
{
|
||||
BOOL retVal = TRUE;
|
||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||
|
@ -739,8 +735,7 @@ verify_name()
|
|||
}
|
||||
|
||||
static void
|
||||
turnoff_changebars(
|
||||
)
|
||||
turnoff_changebars(void)
|
||||
{
|
||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||
|
||||
|
@ -1610,7 +1605,7 @@ objlist_test_func(
|
|||
|
||||
|
||||
static BOOL
|
||||
verify_default_btn()
|
||||
verify_default_btn(void)
|
||||
{
|
||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||
AB_DEFAULT_BUTTON default_btn = AB_DEFAULT_BTN_UNDEF;
|
||||
|
@ -1679,7 +1674,7 @@ verify_default_btn()
|
|||
}
|
||||
|
||||
static BOOL
|
||||
verify_label()
|
||||
verify_label(void)
|
||||
{
|
||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||
BOOL validLabel = TRUE;
|
||||
|
@ -1731,7 +1726,7 @@ verify_label()
|
|||
}
|
||||
|
||||
static BOOL
|
||||
verify_buttons()
|
||||
verify_buttons(void)
|
||||
{
|
||||
MsgEditorSettingsRec *mes = &msg_editor_settings_rec;
|
||||
BOOL hasButtons = TRUE;
|
||||
|
@ -2555,8 +2550,7 @@ update_mod_opmenu(
|
|||
}
|
||||
|
||||
static void
|
||||
msgEdP_strings_init(
|
||||
)
|
||||
msgEdP_strings_init(void)
|
||||
{
|
||||
msgEd_strings[MSG_ED_RETRY_STR] =
|
||||
XtNewString(catgets(Dtb_project_catd, 100, 202, "Retry"));
|
||||
|
|
|
@ -843,7 +843,7 @@ typeCB(
|
|||
* Object destroy callback
|
||||
*/
|
||||
static int
|
||||
prop_choice_install_obj_destroy_CB()
|
||||
prop_choice_install_obj_destroy_CB(void)
|
||||
{
|
||||
static BOOL callback_installed = False;
|
||||
|
||||
|
|
|
@ -736,7 +736,7 @@ turnoff_changebars(
|
|||
}
|
||||
|
||||
static int
|
||||
combobox_install_obj_destroy_CB()
|
||||
combobox_install_obj_destroy_CB(void)
|
||||
{
|
||||
static BOOL callback_installed = False;
|
||||
|
||||
|
|
|
@ -312,8 +312,7 @@ PropGroupSettingsRec prop_group_settings_rec[AB_PROP_TYPE_NUM_VALUES];
|
|||
* Create a group object out of the selected group of objects.
|
||||
*/
|
||||
void
|
||||
abobj_group_selected_objects(
|
||||
)
|
||||
abobj_group_selected_objects(void)
|
||||
{
|
||||
ABObj project = proj_get_project();
|
||||
ABObj obj;
|
||||
|
@ -429,8 +428,7 @@ group_objects(
|
|||
* them after all groups have been ungrouped.
|
||||
*/
|
||||
void
|
||||
abobj_ungroup_selected_objects(
|
||||
)
|
||||
abobj_ungroup_selected_objects(void)
|
||||
{
|
||||
ABObj project = proj_get_project();
|
||||
ABSelectedRec sel;
|
||||
|
|
|
@ -870,7 +870,7 @@ turnoff_changebars(
|
|||
* Object destroy callback
|
||||
*/
|
||||
static int
|
||||
prop_list_install_obj_destroy_CB()
|
||||
prop_list_install_obj_destroy_CB(void)
|
||||
{
|
||||
static BOOL callback_installed = False;
|
||||
|
||||
|
|
|
@ -931,7 +931,7 @@ menu_editCB(
|
|||
* Object destroy callback
|
||||
*/
|
||||
static int
|
||||
prop_menu_install_obj_destroy_CB()
|
||||
prop_menu_install_obj_destroy_CB(void)
|
||||
{
|
||||
static BOOL callback_installed = False;
|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ turnoff_changebars(
|
|||
* Object destroy callback
|
||||
*/
|
||||
static int
|
||||
prop_menubar_install_obj_destroy_CB()
|
||||
prop_menubar_install_obj_destroy_CB(void)
|
||||
{
|
||||
static BOOL callback_installed = False;
|
||||
|
||||
|
|
|
@ -814,7 +814,7 @@ pw_obj_reparentedOCB(
|
|||
}
|
||||
|
||||
static void
|
||||
panedwinEdP_init()
|
||||
panedwinEdP_init(void)
|
||||
{
|
||||
obj_add_reparent_callback(pw_obj_reparentedOCB, "panedwinEdP_init");
|
||||
obj_add_rename_callback(pw_obj_renamedOCB, "panedwinEdP_init");
|
||||
|
@ -826,8 +826,7 @@ panedwinEdP_init()
|
|||
* Create a paned window out of the selected group of objects.
|
||||
*/
|
||||
void
|
||||
abobj_make_panedwin(
|
||||
)
|
||||
abobj_make_panedwin(void)
|
||||
{
|
||||
ABObj project = proj_get_project();
|
||||
ABObj obj = (ABObj) NULL;
|
||||
|
@ -1076,8 +1075,7 @@ west_compare(
|
|||
* paned window and delete the paned window object.
|
||||
*/
|
||||
void
|
||||
abobj_unmake_panedwin(
|
||||
)
|
||||
abobj_unmake_panedwin(void)
|
||||
{
|
||||
ABObj project = proj_get_project();
|
||||
ABObj pw_obj = NULL;
|
||||
|
|
|
@ -916,7 +916,7 @@ setup_content_settings(
|
|||
}
|
||||
|
||||
static int
|
||||
spinbox_install_obj_destroy_CB()
|
||||
spinbox_install_obj_destroy_CB(void)
|
||||
{
|
||||
static BOOL callback_installed = False;
|
||||
|
||||
|
|
|
@ -248,7 +248,7 @@ static int select_fn(
|
|||
* Dialog shell.
|
||||
*/
|
||||
void
|
||||
proj_show_dialog()
|
||||
proj_show_dialog(void)
|
||||
{
|
||||
ABObj proj = proj_get_project();
|
||||
BrowserUiObj ui;
|
||||
|
@ -320,7 +320,7 @@ projP_store_viewer(
|
|||
* Create viewer data structure for project window
|
||||
*/
|
||||
static Vwr
|
||||
create_proj_struct()
|
||||
create_proj_struct(void)
|
||||
{
|
||||
Vwr v;
|
||||
extern VMethods projP_methods;
|
||||
|
@ -893,8 +893,7 @@ mult_module_selected(
|
|||
}
|
||||
|
||||
int
|
||||
proj_init(
|
||||
)
|
||||
proj_init(void)
|
||||
{
|
||||
obj_add_rename_callback(projP_obj_renameOCB, "PROJ");
|
||||
obj_add_destroy_callback(projP_obj_destroyOCB, "PROJ");
|
||||
|
@ -948,8 +947,7 @@ proj_set_project(
|
|||
}
|
||||
|
||||
ABObj
|
||||
proj_get_project(
|
||||
)
|
||||
proj_get_project(void)
|
||||
{
|
||||
return AB_project;
|
||||
}
|
||||
|
@ -972,8 +970,7 @@ proj_set_cur_module(
|
|||
}
|
||||
|
||||
ABObj
|
||||
proj_get_cur_module(
|
||||
)
|
||||
proj_get_cur_module(void)
|
||||
{
|
||||
return AB_cur_module;
|
||||
}
|
||||
|
|
|
@ -1837,7 +1837,7 @@ proj_show_proj_dir(void)
|
|||
}
|
||||
|
||||
void
|
||||
proj_name_proj()
|
||||
proj_name_proj(void)
|
||||
{
|
||||
STRING proj_name = NULL;
|
||||
UI_MODAL_ANSWER answer = UI_ANSWER_NONE;
|
||||
|
|
|
@ -4475,8 +4475,7 @@ obj_options_buildCB(
|
|||
}
|
||||
|
||||
void
|
||||
strings_init(
|
||||
)
|
||||
strings_init(void)
|
||||
{
|
||||
LabelForString =
|
||||
XtNewString(catgets(Dtb_project_catd, 100, 215, "Label:"));
|
||||
|
|
|
@ -823,9 +823,7 @@ ui_set_busy_cursor(
|
|||
* Initialize object pixmaps
|
||||
*/
|
||||
static void
|
||||
init_obj_pixmaps
|
||||
(
|
||||
)
|
||||
init_obj_pixmaps(void)
|
||||
{
|
||||
Display *dpy;
|
||||
Pixmap tmp;
|
||||
|
|
|
@ -170,7 +170,7 @@ vwr_destroy_tree
|
|||
}
|
||||
|
||||
VNode
|
||||
vwr_create_node()
|
||||
vwr_create_node(void)
|
||||
{
|
||||
VNode bnode;
|
||||
|
||||
|
|
|
@ -792,11 +792,11 @@ static LibFuncRec abmfP_lrc_get_toplevel_widget =
|
|||
"dtb_get_toplevel_widget",
|
||||
|
||||
/* proto */
|
||||
"Widget dtb_get_toplevel_widget();",
|
||||
"Widget dtb_get_toplevel_widget(void);",
|
||||
|
||||
/* def */
|
||||
"Widget\n"
|
||||
"dtb_get_toplevel_widget()\n"
|
||||
"dtb_get_toplevel_widget(void)\n"
|
||||
"{\n"
|
||||
" return(dtb_project_toplevel_widget);\n"
|
||||
"}"
|
||||
|
@ -894,11 +894,11 @@ static LibFuncRec abmfP_lrc_get_command =
|
|||
"dtb_get_command",
|
||||
|
||||
/* proto */
|
||||
"char * dtb_get_command();",
|
||||
"char * dtb_get_command(void);",
|
||||
|
||||
/* def */
|
||||
"char * \n"
|
||||
"dtb_get_command() \n"
|
||||
"dtb_get_command(void) \n"
|
||||
"{\n"
|
||||
" return(dtb_save_command_str); \n"
|
||||
"}"
|
||||
|
@ -1174,7 +1174,7 @@ static LibFuncRec abmfP_lrc_do_onitem_help =
|
|||
"dtb_do_onitem_help",
|
||||
|
||||
/* proto */
|
||||
"void dtb_do_onitem_help();",
|
||||
"void dtb_do_onitem_help(void);",
|
||||
|
||||
/* def */
|
||||
"/*\n"
|
||||
|
@ -1183,7 +1183,7 @@ static LibFuncRec abmfP_lrc_do_onitem_help =
|
|||
"** main menubar's \"Help\" menu.\n"
|
||||
"*/\n"
|
||||
"void\n"
|
||||
"dtb_do_onitem_help()\n"
|
||||
"dtb_do_onitem_help(void)\n"
|
||||
"{\n"
|
||||
" Widget target;\n"
|
||||
"\n"
|
||||
|
@ -1456,14 +1456,14 @@ static LibFuncRec abmfP_lrc_get_client_session_saveCB =
|
|||
"dtb_get_client_session_saveCB",
|
||||
|
||||
/* proto */
|
||||
"DtbClientSessionSaveCB dtb_get_client_session_saveCB();",
|
||||
"DtbClientSessionSaveCB dtb_get_client_session_saveCB(void);",
|
||||
|
||||
/* def */
|
||||
"/*\n"
|
||||
" * dtb_get_client_session_saveCB()\n"
|
||||
" */\n"
|
||||
"DtbClientSessionSaveCB\n"
|
||||
"dtb_get_client_session_saveCB()\n"
|
||||
"dtb_get_client_session_saveCB(void)\n"
|
||||
"{\n"
|
||||
" return(dtb_client_session_saveCB);\n"
|
||||
"\n"
|
||||
|
@ -1603,14 +1603,14 @@ static LibFuncRec abmfP_lrc_get_client_session_restoreCB =
|
|||
"dtb_get_client_session_restoreCB",
|
||||
|
||||
/* proto */
|
||||
"DtbClientSessionRestoreCB dtb_get_client_session_restoreCB();",
|
||||
"DtbClientSessionRestoreCB dtb_get_client_session_restoreCB(void);",
|
||||
|
||||
/* def */
|
||||
"/*\n"
|
||||
" * dtb_get_client_session_restoreCB()\n"
|
||||
" */\n"
|
||||
"DtbClientSessionRestoreCB\n"
|
||||
"dtb_get_client_session_restoreCB()\n"
|
||||
"dtb_get_client_session_restoreCB(void)\n"
|
||||
"{\n"
|
||||
" return(dtb_client_session_restoreCB);\n"
|
||||
"\n"
|
||||
|
@ -4854,14 +4854,14 @@ static LibFuncRec abmfP_lrc_get_tt_msg_quitCB =
|
|||
"dtb_get_tt_msg_quitCB",
|
||||
|
||||
/* proto */
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_quitCB();",
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_quitCB(void);",
|
||||
|
||||
/* def */
|
||||
"/*\n"
|
||||
" * dtb_get_tt_msg_quitCB()\n"
|
||||
" */\n"
|
||||
"static DtbTTMsgHandlerCB\n"
|
||||
"dtb_get_tt_msg_quitCB()\n"
|
||||
"dtb_get_tt_msg_quitCB(void)\n"
|
||||
"{\n"
|
||||
" return(dtb_tt_msg_quitCB);\n"
|
||||
"}"
|
||||
|
@ -4940,14 +4940,14 @@ static LibFuncRec abmfP_lrc_get_tt_msg_do_commandCB =
|
|||
"dtb_get_tt_msg_do_commandCB",
|
||||
|
||||
/* proto */
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_do_commandCB();",
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_do_commandCB(void);",
|
||||
|
||||
/* def */
|
||||
"/* \n"
|
||||
" * dtb_get_tt_msg_do_commandCB()\n"
|
||||
" */ \n"
|
||||
"static DtbTTMsgHandlerCB\n"
|
||||
"dtb_get_tt_msg_do_commandCB()\n"
|
||||
"dtb_get_tt_msg_do_commandCB(void)\n"
|
||||
"{ \n"
|
||||
" return(dtb_tt_msg_do_commandCB);\n"
|
||||
"}"
|
||||
|
@ -5026,14 +5026,14 @@ static LibFuncRec abmfP_lrc_get_tt_msg_get_statusCB =
|
|||
"dtb_get_tt_msg_get_statusCB",
|
||||
|
||||
/* proto */
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_get_statusCB();",
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_get_statusCB(void);",
|
||||
|
||||
/* def */
|
||||
"/* \n"
|
||||
" * dtb_get_tt_msg_get_statusCB()\n"
|
||||
" */ \n"
|
||||
"static DtbTTMsgHandlerCB\n"
|
||||
"dtb_get_tt_msg_get_statusCB()\n"
|
||||
"dtb_get_tt_msg_get_statusCB(void)\n"
|
||||
"{ \n"
|
||||
" return(dtb_tt_msg_get_statusCB);\n"
|
||||
"}"
|
||||
|
@ -5112,14 +5112,14 @@ static LibFuncRec abmfP_lrc_get_tt_msg_pause_resumeCB =
|
|||
"dtb_get_tt_msg_pause_resumeCB",
|
||||
|
||||
/* proto */
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_pause_resumeCB();",
|
||||
"static DtbTTMsgHandlerCB dtb_get_tt_msg_pause_resumeCB(void);",
|
||||
|
||||
/* def */
|
||||
"/* \n"
|
||||
" * dtb_get_tt_msg_pause_resumeCB()\n"
|
||||
" */ \n"
|
||||
"static DtbTTMsgHandlerCB\n"
|
||||
"dtb_get_tt_msg_pause_resumeCB()\n"
|
||||
"dtb_get_tt_msg_pause_resumeCB(void)\n"
|
||||
"{ \n"
|
||||
" return(dtb_tt_msg_pause_resumeCB);\n"
|
||||
"}"
|
||||
|
@ -5245,7 +5245,7 @@ static LibFuncRec abmfP_lrc_tt_close =
|
|||
"dtb_tt_close",
|
||||
|
||||
/* proto */
|
||||
"void dtb_tt_close();",
|
||||
"void dtb_tt_close(void);",
|
||||
|
||||
/* def */
|
||||
"/*\n"
|
||||
|
@ -5253,7 +5253,7 @@ static LibFuncRec abmfP_lrc_tt_close =
|
|||
" * Close ToolTalk Connection\n"
|
||||
" */\n"
|
||||
"void\n"
|
||||
"dtb_tt_close()\n"
|
||||
"dtb_tt_close(void)\n"
|
||||
"{\n"
|
||||
" ttdt_close(NULL, NULL, True);\n"
|
||||
"}"
|
||||
|
|
|
@ -1681,7 +1681,7 @@ epilogue:
|
|||
|
||||
|
||||
CSegArray
|
||||
cseg_array_create()
|
||||
cseg_array_create(void)
|
||||
{
|
||||
CSegArray newArray = (CSegArray)util_malloc(sizeof(CSegArrayRec));
|
||||
if (newArray != NULL)
|
||||
|
@ -1869,7 +1869,7 @@ main(int argc, char *argv[])
|
|||
/* DTB_USER_CODE_START */
|
||||
|
||||
static int
|
||||
myfunc()
|
||||
myfunc(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1295,7 +1295,7 @@ bil_token_key_compare(const void *voidIstr, const void *voidEntry)
|
|||
|
||||
|
||||
static int
|
||||
bil_token_table_init()
|
||||
bil_token_table_init(void)
|
||||
{
|
||||
#define btt bil_token_table
|
||||
#define off ((int)BIL_TOKEN_MIN_VALUE) /* offset to 1st token */
|
||||
|
|
|
@ -404,7 +404,7 @@ yywrap()
|
|||
*************************************************************************/
|
||||
|
||||
int
|
||||
bilP_load_reset()
|
||||
bilP_load_reset(void)
|
||||
{
|
||||
line_number= 1;
|
||||
last_token= AB_BIL_UNDEF;
|
||||
|
@ -414,7 +414,7 @@ bilP_load_reset()
|
|||
}
|
||||
|
||||
int
|
||||
bilP_load_get_token()
|
||||
bilP_load_get_token(void)
|
||||
{
|
||||
return last_token;
|
||||
}
|
||||
|
@ -432,13 +432,13 @@ bilP_load_get_value(void)
|
|||
}
|
||||
|
||||
int
|
||||
bilP_load_get_length()
|
||||
bilP_load_get_length(void)
|
||||
{
|
||||
return tokenTextLen;
|
||||
}
|
||||
|
||||
int
|
||||
bilP_load_get_line_number()
|
||||
bilP_load_get_line_number(void)
|
||||
{
|
||||
return line_number;
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ typedef LOADATT_FUNC *LOADATT_FUNC_PTR;
|
|||
/*
|
||||
*/
|
||||
ISTRING
|
||||
bilP_get_string()
|
||||
bilP_get_string(void)
|
||||
{
|
||||
STRING tmp_str = NULL;
|
||||
ISTRING value1;
|
||||
|
@ -133,7 +133,7 @@ bilP_get_string()
|
|||
/*
|
||||
*/
|
||||
STRING
|
||||
bilP_load_att()
|
||||
bilP_load_att(void)
|
||||
{
|
||||
|
||||
return NULL;
|
||||
|
@ -432,14 +432,14 @@ bilP_load_att_drag_enabled(BIL_TOKEN valueToken)
|
|||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drag_ops_begin()
|
||||
bilP_load_att_drag_ops_begin(void)
|
||||
{
|
||||
nset_att(AB_BIL_DRAG_OPS);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drag_ops_end()
|
||||
bilP_load_att_drag_ops_end(void)
|
||||
{
|
||||
clear_att();
|
||||
return NULL;
|
||||
|
@ -456,14 +456,14 @@ bilP_load_att_drag_to_root_allowed(BIL_TOKEN valueToken)
|
|||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drag_types_begin()
|
||||
bilP_load_att_drag_types_begin(void)
|
||||
{
|
||||
nset_att(AB_BIL_DRAG_TYPES);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drag_types_end()
|
||||
bilP_load_att_drag_types_end(void)
|
||||
{
|
||||
clear_att();
|
||||
return NULL;
|
||||
|
@ -489,42 +489,42 @@ bilP_load_att_drop_site_child_allowed(BIL_TOKEN valueToken)
|
|||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drop_ops_begin()
|
||||
bilP_load_att_drop_ops_begin(void)
|
||||
{
|
||||
nset_att(AB_BIL_DROP_OPS);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drop_ops_end()
|
||||
bilP_load_att_drop_ops_end(void)
|
||||
{
|
||||
clear_att();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drop_types_begin()
|
||||
bilP_load_att_drop_types_begin(void)
|
||||
{
|
||||
nset_att(AB_BIL_DROP_TYPES);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_drop_types_end()
|
||||
bilP_load_att_drop_types_end(void)
|
||||
{
|
||||
clear_att();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_files_begin()
|
||||
bilP_load_att_files_begin(void)
|
||||
{
|
||||
nset_att(AB_BIL_FILES);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
STRING
|
||||
bilP_load_att_files_end()
|
||||
bilP_load_att_files_end(void)
|
||||
{
|
||||
clear_att();
|
||||
return NULL;
|
||||
|
|
|
@ -392,7 +392,7 @@ epilogue:
|
|||
*/
|
||||
|
||||
int
|
||||
bilP_load_end_of_file()
|
||||
bilP_load_end_of_file(void)
|
||||
{
|
||||
bilP_reset_token_text();
|
||||
return 0;
|
||||
|
@ -400,7 +400,7 @@ bilP_load_end_of_file()
|
|||
|
||||
|
||||
int
|
||||
bilP_load_end_of_data()
|
||||
bilP_load_end_of_data(void)
|
||||
{
|
||||
fseek(AByyin, 0, SEEK_END); /* move to end of file */
|
||||
return 0;
|
||||
|
|
|
@ -89,7 +89,7 @@ static BOOL align_tab_inited = FALSE;
|
|||
#define align_tab_check_init() (align_tab_inited? 0:align_tab_init())
|
||||
|
||||
static int
|
||||
align_tab_init()
|
||||
align_tab_init(void)
|
||||
{
|
||||
#define at align_tab
|
||||
align_tab_inited = TRUE;
|
||||
|
@ -122,7 +122,7 @@ static BOOL arg_type_tab_inited = FALSE;
|
|||
#define arg_type_tab_check_init() (arg_type_tab_inited? 0:arg_type_tab_init())
|
||||
|
||||
static int
|
||||
arg_type_tab_init()
|
||||
arg_type_tab_init(void)
|
||||
{
|
||||
#define att arg_type_tab
|
||||
arg_type_tab_inited = TRUE;
|
||||
|
@ -152,7 +152,7 @@ static BOOL gat_inited = FALSE;
|
|||
#define gat_check_init() (gat_inited? 0:gat_init())
|
||||
|
||||
static int
|
||||
gat_init()
|
||||
gat_init(void)
|
||||
{
|
||||
convert_fill_table(gat, AB_GIL_ATTRIBUTE_NUM_VALUES, istr_const(NULL));
|
||||
|
||||
|
@ -316,7 +316,7 @@ static ISTRING builtin_action_table[AB_BUILTIN_ACTION_NUM_VALUES] = {NULL};
|
|||
(builtin_action_table_inited? 0:builtin_action_table_init())
|
||||
|
||||
static int
|
||||
builtin_action_table_init()
|
||||
builtin_action_table_init(void)
|
||||
{
|
||||
#define bat builtin_action_table
|
||||
builtin_action_table_inited = TRUE;
|
||||
|
@ -379,7 +379,7 @@ static BOOL button_type_tab_inited = FALSE;
|
|||
(button_type_tab_inited? 0:button_type_tab_init())
|
||||
|
||||
static int
|
||||
button_type_tab_init()
|
||||
button_type_tab_init(void)
|
||||
{
|
||||
#define btt button_type_tab
|
||||
button_type_tab_inited = TRUE;
|
||||
|
@ -411,7 +411,7 @@ static BOOL compass_tab_inited = FALSE;
|
|||
#define cp_tab_check_init() (compass_tab_inited? 0:compass_tab_init())
|
||||
|
||||
static int
|
||||
compass_tab_init()
|
||||
compass_tab_init(void)
|
||||
{
|
||||
#define cpt compass_tab
|
||||
compass_tab_inited = TRUE;
|
||||
|
@ -488,7 +488,7 @@ static BOOL label_type_tab_inited = FALSE;
|
|||
(label_type_tab_inited? 0:label_type_tab_init())
|
||||
|
||||
static int
|
||||
label_type_tab_init()
|
||||
label_type_tab_init(void)
|
||||
{
|
||||
#define ltt label_type_tab
|
||||
label_type_tab_inited = TRUE;
|
||||
|
@ -590,7 +590,7 @@ static ISTRING obj_type_table[AB_OBJECT_TYPE_NUM_VALUES + 1] = {NULL};
|
|||
(obj_type_table_inited? 0:obj_type_table_init())
|
||||
|
||||
static int
|
||||
obj_type_table_init()
|
||||
obj_type_table_init(void)
|
||||
{
|
||||
#define ott obj_type_table
|
||||
obj_type_table_inited = TRUE;
|
||||
|
@ -714,7 +714,7 @@ static BOOL when_table_inited = FALSE;
|
|||
if (!when_table_inited) {when_table_init();}
|
||||
|
||||
static int
|
||||
when_table_init()
|
||||
when_table_init(void)
|
||||
{
|
||||
#define wt when_table
|
||||
int i = 0;
|
||||
|
|
|
@ -287,7 +287,7 @@ abil_print_custom_load_err(STRING errmsgstr)
|
|||
|
||||
/* Load the BIL error message table with message set and default text */
|
||||
static int
|
||||
abil_load_errmsg_table()
|
||||
abil_load_errmsg_table(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -263,7 +263,7 @@ obj_add_update_with_data_callback(ObjUpdateWithDataCallback cb,
|
|||
**************************************************************************/
|
||||
|
||||
int
|
||||
objP_notify_push_mode()
|
||||
objP_notify_push_mode(void)
|
||||
{
|
||||
if (modeStackIndex >= (MAX_MODE_DEPTH-1))
|
||||
{
|
||||
|
@ -294,7 +294,7 @@ objP_notify_clear_mode(OBJ_EVENT_MODE deadMode)
|
|||
* the notify queue is flushed.
|
||||
*/
|
||||
int
|
||||
objP_notify_pop_mode()
|
||||
objP_notify_pop_mode(void)
|
||||
{
|
||||
objP_notify_pop_mode_dont_flush();
|
||||
|
||||
|
@ -311,7 +311,7 @@ objP_notify_pop_mode()
|
|||
|
||||
|
||||
OBJ_EVENT_MODE
|
||||
objP_notify_get_mode()
|
||||
objP_notify_get_mode(void)
|
||||
{
|
||||
return current_notify_mode();
|
||||
}
|
||||
|
@ -698,7 +698,7 @@ epilogue:
|
|||
* generated while sending. Guarantees empty queue on return.
|
||||
*/
|
||||
static int
|
||||
flush_queue()
|
||||
flush_queue(void)
|
||||
{
|
||||
int iReturn= 0;
|
||||
int numEventsProcessed= 0;
|
||||
|
@ -1056,7 +1056,7 @@ event_print(OBJ_EVENT *event, FILE *outFile, BOOL addNewline, STRING name)
|
|||
|
||||
|
||||
static int
|
||||
event_queue_print()
|
||||
event_queue_print(void)
|
||||
{
|
||||
int oldFirst= firstEventIndex;
|
||||
int oldLast= lastEventIndex;
|
||||
|
|
|
@ -1602,7 +1602,7 @@ sig_fault_handler_uninstall(void)
|
|||
|
||||
|
||||
static void
|
||||
sig_fault_handler()
|
||||
sig_fault_handler(void)
|
||||
{
|
||||
if (mem_fault_occurred)
|
||||
{
|
||||
|
|
|
@ -1478,8 +1478,7 @@ formlist_append(
|
|||
* resize requests after they've been already managed.
|
||||
*/
|
||||
static int
|
||||
formlist_force_resize(
|
||||
)
|
||||
formlist_force_resize(void)
|
||||
{
|
||||
Dimension f_width, f_height;
|
||||
int i;
|
||||
|
|
|
@ -159,8 +159,7 @@ static XtArgVal resize_default(WidgetClass wclass);
|
|||
* Initialize all Xm string tables
|
||||
*/
|
||||
void
|
||||
objxm_strs_init(
|
||||
)
|
||||
objxm_strs_init(void)
|
||||
{
|
||||
load_enum_table();
|
||||
load_res_table();
|
||||
|
@ -606,8 +605,7 @@ xm_reg_res(
|
|||
* Load the resource table with known Motif/Xt resource names
|
||||
*/
|
||||
static void
|
||||
load_res_table(
|
||||
)
|
||||
load_res_table(void)
|
||||
{
|
||||
#define REG(xmn_, strn_, type_, enumt_, defv_, deff_) \
|
||||
(objxm_register_res(xmn_, strn_, type_, AB_ARG_CLASS_UNDEF, enumt_, defv_, deff_));
|
||||
|
@ -1164,8 +1162,7 @@ find_res_entry_by_strname(ISTRING strname)
|
|||
* Load the enum table with known Motif/Xt enum definition/strings
|
||||
*/
|
||||
static void
|
||||
load_enum_table(
|
||||
)
|
||||
load_enum_table(void)
|
||||
{
|
||||
#define XM_REG_ENUM(tbl_, i_, xmd_, strd_) \
|
||||
{ (tbl_).enums[i_].xmdef = (xmd_); \
|
||||
|
@ -1473,8 +1470,7 @@ load_enum_table(
|
|||
* Load the xmcreate table with known Motif/Xt create routines/strings
|
||||
*/
|
||||
static void
|
||||
load_xmcreate_table(
|
||||
)
|
||||
load_xmcreate_table(void)
|
||||
{
|
||||
#define XM_REG_XMCREATE(i_, ftn_, fstr_) \
|
||||
{ xm_xmcreate_table[i_].ftn = (ftn_); \
|
||||
|
|
|
@ -211,7 +211,7 @@ util_get_program_name(void)
|
|||
* the ones that don't we'll do a normal fork.
|
||||
*/
|
||||
pid_t
|
||||
util_vfork()
|
||||
util_vfork(void)
|
||||
{
|
||||
return fork();
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ static ISTRING builtin_action_table[AB_BUILTIN_ACTION_NUM_VALUES]= {NULL};
|
|||
(builtin_action_table_inited? 0:builtin_action_table_init())
|
||||
|
||||
static int
|
||||
builtin_action_table_init()
|
||||
builtin_action_table_init(void)
|
||||
{
|
||||
#define bat builtin_action_table
|
||||
builtin_action_table_inited= TRUE;
|
||||
|
@ -176,7 +176,7 @@ static ISTRING obj_type_table[AB_OBJECT_TYPE_NUM_VALUES+1]= {NULL};
|
|||
(obj_type_table_inited? 0:obj_type_table_init())
|
||||
|
||||
static int
|
||||
obj_type_table_init()
|
||||
obj_type_table_init(void)
|
||||
{
|
||||
#define ott obj_type_table
|
||||
obj_type_table_inited= TRUE;
|
||||
|
@ -248,7 +248,7 @@ static ISTRING browser_obj_type_table[AB_OBJECT_TYPE_NUM_VALUES+1]= {NULL};
|
|||
(browser_obj_type_table_inited? 0:browser_obj_type_table_init())
|
||||
|
||||
static int
|
||||
browser_obj_type_table_init()
|
||||
browser_obj_type_table_init(void)
|
||||
{
|
||||
#define bott browser_obj_type_table
|
||||
browser_obj_type_table_inited= TRUE;
|
||||
|
@ -316,7 +316,7 @@ static ISTRING when_table[AB_WHEN_NUM_VALUES];
|
|||
static BOOL when_table_inited= FALSE;
|
||||
|
||||
static int
|
||||
when_table_init()
|
||||
when_table_init(void)
|
||||
{
|
||||
#define wt when_table
|
||||
int i= 0;
|
||||
|
@ -389,7 +389,7 @@ static BOOL align_tab_inited= FALSE;
|
|||
#define align_tab_check_init() (align_tab_inited? 0:align_tab_init())
|
||||
|
||||
static int
|
||||
align_tab_init()
|
||||
align_tab_init(void)
|
||||
{
|
||||
#define at align_tab
|
||||
align_tab_inited= TRUE;
|
||||
|
@ -429,7 +429,7 @@ static BOOL label_type_tab_inited= FALSE;
|
|||
(label_type_tab_inited? 0:label_type_tab_init())
|
||||
|
||||
static int
|
||||
label_type_tab_init()
|
||||
label_type_tab_init(void)
|
||||
{
|
||||
#define ltt label_type_tab
|
||||
label_type_tab_inited= TRUE;
|
||||
|
@ -469,7 +469,7 @@ static BOOL button_type_tab_inited= FALSE;
|
|||
(button_type_tab_inited? 0:button_type_tab_init())
|
||||
|
||||
static int
|
||||
button_type_tab_init()
|
||||
button_type_tab_init(void)
|
||||
{
|
||||
#define btt button_type_tab
|
||||
button_type_tab_inited= TRUE;
|
||||
|
@ -504,7 +504,7 @@ static BOOL arg_class_tab_inited= FALSE;
|
|||
(arg_class_tab_inited? 0:arg_class_tab_init())
|
||||
|
||||
static int
|
||||
arg_class_tab_init()
|
||||
arg_class_tab_init(void)
|
||||
{
|
||||
#define att arg_class_tab
|
||||
arg_class_tab_inited= TRUE;
|
||||
|
@ -585,7 +585,7 @@ static BOOL arg_type_tab_inited= FALSE;
|
|||
#define arg_type_tab_check_init() (arg_type_tab_inited? 0:arg_type_tab_init())
|
||||
|
||||
static int
|
||||
arg_type_tab_init()
|
||||
arg_type_tab_init(void)
|
||||
{
|
||||
#define att arg_type_tab
|
||||
arg_type_tab_inited= TRUE;
|
||||
|
@ -703,7 +703,7 @@ static BOOL container_tab_inited= FALSE;
|
|||
#define container_tab_check_init() (container_tab_inited? 0:container_tab_init())
|
||||
|
||||
static int
|
||||
container_tab_init()
|
||||
container_tab_init(void)
|
||||
{
|
||||
#define cont container_tab
|
||||
container_tab_inited= TRUE;
|
||||
|
@ -747,7 +747,7 @@ static BOOL item_tab_inited= FALSE;
|
|||
#define item_tab_check_init() (item_tab_inited? 0:item_tab_init())
|
||||
|
||||
static int
|
||||
item_tab_init()
|
||||
item_tab_init(void)
|
||||
{
|
||||
#define it item_tab
|
||||
item_tab_inited= TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue