[SVN] r7278 (C, Objective-C)

Allan Odgaard throw-away-1 at macromates.com
Thu May 17 13:53:25 UTC 2007


• introduce TM_C_POINTER and use that each time a variable is declared as a pointer — it defaults to “ *” and can thus be changed to “* ” to have “NSArray* array” inserted as “NSArray *array”.
• change $0 in some snippets to ${0:/* code */} for the semantic value.
• change ‘read file’ snippet to use ‘char’ instead of ‘uint8_t’ — I find the former easier to work with (i.e. all functions in string.h expects ‘char*’) but for that, you really should enable “treat char as unsigned” in your build settings.

Changed:
U   trunk/Bundles/C.tmbundle/Snippets/010 main() (main).plist
U   trunk/Bundles/C.tmbundle/Snippets/030 for int loop (fori).plist
U   trunk/Bundles/C.tmbundle/Snippets/do...while loop (do).plist
U   trunk/Bundles/C.tmbundle/Snippets/if .. (if).plist
U   trunk/Bundles/C.tmbundle/Snippets/read file (readF).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/030 NSArray (array).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/040 NSDictionary (dict).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Delegate Responds to Selector.plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/IBOutlet (ibo).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/NSAutoreleasePool (pool).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/NSBezierPath (bez).plist
U   trunk/Bundles/Objective-C.tmbundle/Snippets/Save and Restore Graphics Context (gsave).plist



More information about the textmate-dev mailing list