aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-01 23:41:05 +1000
committerDavid Walter Seikel2012-02-01 23:41:05 +1000
commit25bfac3a521e4e672bfbaa019bd777a881db0520 (patch)
tree78250f0c3c4634782a57dc7ba9e8969d54b4208b /LuaSL/src
parentParse and output for statements. Also, take care of ignorables on left paren... (diff)
downloadSledjHamr-25bfac3a521e4e672bfbaa019bd777a881db0520.zip
SledjHamr-25bfac3a521e4e672bfbaa019bd777a881db0520.tar.gz
SledjHamr-25bfac3a521e4e672bfbaa019bd777a881db0520.tar.bz2
SledjHamr-25bfac3a521e4e672bfbaa019bd777a881db0520.tar.xz
Turn on diffing again, getting hard to tell the difference manually.
Diffstat (limited to 'LuaSL/src')
-rw-r--r--LuaSL/src/LuaSL_compile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c
index c61f900..5f5389b 100644
--- a/LuaSL/src/LuaSL_compile.c
+++ b/LuaSL/src/LuaSL_compile.c
@@ -1769,18 +1769,18 @@ static boolean doneParsing(LuaSL_compiler *compiler)
1769 if (out) 1769 if (out)
1770 { 1770 {
1771 char diffName[PATH_MAX]; 1771 char diffName[PATH_MAX];
1772// int count; 1772 int count;
1773 1773
1774 strcpy(diffName, compiler->fileName); 1774 strcpy(diffName, compiler->fileName);
1775 strcat(diffName, ".diff"); 1775 strcat(diffName, ".diff");
1776 outputLeaf(out, OM_LSL, compiler->ast); 1776 outputLeaf(out, OM_LSL, compiler->ast);
1777 fclose(out); 1777 fclose(out);
1778 sprintf(buffer, "diff \"%s\" \"%s\" > \"%s\"", compiler->fileName, outName, diffName); 1778 sprintf(buffer, "diff -u \"%s\" \"%s\" > \"%s\"", compiler->fileName, outName, diffName);
1779// count = system(buffer); 1779 count = system(buffer);
1780// if (0 != count) 1780 if (0 != count)
1781// PE("LSL output file is different - %s!", outName); 1781 PE("LSL output file is different - %s!", outName);
1782// else 1782 else
1783// result = TRUE; 1783 result = TRUE;
1784 } 1784 }
1785 else 1785 else
1786 PC("Unable to open file %s for writing!", outName); 1786 PC("Unable to open file %s for writing!", outName);