mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +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
|
||||
* 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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -490,6 +490,7 @@ objlist_dup(ABObjList list)
|
|||
**************************************************************************/
|
||||
|
||||
|
||||
static int
|
||||
objlistP_shrink_array(ABObjList list, int sizeDiff)
|
||||
{
|
||||
int return_value = 0;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -965,6 +965,7 @@ base64size(const unsigned long len)
|
|||
return(b_len);
|
||||
}
|
||||
|
||||
Encoding
|
||||
getEncodingType(const char * body,
|
||||
const unsigned int len,
|
||||
boolean_t strict_mime)
|
||||
|
|
|
@ -2177,7 +2177,7 @@ return(newstring);
|
|||
|
||||
int NextId(void)
|
||||
{
|
||||
static id = 0;
|
||||
static int id = 0;
|
||||
|
||||
return ++id;
|
||||
}
|
||||
|
@ -2713,7 +2713,7 @@ M_WCHAR *CycleEnt(LOGICAL init,
|
|||
{
|
||||
static M_TRIE *current ;
|
||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||
static length = 0 ;
|
||||
static int length = 0 ;
|
||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||
|
||||
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 *ancestor[M_NAMELEN + 1] ;
|
||||
static length = 0 ;
|
||||
static int length = 0 ;
|
||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||
|
||||
if (init) {
|
||||
|
|
|
@ -2164,7 +2164,7 @@ return(newstring);
|
|||
|
||||
int NextId(void)
|
||||
{
|
||||
static id = 0;
|
||||
static int id = 0;
|
||||
|
||||
return ++id;
|
||||
}
|
||||
|
@ -2700,7 +2700,7 @@ M_WCHAR *CycleEnt(LOGICAL init,
|
|||
{
|
||||
static M_TRIE *current ;
|
||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||
static length = 0 ;
|
||||
static int length = 0 ;
|
||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||
|
||||
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 *ancestor[M_NAMELEN + 1] ;
|
||||
static length = 0 ;
|
||||
static int length = 0 ;
|
||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||
|
||||
if (init) {
|
||||
|
|
|
@ -6467,7 +6467,7 @@ static M_WCHAR *CycleEnt(LOGICAL init,
|
|||
{
|
||||
static M_TRIE *current ;
|
||||
static M_TRIE *ancestor[M_NAMELEN + 1] ;
|
||||
static length = 0 ;
|
||||
static int length = 0 ;
|
||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||
|
||||
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 *ancestor[M_NAMELEN + 1] ;
|
||||
static length = 0 ;
|
||||
static int length = 0 ;
|
||||
static M_WCHAR name[M_NAMELEN + 1] ;
|
||||
|
||||
if (init) {
|
||||
|
|
|
@ -696,7 +696,7 @@ checkEntry (Xauth *auth)
|
|||
|
||||
static int doWrite;
|
||||
|
||||
static
|
||||
static int
|
||||
writeAuth (FILE *file, Xauth *auth)
|
||||
{
|
||||
if (debugLevel >= 15) { /* normally too verbose */
|
||||
|
|
|
@ -127,7 +127,7 @@ static unsigned char key[8];
|
|||
static long key[2];
|
||||
#endif
|
||||
|
||||
static sumFile (char *name, long sum[2]);
|
||||
static int sumFile (char *name, long sum[2]);
|
||||
|
||||
#ifdef HASXDMAUTH
|
||||
|
||||
|
|
|
@ -221,6 +221,7 @@ int ConvertAddr (XdmcpNetaddr saddr, int *len, char **addr)
|
|||
return retval;
|
||||
}
|
||||
|
||||
int
|
||||
addressEqual (XdmcpNetaddr a1, int len1, XdmcpNetaddr a2, int len2)
|
||||
{
|
||||
int partlen1, partlen2;
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
# include "dm.h"
|
||||
# include "vgmsg.h"
|
||||
|
||||
static receivedUsr1;
|
||||
static int receivedUsr1;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -105,6 +105,7 @@ extern int chooserFd;
|
|||
extern FD_TYPE WellKnownSocketsMask;
|
||||
extern int WellKnownSocketsMax;
|
||||
|
||||
int
|
||||
CreateWellKnownSockets (void)
|
||||
{
|
||||
struct sockaddr_in sock_addr;
|
||||
|
@ -154,6 +155,7 @@ CreateWellKnownSockets (void)
|
|||
FD_SET (chooserFd, &WellKnownSocketsMask);
|
||||
}
|
||||
|
||||
int
|
||||
GetChooserAddr (char *addr, int *lenp)
|
||||
{
|
||||
struct sockaddr_in in_addr;
|
||||
|
|
|
@ -1359,6 +1359,7 @@ static void load_into_bintree (
|
|||
/* MAIN */
|
||||
/* */
|
||||
/**********************************************/
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
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 void MoreBitmaps( void ) ;
|
||||
static ReadBitmaps( void ) ;
|
||||
static int ReadBitmaps( void ) ;
|
||||
static Boolean CreatePixmaps( void ) ;
|
||||
static ReadBitmapDirectory( char *dir ) ;
|
||||
static int ReadBitmapDirectory( char *dir ) ;
|
||||
static void DrawBitmap(
|
||||
Widget w,
|
||||
XtPointer client_data,
|
||||
|
@ -557,7 +557,7 @@ cmpstringp(const void *p1, const void *p2)
|
|||
* resource.
|
||||
* 4) Read the user's home directory /$HOME/.dt/backdrops.
|
||||
************************************************************************/
|
||||
static
|
||||
static int
|
||||
ReadBitmaps( void )
|
||||
{
|
||||
int status;
|
||||
|
@ -686,7 +686,7 @@ CreatePixmaps( void )
|
|||
* ReadBitmapDirectory()
|
||||
* Create an array of bitmap names overriding duplicates
|
||||
************************************************************************/
|
||||
static
|
||||
static int
|
||||
ReadBitmapDirectory(
|
||||
char *dir )
|
||||
|
||||
|
|
|
@ -162,7 +162,7 @@ EditData edit;
|
|||
/* Internal Variables */
|
||||
/*+++++++++++++++++++++++++++++++++++++++*/
|
||||
static saveRestore save = {FALSE, 0, };
|
||||
static OldNewSame = False;
|
||||
static Boolean OldNewSame = False;
|
||||
|
||||
/************************************************************************
|
||||
* ColorEditor() - Create ColorEditor dialog first time up.
|
||||
|
|
Loading…
Reference in a new issue