summaryrefslogtreecommitdiffstats
path: root/src/strindex.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-31 15:38:43 +0100
committerDavid Robillard <d@drobilla.net>2020-12-31 15:38:43 +0100
commitcaf3eb78549e3cba6690576aef043d4bae014e5c (patch)
treef8245f8ce0fc65dedf0c5806c909f13b0d9fad51 /src/strindex.c
parentad23cd354165b6c2926d8f23636010a3e0ea85ea (diff)
downloadzix-caf3eb78549e3cba6690576aef043d4bae014e5c.tar.gz
zix-caf3eb78549e3cba6690576aef043d4bae014e5c.tar.bz2
zix-caf3eb78549e3cba6690576aef043d4bae014e5c.zip
Fix use of reserved identifiers
Diffstat (limited to 'src/strindex.c')
-rw-r--r--src/strindex.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/strindex.c b/src/strindex.c
index 8cb05c9..a92b09b 100644
--- a/src/strindex.c
+++ b/src/strindex.c
@@ -25,15 +25,15 @@
#include <stdlib.h>
#include <string.h>
-typedef struct _ZixStrindexNode {
- struct _ZixStrindexNode* children; /* Children of this node */
- size_t num_children; /* Number of outgoing edges */
- char* first; /* Start of this suffix */
- char* label_first; /* Start of incoming label */
- char* label_last; /* End of incoming label */
+typedef struct ZixStrindexNode {
+ struct ZixStrindexNode* children; /* Children of this node */
+ size_t num_children; /* Number of outgoing edges */
+ char* first; /* Start of this suffix */
+ char* label_first; /* Start of incoming label */
+ char* label_last; /* End of incoming label */
} ZixStrindexNode;
-struct _ZixStrindex {
+struct ZixStrindexImpl {
char* s; /* String contained in this tree */
ZixStrindexNode* root; /* Root of the tree */
};
@@ -50,7 +50,7 @@ zix_strindex_new(const char* s)
const size_t len = strlen(s);
ZixStrindex* t = (ZixStrindex*)malloc(sizeof(ZixStrindex));
- memset(t, '\0', sizeof(struct _ZixStrindex));
+ memset(t, '\0', sizeof(ZixStrindex));
t->s = (char*)calloc(1, len + 1);
memcpy(t->s, s, len);