Browse Source

simplify generated code

Julius Pfrommer 8 years ago
parent
commit
8133d5e63a
1 changed files with 1 additions and 3 deletions
  1. 1 3
      tools/generate_datatypes.py

+ 1 - 3
tools/generate_datatypes.py

@@ -420,7 +420,7 @@ extern "C" {
 #endif
 
 #include "ua_types.h"
-''' + ('\n#include "ua_types_generated.h"\n' if outname != "ua_types" else ''))
+''' + ('#include "ua_types_generated.h"\n' if outname != "ua_types" else ''))
 
 printh('''/**
  * Every type is assigned an index in an array containing the type descriptions.
@@ -494,8 +494,6 @@ printc('''/* Generated from ''' + inname + ''' with script ''' + sys.argv[0] + '
  * on host ''' + platform.uname()[1] + ''' by user ''' + getpass.getuser() + \
        ''' at ''' + time.strftime("%Y-%m-%d %I:%M:%S") + ''' */
 
-#include "stddef.h"
-#include "ua_types.h"
 #include "''' + outname + '''_generated.h"''')
 
 for t in iter_types(types):