From 6eca1036c3a359449bfecbca5d729a7fc6bd0d55 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 25 Mar 2008 10:42:02 +0000 Subject: [PATCH] - Changed Lemon so that it always writes the header. It still kept recompiling the grammar over and over again once it had been changed locally. SVN r851 (trunk) --- docs/rh-log.txt | 2 ++ tools/lemon/lemon.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index b583e9812..d0c9df09a 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ March 25, 2008 (Changes by Graf Zahl) +- Changed Lemon so that it always writes the header. It still kept recompiling + the grammar over and over again once it had been changed locally. - Fixed: ANIMATED allowed animations between different texture types. - Added a debuganimated CCMD that can be used to output some information if a WAD shows broken animations. diff --git a/tools/lemon/lemon.c b/tools/lemon/lemon.c index 100887930..fb18b1885 100644 --- a/tools/lemon/lemon.c +++ b/tools/lemon/lemon.c @@ -3968,7 +3968,8 @@ struct lemon *lemp; fclose(in); if( i==lemp->nterminal ){ /* No change in the file. Don't rewrite it. */ - return; + /* (not the best idea if you use make tools that check the date! */ + /*return;*/ } } out = file_open(lemp,".h","wb");