Bläddra i källkod

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

markus.muehlbrandt@gmail.com 11 år sedan
förälder
incheckning
d2aa484778

+ 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_ */
 	'''