jdict

command line tool for looking up terms in yomidict dictionaries
git clone anongit@rnpnr.xyz:jdict.git
Log | Files | Refs | Feed | README | LICENSE

Commit: de2b61c14c1c69bcd509f1269efc70fbb13ffcf3
Parent: bb8a1055f1a83152a612e30f9ed8ac2d5416007f
Author: Randy Palamar
Date:   Mon, 13 Nov 2023 23:17:42 -0700

shut up warnings

Diffstat:
Mjdict.c | 8++++----
Myomidict.c | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/jdict.c b/jdict.c @@ -184,8 +184,8 @@ make_ent(YomiTok *toks, char *data) static size_t parse_term_bank(DictEnt *ents, size_t len, const char *tbank) { - int r, ntoks, fd; - size_t flen, i = 0, nents = 0; + int i = 0, r, ntoks, fd; + size_t flen, nents = 0; char *data; YomiTok *toks = NULL; YomiScanner *s = NULL; @@ -445,8 +445,8 @@ main(int argc, char *argv[]) { char **terms = NULL, *t; struct Dict *dicts = NULL; - size_t ndicts = 0, nterms = 0; - int i, iflag = 0; + size_t i, ndicts = 0, nterms = 0; + int iflag = 0; argv0 = argv[0]; diff --git a/yomidict.c b/yomidict.c @@ -145,7 +145,7 @@ yomi_scan(YomiScanner *s, YomiTok *toks, ul ntoks) tok = &toks[s->parent]; for (;;) { - if (tok->start != -1 && tok->end == -1) { + if (tok->start != (ul)-1 && tok->end == (ul)-1) { /* inside unfinished tok */ tok->end = s->pos + 1; s->parent = tok->parent;