From b48327d357e0818d1a6ae2a064cfa7d1567e1242 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 15:17:44 -0800 Subject: feat(huge): huge refactor (in progress). Commented out libc includes to uncover all explicit dependencies. A large fraction has now been ported over (no testing). I did not port over the command line tools, such as the rc shell. These will be done independently - as of now I just want the library to stand independent. Compilation currently fails due to the lack of math functions. --- src/base/utf/vendor/mkrunetype.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/base/utf/vendor/mkrunetype.c') diff --git a/src/base/utf/vendor/mkrunetype.c b/src/base/utf/vendor/mkrunetype.c index 3d75ce8..dd6e2c7 100644 --- a/src/base/utf/vendor/mkrunetype.c +++ b/src/base/utf/vendor/mkrunetype.c @@ -39,7 +39,7 @@ isrange(char *label, char *prop, int force) { char ident[128]; if(snprintf(ident, arrlen(ident), "is%s_range", label) == arrlen(ident)) - panicf("out of identifier space\n"); + fatal("out of identifier space\n"); return putrange(ident, prop, force); } @@ -49,7 +49,7 @@ ispair(char *label, char *prop) { char ident[128]; if(snprintf(ident, arrlen(ident), "is%s_pair", label) == arrlen(ident)) - panicf("out of identifier space\n"); + fatal("out of identifier space\n"); return putpair(ident, prop); } @@ -59,7 +59,7 @@ issingle(char *label, char *prop) { char ident[128]; if(snprintf(ident, arrlen(ident), "is%s_single", label) == arrlen(ident)) - panicf("out of identifier space\n"); + fatal("out of identifier space\n"); return putsingle(ident, prop); } @@ -125,7 +125,7 @@ torange(char *label, int *index, int force) d = DELTA(index[l], l); if(d != (rune)d) - panicf("bad map delta %d", d); + fatal("bad map delta %d", d); for(r = l+1; r < NumRunes; r++){ if(DELTA(index[r], r) != d) @@ -162,7 +162,7 @@ topair(char *label, int *index) d = DELTA(index[l], l); if(d != (rune)d) - panicf("bad delta %d", d); + fatal("bad delta %d", d); for(r = l+2; r < NumRunes; r += 2){ if(DELTA(index[r], r) != d) @@ -198,7 +198,7 @@ tosingle(char *label, int *index) d = DELTA(index[i], i); if(d != (rune)d) - panicf("bad map delta %d", d); + fatal("bad map delta %d", d); if(!start){ printf("static rune to%s_single[] = {\n", label); @@ -268,7 +268,7 @@ static void usage(void) { fprintf(stderr, "usage: mkrunetype \n"); - exit(1); + rt·exit(1); } int @@ -285,7 +285,7 @@ main(int argc, char *argv[]) usage(); if((err=io·open(argv[0], sys·ORead, &utf8))) - panicf("can't open %s: %d: %s\n", argv[0], err, strerror(err)); + fatal("can't open %s: %d: %s\n", argv[0], err, strerror(err)); /* by default each character maps to itself */ for(i = 0; i < NumRunes; i++) { @@ -350,7 +350,7 @@ main(int argc, char *argv[]) break; default: badproperty: - panicf("unrecognized category '%s'", prop); + fatal("unrecognized category '%s'", prop); } /* grab transformations */ if(*field[Fupper]) -- cgit v1.2.1