mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix to decide data and return type explicity
This commit is contained in:
parent
f7327e92d6
commit
2390217a75
23 changed files with 34 additions and 21 deletions
|
@ -246,7 +246,7 @@ write_assign_local_vars_for_icon(GenCodeInfo genCodeInfo, ABObj obj)
|
||||||
* Assigns values to local variables to create the label for
|
* Assigns values to local variables to create the label for
|
||||||
* this object
|
* this object
|
||||||
*/
|
*/
|
||||||
static
|
static int
|
||||||
write_assign_local_vars_for_label(GenCodeInfo genCodeInfo, ABObj obj)
|
write_assign_local_vars_for_label(GenCodeInfo genCodeInfo, ABObj obj)
|
||||||
{
|
{
|
||||||
File codeFile = genCodeInfo->code_file;
|
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
|
* Assigns values to local variables to create the Accelerator Text for
|
||||||
* this object
|
* this object
|
||||||
*/
|
*/
|
||||||
static
|
static int
|
||||||
write_assign_local_vars_for_acceltext(GenCodeInfo genCodeInfo, ABObj obj)
|
write_assign_local_vars_for_acceltext(GenCodeInfo genCodeInfo, ABObj obj)
|
||||||
{
|
{
|
||||||
File codeFile = genCodeInfo->code_file;
|
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
|
* Assigns values to local variables to create the Value for this object
|
||||||
* (valid only for text fields and text panes).
|
* (valid only for text fields and text panes).
|
||||||
*/
|
*/
|
||||||
static
|
static int
|
||||||
write_assign_local_vars_for_value(GenCodeInfo genCodeInfo, ABObj obj)
|
write_assign_local_vars_for_value(GenCodeInfo genCodeInfo, ABObj obj)
|
||||||
{
|
{
|
||||||
File codeFile = genCodeInfo->code_file;
|
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
|
* Assigns values to local variables to create button label strings for
|
||||||
* file choosers
|
* file choosers
|
||||||
*/
|
*/
|
||||||
static
|
static int
|
||||||
write_assign_local_vars_for_fchooser(GenCodeInfo genCodeInfo, ABObj obj)
|
write_assign_local_vars_for_fchooser(GenCodeInfo genCodeInfo, ABObj obj)
|
||||||
{
|
{
|
||||||
File codeFile = genCodeInfo->code_file;
|
File codeFile = genCodeInfo->code_file;
|
||||||
|
|
|
@ -788,6 +788,7 @@ reverse_string(STRING buf)
|
||||||
* Gets the next C segment from the file.
|
* Gets the next C segment from the file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
int
|
||||||
get_seg(BFile file, CSeg cseg)
|
get_seg(BFile file, CSeg cseg)
|
||||||
{
|
{
|
||||||
int return_value = 0;
|
int return_value = 0;
|
||||||
|
|
|
@ -500,6 +500,7 @@ abmfP_assign_widget_names(ABObj root)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
abmfP_tree_set_written(ABObj root, BOOL written)
|
abmfP_tree_set_written(ABObj root, BOOL written)
|
||||||
{
|
{
|
||||||
AB_TRAVERSAL trav;
|
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)
|
abmfP_obj_set_items_written(ABObj rootObj, BOOL written)
|
||||||
{
|
{
|
||||||
AB_TRAVERSAL trav;
|
AB_TRAVERSAL trav;
|
||||||
|
|
|
@ -583,6 +583,7 @@ abmfP_write_tooltalk_callback_begin(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
abmfP_write_clear_proc_decl(
|
abmfP_write_clear_proc_decl(
|
||||||
GenCodeInfo genCodeInfo,
|
GenCodeInfo genCodeInfo,
|
||||||
ABObj obj
|
ABObj obj
|
||||||
|
@ -979,6 +980,7 @@ abmfP_write_file_footer(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
abmfP_write_msg_clear_proc_decl(
|
abmfP_write_msg_clear_proc_decl(
|
||||||
GenCodeInfo genCodeInfo,
|
GenCodeInfo genCodeInfo,
|
||||||
ABObj module
|
ABObj module
|
||||||
|
|
|
@ -2563,6 +2563,7 @@ bilP_tt_desktop_level_to_string(AB_TOOLTALK_LEVEL tt_level)
|
||||||
return (string);
|
return (string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIL_TOKEN
|
||||||
bilP_default_button_to_token(AB_DEFAULT_BUTTON button)
|
bilP_default_button_to_token(AB_DEFAULT_BUTTON button)
|
||||||
{
|
{
|
||||||
BIL_TOKEN token = AB_BIL_UNDEF;
|
BIL_TOKEN token = AB_BIL_UNDEF;
|
||||||
|
|
|
@ -490,6 +490,7 @@ objlist_dup(ABObjList list)
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
static int
|
||||||
objlistP_shrink_array(ABObjList list, int sizeDiff)
|
objlistP_shrink_array(ABObjList list, int sizeDiff)
|
||||||
{
|
{
|
||||||
int return_value = 0;
|
int return_value = 0;
|
||||||
|
|
|
@ -475,6 +475,7 @@ objxm_remove_arg(
|
||||||
/*
|
/*
|
||||||
* Set attachment Resources for a Composite Object hierarchy
|
* Set attachment Resources for a Composite Object hierarchy
|
||||||
*/
|
*/
|
||||||
|
int
|
||||||
objxm_comp_set_attachment_args(
|
objxm_comp_set_attachment_args(
|
||||||
ABObj obj,
|
ABObj obj,
|
||||||
OBJXM_CONFIG_TYPE ctype
|
OBJXM_CONFIG_TYPE ctype
|
||||||
|
|
|
@ -257,7 +257,7 @@ util_get_dir_name_from_path(
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
extern ftruncate(int filedes, off_t length);
|
extern int ftruncate(int filedes, off_t length);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -965,6 +965,7 @@ base64size(const unsigned long len)
|
||||||
return(b_len);
|
return(b_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Encoding
|
||||||
getEncodingType(const char * body,
|
getEncodingType(const char * body,
|
||||||
const unsigned int len,
|
const unsigned int len,
|
||||||
boolean_t strict_mime)
|
boolean_t strict_mime)
|
||||||
|
|
|
@ -2177,7 +2177,7 @@ return(newstring);
|
||||||
|
|
||||||
int NextId(void)
|
int NextId(void)
|
||||||
{
|
{
|
||||||
static id = 0;
|
static int id = 0;
|
||||||
|
|
||||||
return ++id;
|
return ++id;
|
||||||
}
|
}
|
||||||
|
@ -2713,7 +2713,7 @@ M_WCHAR *CycleEnt(LOGICAL init,
|
||||||
{
|
{
|
||||||
static M_TRIE *current ;
|
static M_TRIE *current ;
|
||||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||||
static length = 0 ;
|
static int length = 0 ;
|
||||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||||
|
|
||||||
if (init)
|
if (init)
|
||||||
|
|
|
@ -40,7 +40,7 @@ M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, unsigne
|
||||||
{
|
{
|
||||||
static M_TRIE *current ;
|
static M_TRIE *current ;
|
||||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||||
static length = 0 ;
|
static int length = 0 ;
|
||||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||||
|
|
||||||
if (init) {
|
if (init) {
|
||||||
|
|
|
@ -2164,7 +2164,7 @@ return(newstring);
|
||||||
|
|
||||||
int NextId(void)
|
int NextId(void)
|
||||||
{
|
{
|
||||||
static id = 0;
|
static int id = 0;
|
||||||
|
|
||||||
return ++id;
|
return ++id;
|
||||||
}
|
}
|
||||||
|
@ -2700,7 +2700,7 @@ M_WCHAR *CycleEnt(LOGICAL init,
|
||||||
{
|
{
|
||||||
static M_TRIE *current ;
|
static M_TRIE *current ;
|
||||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||||
static length = 0 ;
|
static int length = 0 ;
|
||||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||||
|
|
||||||
if (init)
|
if (init)
|
||||||
|
|
|
@ -40,7 +40,7 @@ M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, unsigne
|
||||||
{
|
{
|
||||||
static M_TRIE *current ;
|
static M_TRIE *current ;
|
||||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||||
static length = 0 ;
|
static int length = 0 ;
|
||||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||||
|
|
||||||
if (init) {
|
if (init) {
|
||||||
|
|
|
@ -6467,7 +6467,7 @@ static M_WCHAR *CycleEnt(LOGICAL init,
|
||||||
{
|
{
|
||||||
static M_TRIE *current ;
|
static M_TRIE *current ;
|
||||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||||
static length = 0 ;
|
static int length = 0 ;
|
||||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||||
|
|
||||||
if (init)
|
if (init)
|
||||||
|
|
|
@ -40,7 +40,7 @@ M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, unsigne
|
||||||
{
|
{
|
||||||
static M_TRIE *current ;
|
static M_TRIE *current ;
|
||||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||||
static length = 0 ;
|
static int length = 0 ;
|
||||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||||
|
|
||||||
if (init) {
|
if (init) {
|
||||||
|
|
|
@ -696,7 +696,7 @@ checkEntry (Xauth *auth)
|
||||||
|
|
||||||
static int doWrite;
|
static int doWrite;
|
||||||
|
|
||||||
static
|
static int
|
||||||
writeAuth (FILE *file, Xauth *auth)
|
writeAuth (FILE *file, Xauth *auth)
|
||||||
{
|
{
|
||||||
if (debugLevel >= 15) { /* normally too verbose */
|
if (debugLevel >= 15) { /* normally too verbose */
|
||||||
|
|
|
@ -127,7 +127,7 @@ static unsigned char key[8];
|
||||||
static long key[2];
|
static long key[2];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static sumFile (char *name, long sum[2]);
|
static int sumFile (char *name, long sum[2]);
|
||||||
|
|
||||||
#ifdef HASXDMAUTH
|
#ifdef HASXDMAUTH
|
||||||
|
|
||||||
|
|
|
@ -221,6 +221,7 @@ int ConvertAddr (XdmcpNetaddr saddr, int *len, char **addr)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
addressEqual (XdmcpNetaddr a1, int len1, XdmcpNetaddr a2, int len2)
|
addressEqual (XdmcpNetaddr a1, int len1, XdmcpNetaddr a2, int len2)
|
||||||
{
|
{
|
||||||
int partlen1, partlen2;
|
int partlen1, partlen2;
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
# include "dm.h"
|
# include "dm.h"
|
||||||
# include "vgmsg.h"
|
# include "vgmsg.h"
|
||||||
|
|
||||||
static receivedUsr1;
|
static int receivedUsr1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ extern int chooserFd;
|
||||||
extern FD_TYPE WellKnownSocketsMask;
|
extern FD_TYPE WellKnownSocketsMask;
|
||||||
extern int WellKnownSocketsMax;
|
extern int WellKnownSocketsMax;
|
||||||
|
|
||||||
|
int
|
||||||
CreateWellKnownSockets (void)
|
CreateWellKnownSockets (void)
|
||||||
{
|
{
|
||||||
struct sockaddr_in sock_addr;
|
struct sockaddr_in sock_addr;
|
||||||
|
@ -154,6 +155,7 @@ CreateWellKnownSockets (void)
|
||||||
FD_SET (chooserFd, &WellKnownSocketsMask);
|
FD_SET (chooserFd, &WellKnownSocketsMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
GetChooserAddr (char *addr, int *lenp)
|
GetChooserAddr (char *addr, int *lenp)
|
||||||
{
|
{
|
||||||
struct sockaddr_in in_addr;
|
struct sockaddr_in in_addr;
|
||||||
|
|
|
@ -1359,6 +1359,7 @@ static void load_into_bintree (
|
||||||
/* MAIN */
|
/* MAIN */
|
||||||
/* */
|
/* */
|
||||||
/**********************************************/
|
/**********************************************/
|
||||||
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -101,9 +101,9 @@ will not operate because there are no backdrop\nfiles available. Check $HOME/.dt
|
||||||
|
|
||||||
static int CreateBackdropDialog( Widget parent) ;
|
static int CreateBackdropDialog( Widget parent) ;
|
||||||
static void MoreBitmaps( void ) ;
|
static void MoreBitmaps( void ) ;
|
||||||
static ReadBitmaps( void ) ;
|
static int ReadBitmaps( void ) ;
|
||||||
static Boolean CreatePixmaps( void ) ;
|
static Boolean CreatePixmaps( void ) ;
|
||||||
static ReadBitmapDirectory( char *dir ) ;
|
static int ReadBitmapDirectory( char *dir ) ;
|
||||||
static void DrawBitmap(
|
static void DrawBitmap(
|
||||||
Widget w,
|
Widget w,
|
||||||
XtPointer client_data,
|
XtPointer client_data,
|
||||||
|
@ -557,7 +557,7 @@ cmpstringp(const void *p1, const void *p2)
|
||||||
* resource.
|
* resource.
|
||||||
* 4) Read the user's home directory /$HOME/.dt/backdrops.
|
* 4) Read the user's home directory /$HOME/.dt/backdrops.
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
static
|
static int
|
||||||
ReadBitmaps( void )
|
ReadBitmaps( void )
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
@ -686,7 +686,7 @@ CreatePixmaps( void )
|
||||||
* ReadBitmapDirectory()
|
* ReadBitmapDirectory()
|
||||||
* Create an array of bitmap names overriding duplicates
|
* Create an array of bitmap names overriding duplicates
|
||||||
************************************************************************/
|
************************************************************************/
|
||||||
static
|
static int
|
||||||
ReadBitmapDirectory(
|
ReadBitmapDirectory(
|
||||||
char *dir )
|
char *dir )
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ EditData edit;
|
||||||
/* Internal Variables */
|
/* Internal Variables */
|
||||||
/*+++++++++++++++++++++++++++++++++++++++*/
|
/*+++++++++++++++++++++++++++++++++++++++*/
|
||||||
static saveRestore save = {FALSE, 0, };
|
static saveRestore save = {FALSE, 0, };
|
||||||
static OldNewSame = False;
|
static Boolean OldNewSame = False;
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* ColorEditor() - Create ColorEditor dialog first time up.
|
* ColorEditor() - Create ColorEditor dialog first time up.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue