mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 11:20:58 +01: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
12 lines
249 B
Plaintext
12 lines
249 B
Plaintext
--- functionname.in
|
|
+++ functionname_objcm.in
|
|
@@ -18,7 +18,7 @@ - (long) readOffset:(FILE*)file
|
|
return offset;
|
|
} else {
|
|
int offset;
|
|
- fread(&offset, sizeof(int), 1, file);
|
|
+ fread(&offset-1, sizeof(int), 1, file);
|
|
return offset;
|
|
}
|
|
}
|