Fix to decide data and return type explicity

This commit is contained in:
OBATA Akio
2021-10-08 17:25:17 +09:00
parent f7327e92d6
commit 2390217a75
23 changed files with 34 additions and 21 deletions

View File

@@ -246,7 +246,7 @@ write_assign_local_vars_for_icon(GenCodeInfo genCodeInfo, ABObj obj)
* Assigns values to local variables to create the label for
* this object
*/
static
static int
write_assign_local_vars_for_label(GenCodeInfo genCodeInfo, ABObj obj)
{
File codeFile = genCodeInfo->code_file;
@@ -369,7 +369,7 @@ write_assign_local_vars_for_label(GenCodeInfo genCodeInfo, ABObj obj)
* Assigns values to local variables to create the Accelerator Text for
* this object
*/
static
static int
write_assign_local_vars_for_acceltext(GenCodeInfo genCodeInfo, ABObj obj)
{
File codeFile = genCodeInfo->code_file;
@@ -409,7 +409,7 @@ write_assign_local_vars_for_acceltext(GenCodeInfo genCodeInfo, ABObj obj)
* Assigns values to local variables to create the Value for this object
* (valid only for text fields and text panes).
*/
static
static int
write_assign_local_vars_for_value(GenCodeInfo genCodeInfo, ABObj obj)
{
File codeFile = genCodeInfo->code_file;
@@ -447,7 +447,7 @@ write_assign_local_vars_for_value(GenCodeInfo genCodeInfo, ABObj obj)
* Assigns values to local variables to create button label strings for
* file choosers
*/
static
static int
write_assign_local_vars_for_fchooser(GenCodeInfo genCodeInfo, ABObj obj)
{
File codeFile = genCodeInfo->code_file;

View File

@@ -788,6 +788,7 @@ reverse_string(STRING buf)
* Gets the next C segment from the file.
*/
int
get_seg(BFile file, CSeg cseg)
{
int return_value = 0;

View File

@@ -500,6 +500,7 @@ abmfP_assign_widget_names(ABObj root)
}
int
abmfP_tree_set_written(ABObj root, BOOL written)
{
AB_TRAVERSAL trav;
@@ -515,6 +516,7 @@ abmfP_tree_set_written(ABObj root, BOOL written)
}
int
abmfP_obj_set_items_written(ABObj rootObj, BOOL written)
{
AB_TRAVERSAL trav;

View File

@@ -583,6 +583,7 @@ abmfP_write_tooltalk_callback_begin(
int
abmfP_write_clear_proc_decl(
GenCodeInfo genCodeInfo,
ABObj obj
@@ -979,6 +980,7 @@ abmfP_write_file_footer(
return 0;
}
int
abmfP_write_msg_clear_proc_decl(
GenCodeInfo genCodeInfo,
ABObj module

View File

@@ -2563,6 +2563,7 @@ bilP_tt_desktop_level_to_string(AB_TOOLTALK_LEVEL tt_level)
return (string);
}
BIL_TOKEN
bilP_default_button_to_token(AB_DEFAULT_BUTTON button)
{
BIL_TOKEN token = AB_BIL_UNDEF;

View File

@@ -490,6 +490,7 @@ objlist_dup(ABObjList list)
**************************************************************************/
static int
objlistP_shrink_array(ABObjList list, int sizeDiff)
{
int return_value = 0;

View File

@@ -475,6 +475,7 @@ objxm_remove_arg(
/*
* Set attachment Resources for a Composite Object hierarchy
*/
int
objxm_comp_set_attachment_args(
ABObj obj,
OBJXM_CONFIG_TYPE ctype

View File

@@ -257,7 +257,7 @@ util_get_dir_name_from_path(
#ifdef __cplusplus
extern "C" {
#endif
extern ftruncate(int filedes, off_t length);
extern int ftruncate(int filedes, off_t length);
#ifdef __cplusplus
} // extern "C"
#endif