static char sccsid
[] = "@(#)context.c 3.7 %G%";
* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
* Context push/pop for nested command files.
register struct context
*xp
;
malloc((unsigned) sizeof (struct context
));
if ((xp
= cx
.x_link
) != 0) {
if ((cx
.x_filename
= str_cpy(filename
)) == 0)
cx
.x_fp
= fopen(filename
, "r");
cx_beginbuf(buf
, arg
, narg
)
cx
.x_bufp
= cx
.x_buf
= buf
;