diff CbC-scripts/make_headers.py @ 27:f9b1a53df341

implemented indirect sibcall for ppc.
author kent@teto.cr.ie.u-ryukyu.ac.jp
date Tue, 10 Nov 2009 16:34:29 +0900
parents b388631e4738
children
line wrap: on
line diff
--- a/CbC-scripts/make_headers.py	Thu Oct 29 18:19:02 2009 +0900
+++ b/CbC-scripts/make_headers.py	Tue Nov 10 16:34:29 2009 +0900
@@ -1,12 +1,13 @@
 #!/usr/bin/env python3.0
 
+
 import sys
 import re
 import getopt
 
 reserved_words = [ "if", "for", "switch", "return", "while", "else", ]
 
-PATTERN = "([a-zA-Z_][\w\s]*\**)\s([a-zA-Z_]\w*)\s*\(([^{/;]*)\)\s*\{"
+PATTERN =  "([a-zA-Z_][\w\s]*\**)\s([a-zA-Z_]\w*)\s*\(([^{/;]*)\)\s*\{"
 # TODO: 関数パラメータ内にコメントがあると正しく動かない!
 # TODO: int * const * とか大丈夫?
 PROG = re.compile(PATTERN, re.S)
@@ -119,6 +120,5 @@
 			#debug_print(decl)
 			format_print(decl, file)
 
-#usage()
 main()