BSD 4_2 release
[unix-history] / usr / src / ucb / dbx / check.c
index 123f417..a4c5f65 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1982 Regents of the University of California */
 
 /* Copyright (c) 1982 Regents of the University of California */
 
-static char sccsid[] = "@(#)check.c 1.3 12/20/82";
+static char sccsid[] = "@(#)check.c 1.5 8/10/83";
 
 /*
  * Check a tree for semantic correctness.
 
 /*
  * Check a tree for semantic correctness.
@@ -113,15 +113,13 @@ Node p;
     place = p->value.arg[1];
     cond = p->value.arg[2];
     if (exp != nil) {
     place = p->value.arg[1];
     cond = p->value.arg[2];
     if (exp != nil) {
-       if (exp->op != O_RVAL and exp->op != O_SYM) {
+       if (exp->op != O_RVAL and exp->op != O_SYM and exp->op != O_LCON) {
            beginerrmsg();
            fprintf(stderr, "expected variable, found ");
            prtree(stderr, exp);
            enderrmsg();
        }
        chkblock(place);
            beginerrmsg();
            fprintf(stderr, "expected variable, found ");
            prtree(stderr, exp);
            enderrmsg();
        }
        chkblock(place);
-    } else if (cond != nil) {
-       chkblock(place);
     } else if (place->op == O_SYM) {
        chkblock(place);
     } else {
     } else if (place->op == O_SYM) {
        chkblock(place);
     } else {