LEFT | RIGHT |
(no file at all) | |
1 // Inferno utils/6c/peep.c | 1 // Inferno utils/6c/peep.c |
2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/peep.c | 2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/peep.c |
3 // | 3 // |
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. | 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. |
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) | 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) |
6 // Portions Copyright © 1997-1999 Vita Nuova Limited | 6 // Portions Copyright © 1997-1999 Vita Nuova Limited |
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) | 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov
a.com) |
8 // Portions Copyright © 2004,2006 Bruce Ellis | 8 // Portions Copyright © 2004,2006 Bruce Ellis |
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) | 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) |
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others | 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 p = r->prog; | 476 p = r->prog; |
477 if(debug['P']) | 477 if(debug['P']) |
478 print("%P", p); | 478 print("%P", p); |
479 if(!f && uniqp(r) == R) { | 479 if(!f && uniqp(r) == R) { |
480 f = 1; | 480 f = 1; |
481 if(debug['P']) | 481 if(debug['P']) |
482 print("; merge; f=%d", f); | 482 print("; merge; f=%d", f); |
483 } | 483 } |
484 t = copyu(p, v2, A); | 484 t = copyu(p, v2, A); |
485 switch(t) { | 485 switch(t) { |
486 » » case 2:»/* rar, cant split */ | 486 » » case 2:»/* rar, can't split */ |
487 if(debug['P']) | 487 if(debug['P']) |
488 print("; %D rar; return 0\n", v2); | 488 print("; %D rar; return 0\n", v2); |
489 return 0; | 489 return 0; |
490 | 490 |
491 case 3: /* set */ | 491 case 3: /* set */ |
492 if(debug['P']) | 492 if(debug['P']) |
493 print("; %D set; return 1\n", v2); | 493 print("; %D set; return 1\n", v2); |
494 return 1; | 494 return 1; |
495 | 495 |
496 case 1: /* used, substitute */ | 496 case 1: /* used, substitute */ |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 } | 893 } |
894 if(a->index == t) { | 894 if(a->index == t) { |
895 if(f) | 895 if(f) |
896 a->index = s->type; | 896 a->index = s->type; |
897 return 0; | 897 return 0; |
898 } | 898 } |
899 return 0; | 899 return 0; |
900 } | 900 } |
901 return 0; | 901 return 0; |
902 } | 902 } |
LEFT | RIGHT |