Commits

Bob Ippolito committed 00f7f03

Bring in NSString* constants guarded with availability macros, such as
NSStreamSocketSecurityLevelNone

Comments (0)

Files changed (1)

pyobjc/Scripts/CodeGenerators/strconst_generator.py

 
 ON_OSX= (sys.platform == "darwin")
 
-MATCH_RE=re.compile(r'NSString\s*\*\s*(const\s+)?([A-Za-z_][A-Za-z0-9_]*(\s*,\s*\*\s*[A-Za-z_][A-Za-z0-9_]*)*);')
+MATCH_RE=re.compile(r'NSString\s*\*\s*(const\s+)?([A-Za-z_][A-Za-z0-9_]*(\s*,\s*\*\s*[A-Za-z_][A-Za-z0-9_]*)*)(\s+AVAILABLE_\w+)?;')
 
 def entry(fp, val, ignore):
     vals = val.split(',')