aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-01-28 16:16:46 +0100
committerAndre Weissflog <floooh@gmail.com>2019-01-28 16:16:46 +0100
commit3b3208de706236919989fb585270d9a0c901fe74 (patch)
tree6131c61f02647c13c30dbf37104c64429f6bd6ec
parent8c2e573f165da60811a22f22eb885b2e60f8d363 (diff)
sokol_args.h: fix typenames
-rw-r--r--sokol_args.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_args.h b/sokol_args.h
index afd6cde7..2577f4cf 100644
--- a/sokol_args.h
+++ b/sokol_args.h
@@ -350,7 +350,7 @@ typedef struct {
typedef struct {
int max_args; /* number of key/value pairs in args array */
int num_args; /* number of valid items in args array */
- _sargs_kvp* args; /* key/value pair array */
+ _sargs_kvp_t* args; /* key/value pair array */
int buf_size; /* size of buffer in bytes */
int buf_pos; /* current buffer position */
char* buf; /* character buffer, first char is reserved and zero for 'empty string' */
@@ -645,7 +645,7 @@ SOKOL_API_IMPL void sargs_setup(const sargs_desc* desc) {
_sargs.max_args = _sargs_def(desc->max_args, _SARGS_MAX_ARGS_DEF);
_sargs.buf_size = _sargs_def(desc->buf_size, _SARGS_BUF_SIZE_DEF);
SOKOL_ASSERT(_sargs.buf_size > 8);
- _sargs.args = (_sargs_kvp*) SOKOL_CALLOC(_sargs.max_args, sizeof(_sargs_kvp));
+ _sargs.args = (_sargs_kvp_t*) SOKOL_CALLOC(_sargs.max_args, sizeof(_sargs_kvp_t));
_sargs.buf = (char*) SOKOL_CALLOC(_sargs.buf_size, sizeof(char));
/* the first character in buf is reserved and always zero, this is the 'empty string' */
_sargs.buf_pos = 1;