1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
444 |
|
for (i = 0; i < MAXWORD && isid(lnext); i++, lnext = scan()) |
445 |
|
str[i] = lnext; |
446 |
|
str[i] = '\0'; |
447 |
+ |
while (isid(lnext)) /* skip rest of name */ |
448 |
+ |
lnext = scan(); |
449 |
|
|
450 |
|
return(str); |
451 |
|
} |
586 |
|
ep2->v.num = -ep2->v.num; |
587 |
|
return(ep2); |
588 |
|
} |
589 |
+ |
if (ep2->type == UMINUS) { /* don't generate -(-E5) */ |
590 |
+ |
efree((char *)ep2); |
591 |
+ |
return(ep2->v.kid); |
592 |
+ |
} |
593 |
|
ep1 = newnode(); |
594 |
|
ep1->type = UMINUS; |
595 |
|
addekid(ep1, ep2); |
633 |
|
#endif |
634 |
|
|
635 |
|
#if defined(VARIABLE) || defined(FUNCTION) |
636 |
< |
if (isalpha(nextc)) { |
636 |
> |
if (isalpha(nextc) || nextc == CNTXMARK) { |
637 |
|
nam = getname(); |
638 |
|
#if defined(VARIABLE) && defined(FUNCTION) |
639 |
|
ep1 = NULL; |