Port sc5 to C++.

This commit is contained in:
David Anderson
2014-08-22 00:09:28 -07:00
parent 3eb1faa470
commit 9c005d93ed
5 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -42,7 +42,7 @@ unsigned char errstr_table [][2] = {
};
/*-*SCPACK end of pair table, do not change or remove this line */
static char *errmsg[] = {
static const char *errmsg[] = {
#ifdef SCPACK
/*001*/ "expected token: \"%s\", but found \"%s\"\n",
/*002*/ "only a single statement (or expression) can follow each \"case\"\n",
@@ -362,7 +362,7 @@ static char *errmsg[] = {
#endif
};
static char *fatalmsg[] = {
static const char *fatalmsg[] = {
#ifdef SCPACK
/*160*/ "cannot read from file: \"%s\"\n",
/*161*/ "cannot write to file: \"%s\"\n",
@@ -398,7 +398,7 @@ static char *fatalmsg[] = {
#endif
};
static char *warnmsg[] = {
static const char *warnmsg[] = {
#ifdef SCPACK
/*200*/ "symbol \"%s\" is truncated to %d characters\n",
/*201*/ "redefinition of constant/macro (symbol \"%s\")\n",