]> The Tcpdump Group git mirrors - libpcap/commitdiff
Note that fold_op() is only for binary operators.
authorGuy Harris <[email protected]>
Mon, 6 May 2013 21:25:58 +0000 (14:25 -0700)
committerGuy Harris <[email protected]>
Mon, 6 May 2013 21:25:58 +0000 (14:25 -0700)
optimize.c

index 7760569785e455a86fa8c1fc34e5ec7e8f367961..82155436de7ea0db823d0c25e98dd1287e72fb96 100644 (file)
@@ -579,6 +579,10 @@ vstore(struct stmt *s, int *valp, int newval, int alter)
                *valp = newval;
 }
 
+/*
+ * Do constant-folding on binary operators.
+ * (Unary operators are handled elsewhere.)
+ */
 static void
 fold_op(struct stmt *s, int v0, int v1)
 {