MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / fillcharset

Function fillcharset

other_src/lua/src/lpeg.cpp:1055–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053
1054
1055static void fillcharset (Instruction *p, Charset cs) {
1056 switch (p[0].i.code) {
1057 case ISet: {
1058 loopset(i, cs[i] = p[1].buff[i]);
1059 break;
1060 }
1061 case IChar: {
1062 loopset(i, cs[i] = 0);
1063 setchar(cs, p[0].i.aux);
1064 break;
1065 }
1066 default: { /* any char may start unhandled instructions */
1067 loopset(i, cs[i] = 0xff);
1068 break;
1069 }
1070 }
1071}
1072
1073
1074/*

Callers 1

tocharsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected