expand.c (8dcaad55c28327fbd62aea12115312c4e0d6b759) | expand.c (62addaefc90626acb3e1950378964fe08c2c3ef5) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 749 unchanged lines hidden (view full) --- 758 goto again; 759 } 760 break; 761 } 762 if (easy) 763 goto record; 764 break; 765 | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 749 unchanged lines hidden (view full) --- 758 goto again; 759 } 760 break; 761 } 762 if (easy) 763 goto record; 764 break; 765 |
766 case VSERROR: 767 c = p - var - 1; 768 error("${%.*s%s}: Bad substitution", c, var, 769 (c > 0 && *p != CTLENDVAR) ? "..." : ""); 770 |
|
766 default: 767 abort(); 768 } 769 770 if (subtype != VSNORMAL) { /* skip to end of alternative */ 771 int nesting = 1; 772 for (;;) { 773 if ((c = *p++) == CTLESC) --- 767 unchanged lines hidden --- | 771 default: 772 abort(); 773 } 774 775 if (subtype != VSNORMAL) { /* skip to end of alternative */ 776 int nesting = 1; 777 for (;;) { 778 if ((c = *p++) == CTLESC) --- 767 unchanged lines hidden --- |