Deleted Added
full compact
tc.func.c (59243) tc.func.c (61524)
1/* $Header: /src/pub/tcsh/tc.func.c,v 3.87 1999/08/14 21:24:13 christos Exp $ */
1/* $Header: /src/pub/tcsh/tc.func.c,v 3.88 2000/06/10 22:05:39 kim Exp $ */
2/*
3 * tc.func.c: New tcsh builtins.
4 */
5/*-
6 * Copyright (c) 1980, 1991 The Regents of the University of California.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37#include "sh.h"
38
2/*
3 * tc.func.c: New tcsh builtins.
4 */
5/*-
6 * Copyright (c) 1980, 1991 The Regents of the University of California.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37#include "sh.h"
38
39RCSID("$Id: tc.func.c,v 3.87 1999/08/14 21:24:13 christos Exp $")
39RCSID("$Id: tc.func.c,v 3.88 2000/06/10 22:05:39 kim Exp $")
40
41#include "ed.h"
42#include "ed.defns.h" /* for the function names */
43#include "tw.h"
44#include "tc.h"
45#ifdef WINNT
46#include "nt.const.h"
47#endif /* WINNT */

--- 37 unchanged lines hidden (view full) ---

85static void getremotehost __P((void));
86#endif /* REMOTEHOST */
87
88/*
89 * Tops-C shell
90 */
91
92/*
40
41#include "ed.h"
42#include "ed.defns.h" /* for the function names */
43#include "tw.h"
44#include "tc.h"
45#ifdef WINNT
46#include "nt.const.h"
47#endif /* WINNT */

--- 37 unchanged lines hidden (view full) ---

85static void getremotehost __P((void));
86#endif /* REMOTEHOST */
87
88/*
89 * Tops-C shell
90 */
91
92/*
93 * expand_lex: Take the given lex and put an expanded version of it in the
94 * string buf. First guy in lex list is ignored; last guy is ^J which we
95 * ignore Only take lex'es from position from to position to inclusive Note:
96 * csh sometimes sets bit 8 in characters which causes all kinds of problems
97 * if we don't mask it here. Note: excl's in lexes have been un-back-slashed
98 * and must be re-back-slashed
93 * expand_lex: Take the given lex and put an expanded version of it in
94 * the string buf. First guy in lex list is ignored; last guy is ^J
95 * which we ignore. Only take lex'es from position 'from' to position
96 * 'to' inclusive
97 *
98 * Note: csh sometimes sets bit 8 in characters which causes all kinds
99 * of problems if we don't mask it here. Note: excl's in lexes have been
100 * un-back-slashed and must be re-back-slashed
101 *
99 * (PWP: NOTE: this returns a pointer to the END of the string expanded
100 * (in other words, where the NUL is).)
101 */
102/* PWP: this is a combination of the old sprlex() and the expand_lex from
103 the magic-space stuff */
104
105Char *
106expand_lex(buf, bufsiz, sp0, from, to)

--- 2019 unchanged lines hidden ---
102 * (PWP: NOTE: this returns a pointer to the END of the string expanded
103 * (in other words, where the NUL is).)
104 */
105/* PWP: this is a combination of the old sprlex() and the expand_lex from
106 the magic-space stuff */
107
108Char *
109expand_lex(buf, bufsiz, sp0, from, to)

--- 2019 unchanged lines hidden ---