summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/oc/50090-kw.m
blob: ef52dd8e88ddd7fbc2ad970d7ce6ad94843ac30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <objc/Object.h>

@protocol Job
-do;
@end

@interface MyJob : Object<Job>
-do;
@end
@implementation MyJob
-do
{
   printf("Doing Job\n");
   return self;
}
@end

@interface JobExecutor : Object
-doWith: (id<Job>)job for: (int)count;
@end

@implementation JobExecutor
-doWith: (id<Job>)job for: (int)count
{
   for (int i = 0; i < count; ++i)
   {
      [job do];
   }
   return self;
}
@end