diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-22 04:13:13 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-22 04:13:13 +0000 |
commit | 88e7b7288ae9cb23dc85341a520062e7903ba479 (patch) | |
tree | df98b71efed67e449ae4bccbe6740baf74b47c75 /llvm/utils/Burg/pattern.c | |
parent | 5191b4b2d02f2f3c2d3f496e0b822ebab84e0781 (diff) | |
download | bcm5719-llvm-88e7b7288ae9cb23dc85341a520062e7903ba479.tar.gz bcm5719-llvm-88e7b7288ae9cb23dc85341a520062e7903ba479.zip |
Eliminate tabs and trailing spaces
llvm-svn: 21441
Diffstat (limited to 'llvm/utils/Burg/pattern.c')
-rw-r--r-- | llvm/utils/Burg/pattern.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/llvm/utils/Burg/pattern.c b/llvm/utils/Burg/pattern.c index 472aca579d0..2ff72e7c410 100644 --- a/llvm/utils/Burg/pattern.c +++ b/llvm/utils/Burg/pattern.c @@ -6,33 +6,33 @@ char rcsid_pattern[] = "$Id$"; Pattern newPattern(op) Operator op; { - Pattern p; + Pattern p; - p = (Pattern) zalloc(sizeof(struct pattern)); - p->op = op; - return p; + p = (Pattern) zalloc(sizeof(struct pattern)); + p->op = op; + return p; } void dumpPattern(p) Pattern p; { - int i; + int i; - if (!p) { - printf("[no-pattern]"); - return; - } + if (!p) { + printf("[no-pattern]"); + return; + } - if (p->op) { - printf("%s", p->op->name); - if (p->op->arity > 0) { - printf("("); - for (i = 0; i < p->op->arity; i++) { - printf("%s ", p->children[i]->name); - } - printf(")"); - } - } else { - printf("%s", p->children[0]->name); - } + if (p->op) { + printf("%s", p->op->name); + if (p->op->arity > 0) { + printf("("); + for (i = 0; i < p->op->arity; i++) { + printf("%s ", p->children[i]->name); + } + printf(")"); + } + } else { + printf("%s", p->children[0]->name); + } } |