static char Sccsid
[] = "ah.c @(#)ah.c 1.1 10/1/82 Berkeley ";
register struct nlist
*n
;
char fname
[64]; /* Array for filename */
if((protofile
= OPENF(cp
, 1)) > 0){
SEEKF(protofile
, 0L, 2); /* append to existing file */
protofile
= opn(cp
, 0644);
WRITEF(protofile
, "\t)script on\n", 12);
printf("was %d\n",thread
.digits
);
*sp
++ = sp
[-1]; /* duplicate top of stack */
thread
.fuzz
= exp(-f
*2.3025851);
printf("was %d\n",thread
.iorg
);
printf("was %d\n",thread
.width
);
i
= opn("continue", 0644);
for(n
=nlist
; n
->namep
; n
++)
if(n
->itemp
&& n
->use
== DA
&& n
->namep
[0] != 'L') {
if(column
+8 >= thread
.width
)
for(n
=nlist
; n
->namep
; n
++)
if(n
->use
== DF
|| n
->use
== MF
|| n
->use
== NF
) {
if(column
+8 >= thread
.width
)
n
= (struct nlist
*)sp
[-1];
goto warp1
; /* four lines down, or so... */
i
= opn(vfname(fname
), 0);
evLlx(); /* possible latent expr evaluation */
* this garbage is necessary because clear()
* does a brk(&end), and the normal return & cleanup
* procedures are guaranteed to fail (miserably).
error("si damage -- type ')reset'");
wsload(opn(vfname(fname
),0));
printf(" copy %s\n", fname
);
printf("[can't remove %s]\n", cp
);
i
= opn(vfname(fname
), 0644);
printf(" saved %s\n", fname
);
i
= opn(vfname(fname
), 0644);
register struct nlist
*n
;
n
= (struct nlist
*)sp
[-1];
* check for latent expr., and evaluate it if it is there:
register struct nlist
*n
;
if((n
=nlook("Llx")) && n
->itemp
->type
== CH
&& n
->itemp
->size
){
*sp
++ = dupdat(n
->itemp
);
if(p
->type
!= EL
&& p
->type
!= DU
)