This will let us implement XkbAtomGetString on top of XkbAtomText,
instead of having the latter get a duplicated string, dump it into a
temporary buffer, and subsequently free it (sigh).
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
#define _XkbDupString(s) ((s) ? strdup(s) : NULL)
#define _XkbStrCaseCmp strcasecmp
+extern char *tbGetBuffer(unsigned int len);
+
#endif /* _XKBCOMMONINT_H_ */
#include <string.h>
#include <ctype.h>
-#define BUFFER_SIZE 512
+#define BUFFER_SIZE 1024
static char textBuffer[BUFFER_SIZE];
static int tbNext = 0;
-static char *
-tbGetBuffer(unsigned size)
+char *
+tbGetBuffer(unsigned int size)
{
char *rtrn;