From 25bfac3a521e4e672bfbaa019bd777a881db0520 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 1 Feb 2012 23:41:05 +1000 Subject: Turn on diffing again, getting hard to tell the difference manually. --- LuaSL/src/LuaSL_compile.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'LuaSL/src') 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) if (out) { char diffName[PATH_MAX]; -// int count; + int count; strcpy(diffName, compiler->fileName); strcat(diffName, ".diff"); outputLeaf(out, OM_LSL, compiler->ast); fclose(out); - sprintf(buffer, "diff \"%s\" \"%s\" > \"%s\"", compiler->fileName, outName, diffName); -// count = system(buffer); -// if (0 != count) -// PE("LSL output file is different - %s!", outName); -// else -// result = TRUE; + sprintf(buffer, "diff -u \"%s\" \"%s\" > \"%s\"", compiler->fileName, outName, diffName); + count = system(buffer); + if (0 != count) + PE("LSL output file is different - %s!", outName); + else + result = TRUE; } else PC("Unable to open file %s for writing!", outName); -- cgit v1.1