mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
8f79bd9b85
When searching back for function definitions, consider lines starting with '+' and '-', this allows us to pick up Objective-C methods as well as C style function definitions. Reviewed by: bapt Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D34202
30 lines
402 B
Plaintext
30 lines
402 B
Plaintext
static void
|
|
doSomethingThenPrintHello(int test)
|
|
{
|
|
test = test << 4;
|
|
if (test % 8 == 6) {
|
|
return;
|
|
}
|
|
|
|
print("goodbye\n");
|
|
}
|
|
|
|
|
|
- (long) readOffset:(FILE*)file
|
|
{
|
|
if( version >= 11){
|
|
long offset;
|
|
fread(&offset, sizeof(long), 1, file);
|
|
return offset;
|
|
} else {
|
|
int offset;
|
|
fread(&offset, sizeof(int), 1, file);
|
|
return offset;
|
|
}
|
|
}
|
|
|
|
+ (BOOL) isEdible:(NSString *)mushroom
|
|
{
|
|
return TRUE;
|
|
}
|