made a few tweaks and regenerated the Makefile to get it to link but it still won't

This commit is contained in:
Samuel D. Crow
2021-03-18 16:18:54 -05:00
parent b6e8984e62
commit 68c4806a3d
5 changed files with 35 additions and 46 deletions

View File

@@ -76,7 +76,7 @@ ofstream logfile;
ofstream varNames;
/* private prototypes */
void helpText(string);
void helpText(const string);
void setup();
void compile();
void shutDown();
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
}
/* print the help text to stdout */
void helpText(string &commandname)
void helpText(const string commandname)
{
cout << commandname << "[-d|D|V|v|G] < filename.mb\n" <<
"Compiles filename.mb by default unless a flag is specified.\n" <<
@@ -174,7 +174,7 @@ void setUp()
}
}
void error(enum COMPILE_ERRORS e)
[[noreturn]] void error(enum COMPILE_ERRORS e)
{
errorLevel=e;
exit(1);