From: NeilBrown Date: Sat, 31 May 2014 05:51:22 +0000 (+1000) Subject: parsergen: discard text_cmp now that it is in a library X-Git-Tag: workingparser~33 X-Git-Url: https://ocean-lang.org/code/?a=commitdiff_plain;ds=sidebyside;h=361497137e01d3e401265df323974a9fcee34cce;p=ocean parsergen: discard text_cmp now that it is in a library Signed-off-by: NeilBrown --- diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index 0f1dd26..f87e961 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -201,18 +201,6 @@ symbol, but its type might be `Unknown`. int num_syms; ###### functions - static int text_cmp(struct text a, struct text b) - { - int len = a.len; - if (a.len > b.len) - len = b.len; - int cmp = strncmp(a.txt, b.txt, len); - if (cmp) - return cmp; - else - return a.len - b.len; - } - static struct symbol *sym_find(struct grammar *g, struct text s) { struct symbol **l = &g->syms;