Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] Re: (PR#8547) GCC poisoning v2
Home

[Freeciv-Dev] Re: (PR#8547) GCC poisoning v2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8547) GCC poisoning v2
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Tue, 20 Apr 2004 23:22:36 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8547 >

On Tue, Apr 20, 2004 at 12:34:06PM -0700, Raimar Falke wrote:

With the memory functions I now get some real errors in the gtk2,xaw client and 
the server.

./amiga/amigaclient.c:222: usleep() function. (because select() is too slow and 
not needed to be
./amiga/amigaclient.c:225:void usleep(unsigned long usec)
./amiga/amigaclient.c:21:/* remove usage of strerror prototype */
./amiga/amigaclient.c:22:#define strerror strerror_unuse
./amiga/amigaclient.c:231: strerror() which also understand the non ANSI C 
errors. Complete.
./amiga/amigaclient.c:234:#undef strerror /* remove usage of strerror prototype 
*/
./amiga/amigaclient.c:236:const char *strerror(unsigned int error)
./amiga/amigaclient.c:95:  /* using malloc needs to free calls */
./amiga/amigaclient.c:123:        if((argv = 
(char**)malloc(sizeof(char*)*argc)))
./amiga/amigaclient.c:135:            else if((dest = argv[i++] = 
(char*)malloc(len+4)))
./amiga/amigaserver.c:363: usleep() function. (because select() is too slow). 
Complete.
./amiga/amigaserver.c:365:void usleep(unsigned long usec)
./amiga/amigaserver.c:371: strerror() which also understand the non ANSI C 
errors. Complete.
./amiga/amigaserver.c:374:/* const char *strerror(unsigned int error) */
./amiga/amigaserver.c:375:char *strerror(int error)
./amiga/amigaserver.c:135:  /* using malloc needs to free calls */
./amiga/amigaserver.c:163:        if((argv = 
(char**)malloc(sizeof(char*)*argc)))
./amiga/amigaserver.c:177:            else if((dest = argv[i++] = 
(char*)malloc(len+4)))
./amiga/gettext.c:103:          if((data = (struct mo_file_header *) 
malloc(size)))
./amiga/vsnprintf.c:137:int vsnprintf(char *buffer, int buffersize, const char 
*fmt0, va_list ap)
./amiga/vsnprintf.c:759:int snprintf(char *buf, int n, const char *fmt, ...)
./amiga/vsnprintf.c:765:  r = vsnprintf(buf, n, fmt, ap);
./amiga/vsnprintf.c:538: * It will be replaces with a malloc-ed on if it 
overflows.
./amiga/vsnprintf.c:701:        malloc (sizeof (void *) * (tablemax + 1));
./amiga/vsnprintf.c:745:        malloc (sizeof (unsigned char) * newsize);
./amiga/vsnprintf.c:749:        realloc(typetable, sizeof (unsigned char) * 
newsize);

./client/gui-gtk-2.0/citydlg.c:1533:    
realloc(pdialog->overview.supported_unit_nodes,
./client/gui-gtk-2.0/citydlg.c:1633:    
realloc(pdialog->overview.present_unit_nodes,

./client/gui-mui/citydlg.c:885:    struct city_node *node = 
malloc_struct(struct city_node);
./client/gui-mui/dialogs.c:976:    struct caravan_data *cd = 
malloc_struct(struct caravan_data);
./client/gui-mui/dialogs.c:995:    struct caravan_data *cd = 
malloc_struct(struct caravan_data);
./client/gui-mui/dialogs.c:1061:  struct New_Msg_Dlg *msg_dlg = (struct 
New_Msg_Dlg*)malloc(sizeof(struct New_Msg_Dlg)*(game.government_count+1));
./client/gui-mui/dialogs.c:1148:      if((msg_dlg = (struct 
New_Msg_Dlg*)malloc(sizeof(struct New_Msg_Dlg)*(count+2))))
./client/gui-mui/dialogs.c:1244:      if((msg_dlg = (struct 
New_Msg_Dlg*)malloc(sizeof(struct New_Msg_Dlg)*(count+2))))
./client/gui-mui/graphics.c:93:  struct Sprite *sprite = (struct Sprite *) 
malloc(sizeof(struct Sprite));
./client/gui-mui/graphics.c:163:  struct Sprite *sprite = (struct Sprite *) 
malloc(sizeof(struct Sprite));
./client/gui-mui/gui_main.c:1075:         printf("%s\n", strerror(errno));
./client/gui-mui/wldlg.c:241:  pdialog = malloc(sizeof(struct 
worklist_report_dialog));
./client/gui-mui/repodlgs.c:223:      if ((help_research_entries = (STRPTR *) 
malloc((j + 1) * sizeof(STRPTR))))
./client/gui-mui/repodlgs.c:255:    if ((help_goal_entries = (STRPTR *) 
malloc((j + 2) * sizeof(STRPTR))))

./client/gui-xaw/cityrep.c:528: city_list_text[j] = malloc(MAX_LEN_CITY_TEXT);

./server/sernet.c:748:      pconn->server.ping_timers = 
malloc(sizeof(*pconn->server.ping_timers));

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  "Some development methodoligies suck. In fack, I think most of them
   do. The Linux kernel development is an unorganized mess. The
   OpenBSD kernel development is a closed mess. XFree86 development
   is a mysterious mess. And that's before we even get to proprietary
   software, which is often ten times worse"
    -- John Goerzen in freeciv-dev

Attachment: find_native_functions.sh
Description: Bourne shell script


[Prev in Thread] Current Thread [Next in Thread]