Use Xt memory allocation functions
Why do these even exist? I mean I guess there are some additions compared to the standard ones but like why, why not just make supplemental ones. Do these allocation functions do some wierd different shit? What?
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef _XmdBuffer_h
|
||||
#define _XmdBuffer_h
|
||||
|
||||
#include <stddef.h>
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
/* Buffer is a struct that keeps track of a variable length array of data. It
|
||||
is like a piggy bank, you can add stuff to it and then break it to get access
|
||||
@@ -10,7 +10,7 @@
|
||||
typedef struct _XmdBuffer XmdBuffer;
|
||||
|
||||
/* XmdBufferNew creates a new buffer with the specified element size. */
|
||||
XmdBuffer *XmdBufferNew (size_t element);
|
||||
XmdBuffer *XmdBufferNew (Cardinal size);
|
||||
|
||||
/* XmdBufferPush adds a new element to the buffer. */
|
||||
void XmdBufferPush (XmdBuffer *buffer, void *element);
|
||||
|
||||
Reference in New Issue
Block a user