Stage4 changes according to new STD lib implementation
authoretisserant
Sat, 07 Jul 2007 11:35:17 +0200
changeset 26 36d378bd852e
parent 25 8dc68e669d99
child 27 dae55dd9ee14
Stage4 changes according to new STD lib implementation
generate_IEC_std.py
--- a/generate_IEC_std.py	Fri Jul 06 18:55:52 2007 +0200
+++ b/generate_IEC_std.py	Sat Jul 07 11:35:17 2007 +0200
@@ -11,6 +11,7 @@
     """
     return {"ANY" : "",
     "ANY_BIT" : "if(search_expression_type->is_binary_type(%(paramname)s_type_symbol))",
+    "ANY_NBIT" : "if(search_expression_type->is_nbinary_type(%(paramname)s_type_symbol))",
     "ANY_NUM" : "if(search_expression_type->is_num_type(%(paramname)s_type_symbol))",
     "ANY_REAL" : "if(search_expression_type->is_real_type(%(paramname)s_type_symbol))",
     "ANY_INT" : "if(search_expression_type->is_integer_type(%(paramname)s_type_symbol))"
@@ -405,8 +406,9 @@
         ('get_function_type_decl','c'),
         ('st_code_gen','c'),
         ('il_code_gen','c'),
-        ('search_type_code','c'),
-        ('iec_std_lib_generated','h')]:
+        ('search_type_code','c')#,
+        #('iec_std_lib_generated','h')
+        ]:
     fd = open(os.path.join(sys.argv[1],name+'.'+ext),'w')
     fd.write(eval(name))
     fd.close()