Sfoglia il codice sorgente

Merge pull request #1274 from h4nn35/gen_datatypes

Small improvements for generate_datatypes.py
Stefan Profanter 7 anni fa
parent
commit
256d2ed2f9
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      tools/generate_datatypes.py

+ 2 - 3
tools/generate_datatypes.py

@@ -405,7 +405,7 @@ parser.add_argument('-t', '--type-bsd',
                     dest="type_bsd",
                     action='append',
                     default=[],
-                    help='csv file with type descriptions')
+                    help='bsd file with type definitions')
 
 parser.add_argument('outfile',
                     metavar='<outputFile>',
@@ -559,8 +559,7 @@ 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 "''' + outname + '''_generated.h"
-#include "ua_util.h"''')
+#include "''' + outname + '''_generated.h"''')
 
 for t in filtered_types:
     printc("")