scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit a5b21461738ce6ca8c80071ef594e931c77ffbe4
parent d394111bab814e96386aaf55023f26a4c59140e6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  5 Mar 2024 09:13:51 +0100

as: Remove unused cmp()

Diffstat:
Msrc/cmd/as/main.c | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/cmd/as/main.c b/src/cmd/as/main.c @@ -22,19 +22,6 @@ cleanup(void) remove(outfile); } -static int -cmp(const void *f1, const void *f2) -{ - const Ins *ins = f2; - const char *s = f1; - int d; - - if ((d = *s - *ins->str) != 0) - return d; - - return strcmp(s, ins->str); -} - static Ins * decode(char *s) {