I wrote a new patch now which introduces __attribute__((format(__OFString__, …, 
…))). When the type is __OFString__, %C and %S are considered to be type 
of_unichar_t / const of_unichar_t*. %k and %K are completely gone now. This is 
similar to how %C and %S are treated when the type is __NSString__, where they 
are treated as unichar / const unichar* then.

Please review the patch as I had to replace a few bools indicating whether the 
type is an ObjC format by a type so that there is a way to differentiate 
between __NSString__ and __OFString__. This also means I had to change a few 
function definitions and declarations.

There are no tests yet, but if this patch is otherwise good, I will add some.

--
Jonathan

Attachment: ofstring_format_string.patch
Description: Binary data


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to