Re: [gtk-list] ANNOUNCE: C++ wrapper for glib (sorta)



Whoops, sorry. I posted the broken hdr and src files.

> G_List.h (only part):
> class G_List {
>     GList   *pobj
> public:
>     GList* alloc(void);
>     void free(GList *list);
>     void free_1(GList *list);
>     GList* append(GList *list, gpointer data);
>     GList* prepend(GList *list, gpointer data);
> ...
should be
     GList* alloc(void);
     void free(void);
     void free_1(void);
     GList* append(gpointer data);
     GList* prepend(gpointer data);

G_List.cc (only part):
GList* G_List::alloc(void)
    { return g_list_alloc(); }
void G_List::free(void)
    { g_list_free(pobj); }
void G_List::free_1(void)
    { g_list_free_1(pobj); }
GList* G_List::append(gpointer data)
    { return g_list_append(pobj, data); }
GList* G_List::prepend(gpointer data)
    { return g_list_prepend(pobj, data); }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]