diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-22 02:40:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-22 02:40:40 +0000 |
commit | 9c9bfa7f29cccd08f479d9726f485bfae72b647b (patch) | |
tree | b068b91176af2ea16f7449e432f773c477894dd9 /utils/Burg/be.c | |
parent | c078930ee3b5f18aba8cb75424937d0e3cfc7c71 (diff) | |
download | llvm-9c9bfa7f29cccd08f479d9726f485bfae72b647b.tar.gz llvm-9c9bfa7f29cccd08f479d9726f485bfae72b647b.tar.bz2 llvm-9c9bfa7f29cccd08f479d9726f485bfae72b647b.tar.xz |
Fix tons of warnings, convert burg to use Makefile.common system, rename
gram.y to gram.yc so that we don't try to turn it into a .cpp file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/Burg/be.c')
-rw-r--r-- | utils/Burg/be.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/Burg/be.c b/utils/Burg/be.c index e7feab8d5d..31db211a70 100644 --- a/utils/Burg/be.c +++ b/utils/Burg/be.c @@ -8,7 +8,7 @@ char rcsid_be[] = "$Id$"; #define ERROR_VAL 0 FILE *outfile; -char *prefix = "burm"; +const char *prefix = "burm"; static void doKids ARGS((RuleAST)); static void doLabel ARGS((Operator)); @@ -24,7 +24,7 @@ static void printPatternAST_int ARGS((PatternAST)); static void setVectors ARGS((PatternAST)); static void trailing_zeroes ARGS((int)); static int seminal ARGS((int from, int to)); -static void printRule ARGS((RuleAST, char *)); +static void printRule ARGS((RuleAST, const char *)); static void doLabel(op) Operator op; @@ -329,10 +329,10 @@ makeLHSmap() fprintf(outfile, "\t0,\n"); } } - fprintf(outfile, "};\n\n", prefix); + fprintf(outfile, "};\n\n"); } -static int seminal(from, to) +static int seminal(int from, int to) { return allpairs[from][to].rule ? allpairs[from][to].rule->erulenum : 0; @@ -453,7 +453,7 @@ makeDeltaCostArray() for (s = 0; s < states-1; s++) { fprintf(outfile, "{ /* state #%d: ", s+1); printRepresentative(outfile, sortedStates[s]); - fprintf(outfile, " */\n", s+1); + fprintf(outfile, " */\n"); fprintf(outfile, "\t{0},\n"); for (nt = 1; nt < last_user_nonterminal; nt++) { makeCostVector(1, sortedStates[s]->closed[nt].delta); @@ -616,7 +616,7 @@ makeNts() } static void -printRule(r,d) RuleAST r; char *d; +printRule(RuleAST r, const char *d) { if (r) { fprintf(outfile, "%s: ", r->rule->lhs->name); |