From 874f0095efcdd0fcbf19900cffd626812bb74a8b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 23 Jan 2012 17:04:08 +1000 Subject: Replace #ifdef with if or #if. Letting the compiler remove things with unreachable code optimisations, but still allowing it to check the code it removes. --- LuaSL/src/LuaSL_LSL_tree.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'LuaSL/src/LuaSL_LSL_tree.h') diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index 76af195..4f0ab34 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h @@ -2,8 +2,8 @@ #ifndef __LUASL_TREE_H__ #define __LUASL_TREE_H__ -//#define LUASL_DEBUG -#define LUASL_DIFF_CHECK +#define LUASL_DEBUG 0 +#define LUASL_DIFF_CHECK 1 #include // So we can have NULL defined. @@ -153,7 +153,7 @@ struct _LSL_Leaf LSL_Leaf *left; LSL_Leaf *right; LSL_Token *token; -#ifdef LUASL_DIFF_CHECK +#if LUASL_DIFF_CHECK Eina_Strbuf *ignorableText; #endif int line, column, len; @@ -181,7 +181,7 @@ struct _LSL_Leaf struct _LSL_Parenthesis { LSL_Leaf *contents; -#ifdef LUASL_DIFF_CHECK +#if LUASL_DIFF_CHECK Eina_Strbuf *rightIgnorableText; #endif LSL_Type type; @@ -212,7 +212,7 @@ struct _LSL_Function { const char *name; LSL_Leaf *type; -#ifdef LUASL_DIFF_CHECK +#if LUASL_DIFF_CHECK LSL_Leaf *params; // So we store the parenthesis, and their ignorables. #endif Eina_Inarray vars; // Eina Inarray has not been released yet (Eina 1.2). @@ -319,7 +319,7 @@ typedef struct FILE *file; LSL_Leaf *ast; LSL_Script script; -#ifdef LUASL_DIFF_CHECK +#if LUASL_DIFF_CHECK Eina_Strbuf *ignorableText; #endif LSL_Leaf *lval; -- cgit v1.1