34 lines · 706 B · C
RawDownload
#include	<u.h>#include	<libc.h>#include	<bio.h>#include	<libg.h>#include	"hdr.h"#include	"../kuten208.h" /*	map: put kuten for runes from..to into chars*/ voidkmap(int from, int to, long *chars){	long *l, *ll;	int k, k1, n; 	for(n = from; n <= to; n++)		chars[n-from] = 0;	for(l = tabkuten208, ll = tabkuten208+KUTEN208MAX; l < ll; l++)		if((*l >= from) && (*l <= to))			chars[*l-from] = l-tabkuten208;	k = 0;	k1 = 0;		/* not necessary; just shuts ken up */	for(n = from; n <= to; n++)		if(chars[n-from] == 0){			k++;			k1 = n;		}	if(k){		fprint(2, "%s: %d/%d chars found (missing include 0x%x=%d)\n", argv0, (to-from+1-k), to-from+1, k1, k1);		/*exits("map problem");/**/	}}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t