proc.h (268B)
1 /* concerning the unit of computation */ 2 3 enum { 4 PSHalt, 5 PSWait, 6 PSError, 7 8 typedef struct Proc Proc; 9 10 struct Proc { 11 int pc; 12 int state; 13 Cell st[256]; 14 Cell rs[256]; 15 16 void (*send)(void*); 17 void (*recv)(void*); 18 ); 19 20 Proc * proccreate(void); 21 void procstep(Proc *); 22