Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-05-16 19:12:31 +0300
committerAdam Langley <agl@google.com>2015-05-21 00:38:08 +0300
commitb48042820a48b7ed711506b5443aa1116c6eb98c (patch)
treed327541ff0e45deea76e92d40914e40731c2bf6e /util
parent6deacb389504d63bc9851d0a9498fabc64faf353 (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.go2
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 ") {