10 sysfatal("out of memory");
21 sysfatal("out of memory");
30 t = emalloc(sizeof(Rune)*(runestrlen(s)+1));
32 sysfatal("out of memory");
38 erealloc(void *ov, uint n)
44 sysfatal("out of memory");
49 erunesmprint(char *fmt, ...)
55 s = runevsmprint(fmt, arg);
58 sysfatal("out of memory");
63 esmprint(char *fmt, ...)
69 s = vsmprint(fmt, arg);
72 sysfatal("out of memory");
81 fprint(2, "htmlroff: %L: ");
89 * For non-Unicode compilers, so we can say
90 * L("asdf") and get a Rune string. Assumes strings
91 * are identified by their pointers, so no mutable strings!
93 typedef struct Lhash Lhash;
100 static Lhash *hash[1127];
109 h = (uintptr)s%nelem(hash);
110 for(l=hash[h]; l; l=l->next)
113 l = emalloc(sizeof *l+(utflen(s)+1)*sizeof(Rune));
117 s += chartorune(p++, s);