Changeset 34509d5 for util.c


Ignore:
Timestamp:
Dec 23, 2007, 7:48:01 PM (17 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
93ee554
Parents:
9a6cc40
Message:
GLib/Unicode branch - adding glib dependency.

Linking BarnOwl to GLib. 

Cleaning up some malloc/realloc/strdup/free code, moving to owl_*
functions for each.

Changing to GLib memory allocation functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    rc2c5c77 r34509d5  
    446446void *owl_malloc(size_t size)
    447447{
    448   return(malloc(size));
     448  return(g_malloc(size));
    449449}
    450450
    451451void owl_free(void *ptr)
    452452{
    453   free(ptr);
     453  g_free(ptr);
    454454}
    455455
    456456char *owl_strdup(const char *s1)
    457457{
    458   return(strdup(s1));
     458  return(g_strdup(s1));
    459459}
    460460
    461461void *owl_realloc(void *ptr, size_t size)
    462462{
    463   return(realloc(ptr, size));
     463  return(g_realloc(ptr, size));
    464464}
    465465
Note: See TracChangeset for help on using the changeset viewer.