updated: [1d8ef0b] fixed #240



The following commit has been merged in the mc-4.6 branch:
commit 1d8ef0b089bcb6828b0dde62076493178ed185ec
Author: Enrico Weigelt, metux IT service <weigelt metux de>
Date:   Wed Feb 4 01:08:29 2009 +0100

    fixed #240

diff --git a/ChangeLog b/ChangeLog
index a529eb9..6e808b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-04 Enrico Weigelt, metux ITS <weigelt metux de>
+
+	* mhl/types.h, mhl/escape.h: replaced bool type by stdbool.h (fixing #240)
+
 2009-02-03 Enrico Weigelt, metux ITS <weigelt metux de>
 
 	* lib/mc.lib: added patch on #219 by angel_il
@@ -18,9 +22,6 @@
 	* src/find.c, src/main.c, src/panelize.c, src/util.c, src/utilunix.c,
 	* src/widget.c, src/widget.h, src/wtools.c, vfs/fish.c:
 	  fixed shell escaping issues in commandline completion engine
-
-2009-01-31 Enrico Weigelt, metux ITS <weigelt metux de>
-
 	* replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file() (in mhl/string.h)
 
 2009-01-30 Enrico Weigelt, metux ITS <weigelt metux de>
@@ -42,9 +43,6 @@
 
 	* mhl/escape.h, src/complete.c, vfs/fish.c: introduced new type 
 	  SHELL_ESCAPED_STR for more type safety
-
-2009-01-27 Enrico Weigelt, metux IT service <weigelt metux de>
-
 	* mhl/escape.h, mhl/string.h: fixed comments to use /* ... */
 
 2009-01-27 Sergei Trofimovich  <slyfox inbox ru>
diff --git a/mhl/escape.h b/mhl/escape.h
index 2ec4e0d..ed25b60 100644
--- a/mhl/escape.h
+++ b/mhl/escape.h
@@ -5,8 +5,7 @@
 
 #include <string.h>
 #include <stdlib.h>
-
-#include <mhl/types.h>
+#include <stdbool.h>
 
 #define mhl_shell_escape_toesc(x)	\
     (((x)==' ')||((x)=='!')||((x)=='#')||((x)=='$')||((x)=='%')||	\
diff --git a/mhl/types.h b/mhl/types.h
index 1f84002..f88190c 100644
--- a/mhl/types.h
+++ b/mhl/types.h
@@ -7,10 +7,4 @@
 #ifndef __MHL_TYPES_H
 #define __MHL_TYPES_H
 
-typedef enum 
-{
-    false	= 0,
-    true	= 1
-} bool;
-
 #endif

-- 
Midnight Commander Development


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]