Small tweaks
Lots of new code imported.
This commit is contained in:
parent
a770daa795
commit
2277c5d7bb
86 changed files with 12444 additions and 91 deletions
22
src/cmd/factotum/proto.c
Normal file
22
src/cmd/factotum/proto.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include "std.h"
|
||||
#include "dat.h"
|
||||
|
||||
Proto *prototab[] = {
|
||||
&apop,
|
||||
&cram,
|
||||
&p9any,
|
||||
&p9sk1,
|
||||
&p9sk2,
|
||||
nil,
|
||||
};
|
||||
|
||||
Proto*
|
||||
protolookup(char *name)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i=0; prototab[i]; i++)
|
||||
if(strcmp(prototab[i]->name, name) == 0)
|
||||
return prototab[i];
|
||||
return nil;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue