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:
Sasha Koshka
2023-11-06 03:28:08 -05:00
parent 57cbd2ca08
commit 20dca2d2e4
3 changed files with 27 additions and 61 deletions

View File

@@ -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);