소스 검색

Generate StatusCode definitions with nicer docs formatting

Julius Pfrommer 5 년 전
부모
커밋
2c66df65d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/generate_statuscode_descriptions.py

+ 1 - 1
tools/generate_statuscode_descriptions.py

@@ -53,7 +53,7 @@ printh(u'''/*---------------------------------------------------------
 ''' % (args.statuscodes, sys.argv[0]))
 
 for row in rows:
-    printh(u"#define UA_STATUSCODE_%s %s /* %s */" % (row[0].upper(), row[1], row[2]))
+    printh(u"/* %s */\n#define UA_STATUSCODE_%s %s\n" % (row[2], row[0].upper(), row[1]))
 
 #########################
 # Print the source file #