parser.c (7920a31db68328c909570283d772f48ba1bc5f1d) | parser.c (e7a0b0244d302e1d3c199fd760f49c3dfdfd3ca9) |
---|---|
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 --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 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 --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $Id: parser.c,v 1.19 1997/02/22 13:58:42 peter Exp $ | 36 * $Id: parser.c,v 1.20 1997/04/28 03:22:09 steve Exp $ |
37 */ 38 39#ifndef lint 40static char const sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95"; 41#endif /* not lint */ 42 43#include <stdlib.h> 44 --- 1465 unchanged lines hidden (view full) --- 1510} 1511 1512/* 1513 * called by editline -- any expansions to the prompt 1514 * should be added here. 1515 */ 1516char * 1517getprompt(unused) | 37 */ 38 39#ifndef lint 40static char const sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95"; 41#endif /* not lint */ 42 43#include <stdlib.h> 44 --- 1465 unchanged lines hidden (view full) --- 1510} 1511 1512/* 1513 * called by editline -- any expansions to the prompt 1514 * should be added here. 1515 */ 1516char * 1517getprompt(unused) |
1518 void *unused; 1519 { | 1518 void *unused __unused; 1519{ |
1520 switch (whichprompt) { 1521 case 0: 1522 return ""; 1523 case 1: 1524 return ps1val(); 1525 case 2: 1526 return ps2val(); 1527 default: 1528 return "<internal prompt error>"; 1529 } 1530} | 1520 switch (whichprompt) { 1521 case 0: 1522 return ""; 1523 case 1: 1524 return ps1val(); 1525 case 2: 1526 return ps2val(); 1527 default: 1528 return "<internal prompt error>"; 1529 } 1530} |