瀏覽代碼

Removed stdbool.h include and added typedef for sc_boolean type.

markus.muehlbrandt@gmail.com 11 年之前
父節點
當前提交
d2aa484778
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      plugins/org.yakindu.sct.generator.c/src/org/yakindu/sct/generator/c/Types.xtend

+ 6 - 5
plugins/org.yakindu.sct.generator.c/src/org/yakindu/sct/generator/c/Types.xtend

@@ -37,8 +37,12 @@ class Types {
 		#endif 
 		
 		#include <stdint.h>
-		#include <stdbool.h>
-		 				
+		
+		typedef enum {
+			bool_false,
+			bool_true
+		} sc_boolean;
+		
 		typedef int_fast16_t  sc_short;
 		typedef uint_fast16_t sc_ushort;
 		typedef int32_t       sc_integer; 
@@ -51,9 +55,6 @@ class Types {
 		#ifdef __cplusplus
 		}
 		#endif 
-		#define sc_boolean bool
-		#define bool_true true
-		#define bool_false false
 
 		#endif /* «typesModule.define»_H_ */
 	'''