diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-04-27 12:51:13 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-04-27 12:51:13 +0100 |
| commit | d67b7dad77bb8aa973dad1f7c3ab0c309b114278 (patch) | |
| tree | 6794120fb327d6de19cf05eed53f80d877781a3e /utils/qc/machcap.c | |
| parent | 09da2e137d5eb0c940df35d989e4c31ec0654fc4 (diff) | |
20100427-1251
Diffstat (limited to 'utils/qc/machcap.c')
| -rw-r--r-- | utils/qc/machcap.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/qc/machcap.c b/utils/qc/machcap.c new file mode 100644 index 00000000..5fae5731 --- /dev/null +++ b/utils/qc/machcap.c @@ -0,0 +1,16 @@ +#include "gc.h" + +/* default, like old cc */ +int +machcap(Node *n) +{ + if(n == Z) + return 0; /* test */ + switch(n->op){ + case OCOMMA: + case OCOND: + case OLIST: + return 1; + } + return 0; +} |
