Also skip #elif lines.

One of these days we may need to get a more aggressive C parser...

Change-Id: I7c6a848fb3b7f41083ac70542aa17e971baf10a4
Reviewed-on: https://boringssl-review.googlesource.com/4786
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2015-05-16 12:12:31 -04:00 committed by Adam Langley
parent 6deacb3895
commit b48042820a

View File

@ -209,7 +209,7 @@ func skipLine(s string) string {
}
func getNameFromDecl(decl string) (string, bool) {
for strings.HasPrefix(decl, "#if") {
for strings.HasPrefix(decl, "#if") || strings.HasPrefix(decl, "#elif") {
decl = skipLine(decl)
}
if strings.HasPrefix(decl, "struct ") {