diff options
author | David Benjamin <davidben@chromium.org> | 2015-05-16 19:12:31 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-05-21 00:38:08 +0300 |
commit | b48042820a48b7ed711506b5443aa1116c6eb98c (patch) | |
tree | d327541ff0e45deea76e92d40914e40731c2bf6e /util | |
parent | 6deacb389504d63bc9851d0a9498fabc64faf353 (diff) |
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>
Diffstat (limited to 'util')
-rw-r--r-- | util/doc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/doc.go b/util/doc.go index ae89c301..540d6ca1 100644 --- a/util/doc.go +++ b/util/doc.go @@ -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 ") { |