summaryrefslogtreecommitdiff
path: root/utils/Burg/plank.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-22 02:40:40 +0000
committerChris Lattner <sabre@nondot.org>2002-09-22 02:40:40 +0000
commit9c9bfa7f29cccd08f479d9726f485bfae72b647b (patch)
treeb068b91176af2ea16f7449e432f773c477894dd9 /utils/Burg/plank.c
parentc078930ee3b5f18aba8cb75424937d0e3cfc7c71 (diff)
downloadllvm-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/plank.c')
-rw-r--r--utils/Burg/plank.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/Burg/plank.c b/utils/Burg/plank.c
index 053304eafc..e6ba38ba80 100644
--- a/utils/Burg/plank.c
+++ b/utils/Burg/plank.c
@@ -2,6 +2,7 @@ char rcsid_plank[] = "$Id$";
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include "b.h"
#include "fe.h"
@@ -35,7 +36,7 @@ static void purgePlanks ARGS((List));
static void inToEx ARGS((void));
static void makePlankRuleMacros ARGS((void));
static void makePlankRule ARGS((void));
-static void exceptionSwitch ARGS((List, char *, char *, char *, int, char *));
+static void exceptionSwitch ARGS((List, const char *, const char *, const char *, int, const char *));
static void doPlankLabel ARGS((Operator));
static void doPlankLabelSafely ARGS((Operator));
static void doPlankLabelMacrosSafely ARGS((Operator));
@@ -602,7 +603,7 @@ makePlankRule()
}
static void
-exceptionSwitch(es, sw, pre, post, offset, def) List es; char *sw; char *pre; char *post; int offset; char *def;
+exceptionSwitch(es, sw, pre, post, offset, def) List es; const char *sw; const char *pre; const char *post; int offset; const char *def;
{
if (es) {
fprintf(outfile, "\t\tswitch (%s) {\n", sw);